Why i got this error NvDsInfer Error: NVDSINFER_CONFIG_FAILED, while my config is perfect

Hi hope you doing good.
i am using the following config file in Deepstream Reference app
deepstream_app_source1_dashcamnet_vehiclemakenet_vehicletypenet.txt

[property]

net-scale-factor=1.0
offsets=103.939;116.779;123.68
infer-dims=3;224;224
tlt-model-key=NGpmbHN0ZTNrZHFkOGRxNnFsbW9rbXNxbnU6Yzc5NWM5MjQtZDE1YS00NTYxLTg3YzgtNTU2MWVhNDg1M2M3
tlt-encoded-model=../../models/tao_pretrained_models/dashcamnet/new/final_model.etlt
labelfile-path=../../models/tao_pretrained_models/dashcamnet/new/labels.txt
int8-calib-file=../../models/tao_pretrained_models/dashcamnet/new/final_model_int8_cache.bin
model-engine-file=../../models/tao_pretrained_models/dashcamnet/final_model.trt

network-type=1
num-detected-classes=2
uff-input-order=0
output-blob-names=predictions/Softmax
uff-input-blob-name=input_1
model-color-format=1
maintain-aspect-ratio=0
output-tensor-meta=0

it work perfect on Reference app but when I use in deepstream-test2 (Python app) it give me this error.

Starting pipeline 

0:00:00.126225149 1792228      0x488a4d0 ERROR                nvinfer gstnvinfer.cpp:640:gst_nvinfer_logger:<secondary1-nvinference-engine> NvDsInferContext[UID 0]: Error in NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1185> [UID = 0]: Unique ID not set
0:00:00.126249873 1792228      0x488a4d0 WARN                 nvinfer gstnvinfer.cpp:846:gst_nvinfer_start:<secondary1-nvinference-engine> error: Failed to create NvDsInferContext instance
0:00:00.126253784 1792228      0x488a4d0 WARN                 nvinfer gstnvinfer.cpp:846:gst_nvinfer_start:<secondary1-nvinference-engine> error: Config file path: dstest2_sgie1_config.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
Error: gst-resource-error-quark: Failed to create NvDsInferContext instance (1): gstnvinfer.cpp(846): gst_nvinfer_start (): /GstPipeline:pipeline0/GstNvInfer:secondary1-nvinference-engine:
Config file path: dstest2_sgie1_config.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED

Why?

Sorry i forgot about unique id

just added this and it worked

gpu-id=0
gie-unique-id=2
operate-on-gie-id=1
operate-on-class-ids=0

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