Hi everyone,
I am trying to implement python app which creates deepstream pipeline for object detection using SSD Mobilenet V2.
I tried this python file
Below is a working main function. Please note that image flip is currently not supported. The nvvidconv plugin is deprecated and not fully compatible with other deepstream plugins due to buffer format differences. This will be addressed in an upcoming release of the SDK.
def main(args):
# Standard GStreamer initialization
GObject.threads_init()
Gst.init(None)
# Create gstreamer elements
# Create Pipeline element that will form a connection of other elements
print("Creat…
It worked for single camera input. But it is too slow, lot of frames are getting lost from buffer which causes fps drop. Why this is happening?
And I want to give 2 camera inputs to Object detection model through deepstream python. What’s the process to do it?
Thanks.
Amycao
July 15, 2020, 8:19am
5
Hi
You could follow this trouble shoot to tune the performance.
Part: The DeepStream application is running slowly.
Thank you @Amycao for reply.
I tried steps given on that link, still no improvement.
I used GETFPS() to get fps, it showed average 8 fps for both camera inputs but it is displaying output very slowly, maybe it is dropping frames before display.
And when I use config file for running the two csi camera input streams instead of python I got upto 17 fps for each camera stream, but for python it is dropping to half for each stream.
I need to trigger GPIO pins when desired object is detected. So I need to use python code for inference.
bcao
July 16, 2020, 3:51am
7
Do you mean the perf of deepstream c/c++ app is better than deepstream python apps, which app are u using?
Using deepstream-app command line app.
Amycao
July 20, 2020, 5:29am
9
You could narrow down the difference between deepstream-app and python sample you used to see which part caused the perf drop.
deepstream-app uses config files to run, I built my python code based on that config files.
But it is still giving perf drop.
Amycao
July 20, 2020, 7:18am
11
You could add queue after streammux for each element.