How to get Raw inference data?

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU) - Tesla T4 **
• DeepStream Version - Deepstream-6.2
• JetPack Version (valid for Jetson only)
• TensorRT Version - 8.5.2.2nvidia-
• NVIDIA GPU Driver Version (valid for GPU only) - 525.85.12
• Issue Type( questions, new requirements, bugs) - Query
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hi,

My application is a simple one where I have the following -
Source → Scaling → Decoding → Inference → Sink
While I am able to observe the inferences in the form of bounding boxes if I add the nvdsosd plugin, I wanted to ask how I can observe these inferences as raw data (Maybe as print messages on the console itself)?
I tried enabling the raw-output-file flag in the config file but it did not do anything. Also, I am confused about this particular flag as it is supposed to provide the “Pathname of raw inference output file” but is of the type Boolean.
I did find other answers as well such as the use of “osd_sink_pad_buffer_probe”. However, I am not sure how to add the same if I try to run my application just using Gstreamer command line (Without using APIs).
Can you please suggest what to do?

You mean you set the raw-output-file-write=1 and it doesn’t generate anything? This part is all open source code, you can also check that in the code: write_raw_buffers_to_file sources\gst-plugins\gst-nvinfer\gstnvinfer.cpp.

Hi,

When I add this flag in the respective config file (I just added raw-output-file-write=1 with the other flags), I observe the message “Unknown or legacy key specified ‘raw-output-file-write’ for group [property]” on the console. I am not sure what am I doing wrong here.
Also, if the flag was working properly, where are the output logs supposed to be dumped (I am not putting any file path so not sure where will the logs go)?

Thanks

Can you please suggest what I might be missing/ can correct to get the raw inference output?

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

OK. We’ll check the problem below.

Because the code is open source, you can try to modify the source code to use the gst_nvinfer_output_generated_file_write API in the sources\gst-plugins\gst-nvinfer\gstnvinfer.cpp file at present.
You can also set the parameter by the code:

    g_object_set (G_OBJECT (pgie),  "raw-output-file-write", 1, NULL);

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