# Deeply onnx model in deep stream

**URL:** <https://forums.developer.nvidia.com/t/deeply-onnx-model-in-deep-stream/143041>\
**Category:** Triton Inference Server (archived)\
**Tags:** onnx\
**Created:** [July 22, 2020, 5:51am UTC](https://forums.developer.nvidia.com/t/deeply-onnx-model-in-deep-stream/143041 "2020-07-22T05:51:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDD](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@DDD](https://forums.developer.nvidia.com/u/DDD)\
**Post date:** [July 22, 2020, 5:51am UTC](https://forums.developer.nvidia.com/t/deeply-onnx-model-in-deep-stream/143041/1 "2020-07-22T05:51:18Z")

</div>

Dears,

I try to deeply onnx(Resnet50) model in deep stream

but I have error

‘This version of the ONNX parser only supports TensorRT INetworkDefinitions with an explicit batch dimension. Please ensure the network was created using the EXPLICIT\_BATCH NetworkDefinitionCreationFlag’ ,  
Note: I have Deep Dtream 5 , TensorRT-7.1.3.4  
For more details about the error :

With tracker

## (gst-plugin-scanner:7009): GStreamer-WARNING \*\*: 08:33:08.082: Failed to load plugin ‘/usr/lib/x86\_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst\_inferserver.so’: libtrtserver.so: cannot open shared object file: No such file or directory Error: Could not parse custom library path Failed to parse group property \*\* ERROR: \<gst\_nvinfer\_parse\_config\_file:1158\>: failed Now playing: /home/Desktop/sample\_720p.h264 ERROR: ../nvdsinfer/nvdsinfer\_model\_builder.cpp:1408 Deserialize engine failed because file path: /home/Desktop/deep\_stream app/deepstream-AI-Engin/sbv.onnx\_b1\_fp32.engine open error 0:00:00.543875102 7008 0x5582e3516240 WARN nvinfer gstnvinfer.cpp:599:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() \<nvdsinfer\_context\_impl.cpp:1566\> [UID = 2]: deserialize engine from file :/home/Desktop/deep\_stream app/deepstream-AI-Engin/sbv.onnx\_b1\_fp32.engine failed 0:00:00.543898856 7008 0x5582e3516240 WARN nvinfer gstnvinfer.cpp:599:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1673\> [UID = 2]: deserialize backend context from engine from file :/home/Desktop/deep\_stream app/deepstream-AI-Engin/sbv.onnx\_b1\_fp32.engine failed, try rebuild 0:00:00.543905713 7008 0x5582e3516240 INFO nvinfer gstnvinfer.cpp:602:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1591\> [UID = 2]: Trying to create engine from model files

## Input filename: /home/Desktop/deep\_stream app/deepstream-AI-Engin/sbv\_1.onnx ONNX IR version: 0.0.7 Opset version: 12 Producer name: keras2onnx Producer version: 1.7.0 Domain: onnxmltools Model version: 0 Doc string:

ERROR: ModelImporter.cpp:472 In function importModel:  
[4] Assertion failed: !\_importer\_ctx.network()-\>hasImplicitBatchDimension() && “This version of the ONNX parser only supports TensorRT INetworkDefinitions with an explicit batch dimension. Please ensure the network was created using the EXPLICIT\_BATCH NetworkDefinitionCreationFlag.”  
ERROR: ../nvdsinfer/nvdsinfer\_model\_builder.cpp:390 Failed to parse onnx file  
ERROR: ../nvdsinfer/nvdsinfer\_model\_builder.cpp:971 failed to build network since parsing model errors.  
ERROR: ../nvdsinfer/nvdsinfer\_model\_builder.cpp:872 failed to build network.  
0:00:00.656811664 7008 0x5582e3516240 ERROR nvinfer gstnvinfer.cpp:596:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Error in NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1611\> [UID = 2]: build engine file failed  
0:00:00.656830383 7008 0x5582e3516240 ERROR nvinfer gstnvinfer.cpp:596:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Error in NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1697\> [UID = 2]: build backend context failed  
0:00:00.656835562 7008 0x5582e3516240 ERROR nvinfer gstnvinfer.cpp:596:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Error in NvDsInferContextImpl::initialize() \<nvdsinfer\_context\_impl.cpp:1024\> [UID = 2]: generate backend failed, check config file settings  
0:00:00.656860811 7008 0x5582e3516240 WARN nvinfer gstnvinfer.cpp:781:gst\_nvinfer\_start: error: Failed to create NvDsInferContext instance  
0:00:00.656864017 7008 0x5582e3516240 WARN nvinfer gstnvinfer.cpp:781:gst\_nvinfer\_start: error: Config file path: sbv\_sgie1\_config.txt, NvDsInfer Error: NVDSINFER\_CONFIG\_FAILED  
Running…  
ERROR from element secondary1-nvinference-engine: Failed to create NvDsInferContext instance  
Error details: gstnvinfer.cpp(781): gst\_nvinfer\_start (): /GstPipeline:dstest2-pipeline/GstNvInfer:secondary1-nvinference-engine:  
Config file path: sbv\_sgie1\_config.txt, NvDsInfer Error: NVDSINFER\_CONFIG\_FAILED  
Returned, stopping playback  
Deleting pipeline
