Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU):Jetson
• DeepStream Version:DeepStream-6.2
• JetPack Version (valid for Jetson only):5.1.4
I am currently using the YOLOv5S-INT8 model, and the throughput of the trtexec test model is approximately 120, the approximate pure inference time of deepstream is shown below through the Nsight system:
ExecutionContext::enqueue
Begins: 12.6954s
Ends: 12.6991s (+3.643 ms)
Thread: 1811957
It took 3.643ms, which also indicates that the model should not have any major problems.
But I called the performance analysis code in the example in my code, and then output:
************BATCH-NUM = 346**************
Comp name = nvv4l2decoder0 in_system_timestamp = 1758077341101.964111 out_system_timestamp = 1758077341104.131104 component latency= 2.166992
Comp name = nvstreammux-streammux_0 source_id = 0 pad_index = 0 frame_num = 346 in_system_timestamp = 1758077341104.302002 out_system_timestamp = 1758077341104.437012 component_latency = 0.135010
Comp name = nvinfer0 in_system_timestamp = 1758077341104.500977 out_system_timestamp = 1758077341120.623047 component latency= 16.122070
Comp name = nvvideoconvert0 in_system_timestamp = 1758077341120.761963 out_system_timestamp = 1758077341125.799072 component latency= 5.037109
Source id = 0 Frame_num = 346 Frame latency = 24.025879 (ms)
At frame 346, the delay of the entire pipeline is 24ms, of which nvinfer took 16ms.
When I view the pure inference time of the current frame in the Nsight system:
When I viewed the pure inference time of the current frame in the Nsight system as 3.699ms, the post-processing I used was GitHub - marcoslucianops/DeepStream-Yolo: NVIDIA DeepStream SDK 7.1 / 7.0 / 6.4 / 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models Post processing, and I printed it for about 0.8ms
I want to ask what Nvinfer is doing at other times? How can I improve the performance of the pipeline?
My Pipeline is nvurisrcbin - nvstreammux - nvinfer - nvvideoconvert -fakesink


