Hello, I am trying to run deepstream-app with ds-example enabled. For this, I have added a config group to the source30_1080p_dec_infer-resnet_tiled_display_int8.txt as the following:
But I’m still getting 11FPS at maximum avg. per channel on 30 streams 720p each with Xavier.
When ds-example disabled, the deepstream-app runs perfectly on 30FPS for multiple streams on both Xavier and Nano. But when enabled, the deepstream-app runs very slowly (2~5 FPS) lags severely! I can’t find any explanation for this behavior, or is it expected?
@DaneLLL what do you mean by “its expected”? Are you saying that converting from RGBA to BGR with OpenCV is what slows processing down from 30fps down to the 11 the original poster mentioned?
So using OpenCV anywhere in your pipeline sounds like a real performance killer then?
Yes. You can remove following code in gstdsexample.cpp and do comparison.
// Use openCV to remove padding and convert RGBA to BGR. Can be skipped if
// algorithm can handle padded RGBA data.
in_mat =
cv::Mat (dsexample->processing_height, dsexample->processing_width,
CV_8UC4, dsexample->inter_buf->surfaceList[0].mappedAddr.addr[0],
dsexample->inter_buf->surfaceList[0].pitch);
cv::cvtColor (in_mat, *dsexample->cvmat, CV_RGBA2BGR);