Skip to navigation

Performance

View as Markdown

DeepStream application is benchmarked across various NVIDIA TAO Toolkit and open source models. The measured performance represents end-to-end performance of the entire video analytic application considering video capture and decode, pre-processing, batching, inference, and post-processing to generate metadata. The output rendering is turned off to achieve peak inference performance. For information on disabling the output rendering, see DeepStream Reference Application - deepstream-app chapter.

TAO Pre-trained models

TAO toolkit has a set of pretrained models listed in the table below. If the models below satisfy your requirement, you should start with one of them. These could be used for various applications in smart city or smart places. If your application is beyond the scope of these models, you may re-train one of the popular model architecture using TAO toolkit. The table below shows the end-to-end performance on highly accurate pre-trained models from TAO toolkit. All models are available on NGC. These models are natively integrated with DeepStream and the instructions to run these models are in /opt/nvidia/deepstream/deepstream/samples/configs/tao_pretrained_models/. The following numbers are obtained with sample_1080p_h265.mp4.

The RT-DETR (warehouse) model used with the MV3DT Tracker is a warehouse-centric variant that differs from the RT-DETR model used in the other settings. It is trained for warehouse scenes with classes such as person, forklift and humanoid robots. The model is available on NGC at RT-DETR 2D Warehouse.

Jetson - pretrained models

Jetson AGX ThorJetson AGX Orin
Model ArchInference resolutionPrecisionTrackerGPU
(FPS)
GPU
(FPS)
C-RADIO-B3224224FP16No Tracker1320544
C-RADIO-L3224224FP16No Tracker557179
NV-DinoV2-L3224224FP16No Tracker451126
RT-DETR3640640FP16No Tracker20896
RT-DETR3640640FP16NvDCF Tracker18996
RT-DETR (warehouse)3544960FP16MV3DT Tracker9539
Peoplenet 2.6.33640640FP16MV3DT Tracker349147
PeopleNet Transformer3544960FP16MV3DT Tracker2516
Grounding-DINO3544960FP16No Tracker2413
MaskGroundingDINOv23544960FP16No Tracker2415
TrafficCamnet Transformer Lite3544960FP16NvDCF Tracker153105
SegFormer3640640FP16No Tracker256145
Mask2Former + SWIN3800800FP16No Tracker2618

Performance dgx-spark - pretrained models

DGX Spark
Model ArchInference resolutionPrecisionTrackerGPU
(FPS)
C-RADIO-B3224224FP16No Tracker1153
C-RADIO-L3224224FP16No Tracker414
NV-DinoV2-L3224224FP16No Tracker339
RT-DETR3640640FP16No Tracker192
RT-DETR3640640FP16NvDCF Tracker190
RT-DETR (warehouse)3544960FP16MV3DT Tracker106
Peoplenet 2.6.33640640FP16MV3DT Tracker341
PeopleNet Transformer3544960FP16MV3DT Tracker26
Grounding-DINO3544960FP16No Tracker24
MaskGroundingDINOv23544960FP16No Tracker25
TrafficCamnet Transformer Lite3544960FP16NvDCF144
SegFormer3640640FP16No Tracker226
Mask2Former + SWIN3800800FP16No Tracker29

Performance dgpu- pretrained models

RTX PRO 4500 BSERTX PRO 6000 WSRTX PRO 6000 BSEL40sB200GB200
Model ArchInference resolutionPrecisionInference
Engine
TrackerGPU
(FPS)
GPU
(FPS)
GPU
(FPS)
GPU
(FPS)
GPU
(FPS)
GPU
(FPS)
C-RADIO-B3224224FP16TRTNo Tracker21824720424129691002311180
C-RADIO-L3224224FP16TRTNo Tracker66815421998135538414362
NV-DinoV2-L3224224FP16TRTNo Tracker53413691728102736664067
RT-DETR3640640FP16TRTNo Tracker3801063103764314481541
RT-DETR3640640FP16TRTNvDCF Tracker379102494664214171529
RT-DETR (warehouse)3544960FP16TRTMV3DT Tracker2596605382679551238
Peoplenet 2.6.33640640FP16TRTMV3DT Tracker74118991524111435723432
Peoplenet Transformer3544960FP16TRTMV3DT Tracker85224205142243279
Grounding-DINO3544960FP16TRTNo Tracker69178159107216235
TrafficCamNet Transformer Lite3544960FP16TRTNvDCF Tracker37399492064321042215
SegFormer3640640FP16TRTNo Tracker6331348129198612901532
Mask2Former + SWIN3800800FP16TRTNo Tracker6811810875116285
MaskGroundingDINO V23544960FP16TRTNo Tracker69180159107218236

TAO Fine-tuned models

TAO Toolkit Finetuning Microservice provides a new interface for accelerating model training and automating model fine-tuning flows. The fine-tuned models can be used by DeepStream SDK 9.2 out-of-the-box via Inference Builder. The table mentioned in the TAO Pre-trained models section shows the end-to-end performance on fine-tuned models from TAO toolkit.

DeepStream reference model and tracker

DeepStream SDK ships with a reference DetectNet_v2-ResNet10 model and three ResNet18 classifier models. The detailed instructions to run these models with DeepStream are provided in the next section. DeepStream provides four reference trackers: IOU, NvSORT, NvDeepSORT and NvDCF. For more information about trackers, See the Gst-nvtracker section.

Configuration File Settings for Performance Measurement

To achieve peak performance, make sure the devices are properly cooled. For Turing and Ampere GPUs, make sure you use a server that meets the thermal and airflow requirements. Along with the hardware setup, a few other options in the config file need to be set to achieve the published performance. Make the required changes to one of the config files from DeepStream SDK to replicate the peak performance.

Turn off output rendering, OSD, and tiler

OSD (on-screen display) is used to display bounding box, masks, and labels on the screen. If output rendering is disabled, creating bounding boxes is not required unless the output needs to be streamed over RTSP or saved to disk. Tiler is used to display the output in NxM tiled grid. It is not needed if rendering is disabled. Output rendering, OSD and tiler use some percentage of compute resources, so it can reduce the inference performance.

To disable OSD, tiled display and output sink, make the following changes in the DeepStream config file.

  • To disable OSD, change enable to 0
[osd]
enable=0
  • To disable tiling, change enable to 0
[tiled-display]
enable=0
  • To turn-off output rendering, change the sink to fakesink.
[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=1
sync=0

Use the max_perf setting for tracker

DeepStream SDK 6.2 onwards introduces a new reference low-level tracker library, NvMultiObjectTracker, along with a set of configuration files:

  • config_tracker_IOU.yml
  • config_tracker_NvDCF_max_perf.yml
  • config_tracker_NvDCF_perf.yml
  • config_tracker_NvDCF_accuracy.yml

To achieve the peak performance shown in the table above when using the NvDCF tracker, make sure the max_perf configuration is used with video frame resolution matched to that of the inference module. If the inference module uses 480x272 resolution, for example, it would be recommended to use a reduced resolution (e.g., 480x288) for the tracker module like the following:

[tracker]
enable=1
tracker-width=480
tracker-height=288
ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
#ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_IOU.yml
ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_NvDCF_max_perf.yml
gpu-id=0
enable-batch-process=1
display-tracking-id=1

When the IOU tracker is used, the video frame resolution doesn’t matter, and the default config_tracker_IOU.yml can be used.

CudaDeviceScheduleBlockingSync flag is set by default on dGPU

  • On dGPU only, cudaDeviceScheduleBlockingSync flag is set by default on the GPU where the Deepstream pipeline runs. In general, for pipelines with multiple streams, this helps in reducing the CPU utilization without affecting the performance much.
  • Setting cudaDeviceScheduleBlockingSync flag when sub batches are enabled in the tracker, results in significant reduction in CPU utilization with similar or negligible dip in performance.
  • When the environment variable NVDS_DISABLE_CUDADEV_BLOCKINGSYNC is set to 1, cudaDeviceScheduleBlockingSync flag is not set by default.
  • There is a remote possibility that setting cudaDeviceScheduleBlockingSync flag might affect the pipeline performance negatively when the pipeline already runs with GPU utilization close to 100%. Hence, when the user encounters a situation where a Deepstream pipeline is GPU bound and the GPU utilization does not reach close to 100%, then the user may experiment with setting NVDS_DISABLE_CUDADEV_BLOCKINGSYNC to 1 and check if it helps in improving the performance of the pipeline.