Deepstream set width, height of the pgie output

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson AGX Orin
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only) 5.1
• TensorRT Version 8.5.2.2
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)

I am currently working on deepstream-test-1 of deepstream-python-apps.
https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/441b50da01779a2afacc60d40cd666d4bdde628e/apps/deepstream-test1-rtsp-out

I changed the detection model into the segmentation model and linked pgie with nvsegvisual.

However, if I set the width and height property of nvsegvisual, only the width and the height of the output video changes and the model output stays the same(the width, height of the model output).

segvisual = Gst.ElementFactory.make("nvsegvisual", "nvsegvisual-output-seg")
segvisual.set_property("width", 1280)
segvisual.set_property("height", 720)

I wonder if there are any method to change the size of the pgie output.

The width and height of segvisual are the Segmentation output. Gst-nvsegvisual plugin gst properties. If you want to change the size of the output video, you can set the width and height of nvmultistreamtiler.

Thanks for the reply yuweiw.
What I’m tryin to do is resizing the result of the pgie output.
For example, if the model output is 521x512, I want to change the size into 1920x1080.
I also set the width and height of nvmultistreamtiler but only the video size changes and the model output stays the same. Just like the above pic.
It also happens same when i change the segvisual width and height.

So I wonder if there are any method to resize the model output.

You should set the width and height of segvisual to the segmentation output first. Then you can set the width and height of nvmultistreamtiler to 1920x1080.
Or you can add a nvvideoconvert plugin to change the size of the video after the segvisual plugin.

Okay I’ll try and share the result
Thanks for the guide :)

Do you still need support for this topic? Or should we close it? Thanks.

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