Access to GIE labels in Deepstream code

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 4.0.2
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

When I put labelfile-path in my main config file under [primary-gie] config group, the application correctly reads the labes.txt file and I am able to access the labels as a member of NvDsGieConfig object. However when I have this attribue in my inference-config.txt file, which is linked to in my main config file, the labels are not accessable in NvDsGieConfig object (null pointer). Is there a way to access these labels in the deepstream code the second way?

NvDsGieConfig is for deepstream-app level and inference-config.txt is for nvinfer plugin level, so it’s expected the filed of NvDsGieConfig is null when you only set it in inference-config.txt

1 Like