# DeepStream Python Apps samples/models/Primary\_Detector/resnet10.caffemodel\_b1\_gpu0\_int8.engine open error

**URL:** <https://forums.developer.nvidia.com/t/deepstream-python-apps-samples-models-primary-detector-resnet10-caffemodel-b1-gpu0-int8-engine-open-error/200938>\
**Category:** DeepStream SDK\
**Created:** [January 19, 2022, 3:04am UTC](https://forums.developer.nvidia.com/t/deepstream-python-apps-samples-models-primary-detector-resnet10-caffemodel-b1-gpu0-int8-engine-open-error/200938 "2022-01-19T03:04:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raphenri](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@raphenri](https://forums.developer.nvidia.com/u/raphenri)\
**Post date:** [January 19, 2022, 3:04am UTC](https://forums.developer.nvidia.com/t/deepstream-python-apps-samples-models-primary-detector-resnet10-caffemodel-b1-gpu0-int8-engine-open-error/200938/1 "2022-01-19T03:04:42Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)** Jetson nano  
**• DeepStream Version** 6.0  
**• JetPack Version (valid for Jetson only)** 4.6  
**• TensorRT Version** 8.0.1  
**• Issue Type** I followed the python bindings from this repository : [GitHub - NVIDIA-AI-IOT/deepstream\_python\_apps: DeepStream SDK Python bindings and sample applications](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps#deepstream-python-apps). I want to run de test1 app and I keep getting this error :

raph@raph-desktop:~/deepstream\_python\_apps/apps/deepstream-test1-usbcam$ python3 deepstream\_test\_1\_usb.py /dev/video0  
Creating Pipeline

Creating Source

Creating Video Converter

Creating EGLSink

Playing cam /dev/video0  
Adding elements to Pipeline

Linking elements in the Pipeline

Starting pipeline

Using winsys: x11  
0:00:02.114197739 21109 0x1a0d8130 WARN nvinfer gstnvinfer.cpp:635:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::initialize() \<nvdsinfer\_context\_impl.cpp:1161\> [UID = 1]: Warning, OpenCV has been deprecated. Using NMS for clustering instead of cv::groupRectangles with topK = 20 and NMS Threshold = 0.5  
ERROR: Deserialize engine failed because file path: /home/raph/deepstream\_python\_apps/apps/deepstream-test1-usbcam/…/…/…/…/samples/models/Primary\_Detector/resnet10.caffemodel\_b1\_gpu0\_int8.engine open error  
0:00:04.893405722 21109 0x1a0d8130 WARN nvinfer gstnvinfer.cpp:635:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() \<nvdsinfer\_context\_impl.cpp:1889\> [UID = 1]: deserialize engine from file :/home/raph/deepstream\_python\_apps/apps/deepstream-test1-usbcam/…/…/…/…/samples/models/Primary\_Detector/resnet10.caffemodel\_b1\_gpu0\_int8.engine failed  
0:00:04.893596246 21109 0x1a0d8130 WARN nvinfer gstnvinfer.cpp:635:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1996\> [UID = 1]: deserialize backend context from engine from file :/home/raph/deepstream\_python\_apps/apps/deepstream-test1-usbcam/…/…/…/…/samples/models/Primary\_Detector/resnet10.caffemodel\_b1\_gpu0\_int8.engine failed, try rebuild  
0:00:04.893633017 21109 0x1a0d8130 INFO nvinfer gstnvinfer.cpp:638:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1914\> [UID = 1]: Trying to create engine from model files  
ERROR: Cannot access prototxt file ‘/home/raph/deepstream\_python\_apps/apps/deepstream-test1-usbcam/…/…/…/…/samples/models/Primary\_Detector/resnet10.prototxt’  
ERROR: failed to build network since parsing model errors.  
ERROR: failed to build network.  
0:00:04.894412353 21109 0x1a0d8130 ERROR nvinfer gstnvinfer.cpp:632:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1934\> [UID = 1]: build engine file failed  
0:00:04.894471625 21109 0x1a0d8130 ERROR nvinfer gstnvinfer.cpp:632:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:2020\> [UID = 1]: build backend context failed  
0:00:04.894503500 21109 0x1a0d8130 ERROR nvinfer gstnvinfer.cpp:632:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::initialize() \<nvdsinfer\_context\_impl.cpp:1257\> [UID = 1]: generate backend failed, check config file settings  
0:00:04.894546418 21109 0x1a0d8130 WARN nvinfer gstnvinfer.cpp:841:gst\_nvinfer\_start: error: Failed to create NvDsInferContext instance  
0:00:04.894569439 21109 0x1a0d8130 WARN nvinfer gstnvinfer.cpp:841:gst\_nvinfer\_start: error: Config file path: dstest1\_pgie\_config.txt, NvDsInfer Error: NVDSINFER\_CONFIG\_FAILED  
Error: gst-resource-error-quark: Failed to create NvDsInferContext instance (1): /dvs/git/dirty/git-master\_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(841): gst\_nvinfer\_start (): /GstPipeline:pipeline0/GstNvInfer:primary-inference:  
Config file path: dstest1\_pgie\_config.txt, NvDsInfer Error: NVDSINFER\_CONFIG\_FAILED

Any idea what could be my problem  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![mchi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mchi/32/14043_2.png) [@mchi](https://forums.developer.nvidia.com/u/mchi)\
**Post date:** [January 19, 2022, 3:24pm UTC](https://forums.developer.nvidia.com/t/deepstream-python-apps-samples-models-primary-detector-resnet10-caffemodel-b1-gpu0-int8-engine-open-error/200938/3 "2022-01-19T15:24:11Z")

</div>

> [@raphenri](#):
>
> ERROR: Cannot access prototxt file ‘/home/raph/deepstream\_python\_apps/apps/deepstream-test1-usbcam/…/…/…/…/samples/models/Primary\_Detector/resnet10.prototxt’

The real problem is app can’t access the prototxt.

“resnet10.caffemodel\_b1\_gpu0\_int8.engine open error” this is expected because there is not resnet10.caffemodel\_b1\_gpu0\_int8.engine file so it starts to build the TRT engine with the prototxt.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 8, 2022, 3:33am UTC](https://forums.developer.nvidia.com/t/deepstream-python-apps-samples-models-primary-detector-resnet10-caffemodel-b1-gpu0-int8-engine-open-error/200938/5 "2022-02-08T03:33:40Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
