Can I use multi primary-gie in deepstream-app?

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**GPU
• DeepStream Version6.0
• TensorRT Version8.0.2
**• NVIDIA GPU Driver Version (valid for GPU only)**495

I know this following method, but if I wanna add deepstream-app, how to write?
https://fhttps://forums.developer.nvidia.com/t/can-use-multi-primary-gie-in-deepstream/146248orums.developer.nvidia.com/t/can-use-multi-primary-gie-in-deepstream/146248

Because I need three pgie and 1 sgie, however if I change this, I will change all sgie to primary-gie.
I don’t want to see that.

deepstream-app is open source. Please read and understand the code. It just needs some basic coding skills.

/opt/nvidia\deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-app/deepstream_app.h
/opt/nvidia\deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-app/deepstream_app.c
/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-app/deepstream_app_config_parser.c

Yes, I know that. My mean, where should I adjust code?

g_object_set (G_OBJECT (secondary_detector), “config-file-path”, “secondary_detector_config.txt”,
“unique-id”, SECONDARY_DETECTOR_UID, “process-mode”, SECOND_DETECTOR_IS_SECONDARY ? 2 : 1, NULL);

Because like “back_to_back_detectors.c”, I can add that to main{}.

However, this deepstream-app.c, I should add where?
Or, if I wanna custom two pgie, maybe I should use custom c file, like back_to_back_detectors.c?

deepstream-app is a configurable pipeline builder. So you need to obey the design of deepstream-app. To modify the configuration part first(currently only one PGIE is supported), and then call create_primary_gie_bin() in deepstream_app.c with proper configuration.

This is a new feature. It is not where to add your second PGIE but you need to change some design. So you must understand the design first, then you can find the proper places.

Please investigate the code, the code introduces the design itself.

It will not save your time and effort if you don’t want to understand the code.

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