How to access "network-type" parameter value from within deepstream-app code (C/C++)?

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: 5.1
• TensorRT Version: 7.2.1-1+cuda11.1
• NVIDIA GPU Driver Version (valid for GPU only): 455.23.05
• Issue Type(questions, new requirements, bugs): Question


I´m trying to get the value of “network-type” parameter set in “config_primary_gie.txt” from within deepstream-app code, but I don´t find the way to do it. I found there is a structure called “NvDsGieConfig”. However, it hasn´t got any structure inside which can be used to get network-type value.

How can I do it?

Thanks in advance.

That code is not present in deepstream-app as that is a parameter for nvinfer.
You can access it in gst-plugins/gst-nvinfer/gstnvinfer_property_parser.h

Thank you for your response.

I found that the value I need is in this variable, inside “gst-plugins/gst-nvinfer/gstnvinfer_property_parser.cpp”:

Is it stored inside a variable or structure accesible from deepstream-app code or is only accesible from nvinfer plugin code?

As far as I know, you can only access it from nvinfer.

@marmikshah is correct, @alexmoreno98 any confused?

Thanks for the response.

Everything clear.

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