Deepstream_tao_apps NVDSINFER_CUSTOM_LIB_FAILED or One element could not be created. Exiting

Please provide the following information when requesting support.

• Hardware (V100)
• Network Type (Yolo_v4_tiny)

Hey ,
Im trying to run a trained yolo-v4-tiny on a server using the deepstream_tao_apps, and receiving the following error:

~/dev/deepstream_tao_apps/apps/tao_detection$ ./ds-tao-detection -c ../../configs/yolov4-tiny_tao_chimera/pgie_yolov4_tiny_tao_config.txt -i /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264 
One element could not be created. Exiting.

pgie config file:

[property]
gpu-id=0
net-scale-factor=1.0
offsets=0;0;0
model-color-format=1
labelfile-path=../../configs/yolov4-tiny_tao_chimera/nvinfer_config.txt
model-engine-file=../../configs/yolov4-tiny_tao_chimera/trt.engine
int8-calib-file=../../configs/yolov4-tiny_tao_chimera/cal.bin
tlt-encoded-model=../../configs/yolov4-tiny_tao_chimera/yolov4_cspdarknet_tiny_epoch_080.etlt
tlt-model-key=nvidia_tlt
infer-dims=3;544;960
maintain-aspect-ratio=1
uff-input-order=0
uff-input-blob-name=Input
batch-size=1
## 0=FP32, 1=INT8, 2=FP16 mode
network-mode=1
num-detected-classes=4
interval=0
gie-unique-id=1
is-classifier=0
#network-type=0
cluster-mode=3
output-blob-names=BatchedNMS
parse-bbox-func-name=NvDsInferParseCustomBatchedNMSTLT
custom-lib-path=../../post_processor/libnvds_infercustomparser_tao.so

[class-attrs-all]
pre-cluster-threshold=0.3
roi-top-offset=0
roi-bottom-offset=0
detected-min-w=0
detected-min-h=0
detected-max-w=0
detected-max-h=0

when I executing it on Jetson nx Im receiving the following error:

./ds-tao-detection -c ../../configs/yolov4-tiny_tao_chimera/pgie_yolov4_tiny_tao_config.txt -i /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264
Now playing: ../../configs/yolov4-tiny_tao_chimera/pgie_yolov4_tiny_tao_config.txt
Opening in BLOCKING MODE 
Opening in BLOCKING MODE 
ERROR: Could not open lib: /home/aknish/dev/deepstream_tao_apps/configs/yolov4-tiny_tao_chimera/../../post_processor/libnvds_infercustomparser_tao.so, error string: /home/aknish/dev/deepstream_tao_apps/configs/yolov4-tiny_tao_chimera/../../post_processor/libnvds_infercustomparser_tao.so: cannot open shared object file: No such file or directory
0:00:01.157362529 11431   0x55af275330 ERROR                nvinfer gstnvinfer.cpp:632:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1248> [UID = 1]: Could not open custom lib: (null)
0:00:01.157451938 11431   0x55af275330 WARN                 nvinfer gstnvinfer.cpp:841:gst_nvinfer_start:<primary-nvinference-engine> error: Failed to create NvDsInferContext instance
0:00:01.157566018 11431   0x55af275330 WARN                 nvinfer gstnvinfer.cpp:841:gst_nvinfer_start:<primary-nvinference-engine> error: Config file path: ../../configs/yolov4-tiny_tao_chimera/pgie_yolov4_tiny_tao_config.txt, NvDsInfer Error: NVDSINFER_CUSTOM_LIB_FAILED
Running...
ERROR from element primary-nvinference-engine: Failed to create NvDsInferContext instance
Error details: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(841): gst_nvinfer_start (): /GstPipeline:ds-custom-pipeline/GstNvInfer:primary-nvinference-engine:
Config file path: ../../configs/yolov4-tiny_tao_chimera/pgie_yolov4_tiny_tao_config.txt, NvDsInfer Error: NVDSINFER_CUSTOM_LIB_FAILED
Returned, stopping playback
Deleting pipeline

what are the problems in both environments?

1 Like

Please follow GitHub - NVIDIA-AI-IOT/deepstream_tao_apps: Sample apps to demonstrate how to deploy models trained with TAO on DeepStream .
More, please check which Jetpack is installed.

Thanks Morganh,
I followed all the instructions in this page (that is from where I downloaded the project in first place)
I use Jetson Xavier nx with Jetpack 4.6
Best wishes

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Can you retry and double check?

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