Skip to navigation

Sample Configurations and Streams

View as Markdown

Contents of the package

This section provides information about included sample configs and streams.

  • samples: Directory containing sample configuration files, streams, and models to run the sample applications.

samples/configs/deepstream-app: Configuration files for the reference application

The following table provides information about configuration files for the reference application in samples/configs/deepstream-app directory.

Sample configs for the reference application in samples/configs/deepstream-app

Configuration FileDescriptionPlatform
source30_1080p_dec_infer-resnet_tiled_display.txtDemonstrates 30 stream decodes with primary inferencingFor all platforms.
source30_1080p_dec_infer-resnet_tiled_display.ymlYAML based config file to demonstrate 30 stream decode with primary inference for dGPU and Jetson AGX Orin platforms only.For all platforms.
source4_1080p_dec_infer-resnet_tiled_display.txtDemonstrates four stream decodes with primary inferencing, object tracking, and two different secondary classifiersFor all platforms.
source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display.ymlYAML based config file to demonstrate four stream decode with primary inferencing, object tracking, and two different secondary classifiersFor all platforms.
source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_gpu1.txtDemonstrates four stream decodes with primary inferencing, object tracking, and two different secondary classifiers on GPU 1 (for systems that have multiple GPU cards)For x86 platforms only
config_infer_primary.txtConfigures a nvinfer element as primary detectorFor all platforms.
config_infer_primary.ymlYAML based config file to configure a nvinfer element as primary detectorFor all platforms.
config_infer_secondary_vehiclemake.txt, config_infer_secondary_vehicletypes.txtConfigure a nvinfer element as secondary classifierFor all platforms.
config_infer_secondary_vehiclemake.yml, config_infer_secondary_vehicletypes.ymlYAML based config file to configure a nvinfer element as secondary classifierFor all platforms.
config_tracker_IOU.ymlConfig file for IOU trackerFor all platforms.
config_tracker_NvSORT.ymlConfig file for NvSORT trackerFor all platforms.
config_tracker_NvDeepSORT.ymlConfig file for NvDeepSORT trackerFor all platforms.
config_tracker_NvDCF_accuracy.ymlConfig file for NvDCF tracker for higher accuracyFor all platforms.
config_tracker_NvDCF_max_perf.ymlConfig file for NvDCF tracker for max perf modeFor all platforms.
config_tracker_NvDCF_perf.ymlConfig file for NvDCF tracker for perf modeFor all platforms.
config_preprocess.txtConfig file for using preprocess in PGIE modeFor all platforms.
config_preprocess_sgie.txtConfig file for using preprocess in SGIE modeFor all platforms.
source4_1080p_dec_preprocess_infer-resnet_preprocess_sgie_tiled_display.txtDemonstrates four stream decodes with preprocess plugin in PGIE mode followed by primary inferencing, preprocess plugin in SGIE mode, and two different secondary classifiersFor all platforms.
source30_1080p_dec_preprocess_infer-resnet_tiled_display.txtDemonstrates 30 stream decodes with preprocess plugin in PGIE mode followed by primary inferencingFor all platforms.
sources_30.csvCSV file for 30 sources required in source30_1080p_dec_infer-resnet_tiled_display.ymlFor all platforms.
sources_4.csvCSV file for 30 sources required in source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display.ymlFor all platforms.
source1_usb_dec_infer_resnet.txtDemonstrates one USB camera as inputFor all platforms.
source1_csi_dec_infer_resnet.txtDemonstrates one CSI camera as inputFor Jetson only
source2_csi_usb_dec_infer_resnet.txtDemonstrates one CSI camera and one USB camera as inputsFor Jetson only
source6_csi_dec_infer_resnet.txtDemonstrates six CSI cameras as inputsFor Jetson only
source2_1080p_dec_infer-resnet_demux.txtDemonstrates demux mode for two sourcesFor all platforms.
config_mux_source4.txt, config_mux_source30.txtSample nvstreammux (new) config files. For more details see Section Mux Config PropertiesFor all platforms.

samples/configs/deepstream-app-triton: Configuration files for the reference application for inferencing using Triton Inference Server.

The following table provides information about configuration files for the reference application in samples/configs/deepstream-app-triton directory.

Sample configs for the reference application for inferencing using Triton Inference Server in samples/configs/deepstream-app-triton

Configuration FileDescription
source30_1080p_dec_infer-resnet_tiled_display.txt30 Decode + Infer
source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display.txt4 Decode + Infer + SGIE + Tracker
source1_primary_classifier.txtSingle source + full frame classification
source1_1080p_dec_infer_peoplesemsegnet_shuffle.txtSingle source + semantic segmentation
source1_primary_detector_peoplenet_transformer.txtSingle source + full frame classification
source1_primary_detector.txtSingle source + object detection using ssd

Other classification models can be used by changing the ds-triton nvinferserver config file in the [*-gie] group of application config file.

  • Configuration files for ds-triton nvinferserver element in configs/deepstream-app-triton/. The following table provides information about configuration files for the reference application in samples/configs/deepstream-app-triton directory.

Sample configs for ds-triton nvinferserver element in samples/configs/deepstream-app-triton

Configuration FileDescription
config_infer_plan_engine_primary.txtPrimary Object Detector
config_infer_secondary_plan_engine_vehiclemake.txtSecondary Vehicle Make Classifier
config_infer_secondary_plan_engine_vehicletypes.txtSecondary Vehicle Type Classifier

samples/configs/deepstream-app-triton-grpc: Configuration files for the reference application for inferencing using Triton Inference Server gRPC

The following table provides information about configuration files for the reference application using Triton Inference Server gRPC in samples/configs/deepstream-app-triton-grpc directory.

Sample configs for inferencing using Triton Inference Server gRPC in samples/configs/deepstream-app-triton-grpc

Configuration FileDescription
config_infer_plan_engine_primary.txtPrimary Object Detector
config_infer_secondary_plan_engine_vehiclemake.txtSecondary Vehicle Make Classifier
config_infer_secondary_plan_engine_vehicletypes.txtSecondary Vehicle Type Classifier
  • Configuration files for ds-triton nvinferserver element in configs/deepstream-app-triton-grpc/. The following table provides information about configuration files for the reference application using Triton Inference Server nvinferserver in samples/configs/deepstream-app-triton-grpc directory.

Sample configs for inferencing using Triton Inference Server gRPC in samples/configs/deepstream-app-triton-grpc

Configuration FileDescription
config_infer_plan_engine_primary.txtPrimary Object Detector
config_infer_secondary_plan_engine_vehiclemake.txtSecondary Vehicle Make Classifier
config_infer_secondary_plan_engine_vehicletypes.txtSecondary Vehicle Type Classifier
  • NVIDIA TAO Toolkit pretrained Models:

    • samples/configs/tao_pretrained_models: Contains README.md to obtain configs and models for TAO toolkit.
  • samples: Directory containing sample configuration files, models, and streams to run the sample applications.

  • samples/streams: The following streams are provided with the DeepStream SDK:

StreamsType of stream
sample_1080p_h264.mp4H264 containerized stream
sample_1080p_h265.mp4H265 containerized stream
sample_720p.h264H264 elementary stream
sample_720p.jpgJPEG image
sample_720p_mjpeg.mp4MJPEG containerized stream
sample_720p.mp4Containerized stream
sample_cam5.mp4H264 containerized stream (360D camera stream)
sample_cam6.mp4H264 containerized stream (360D camera stream)
sample_industrial.jpgJPEG image
yoga.jpgImage for perspective projection in Dewarper
yoga.mp4Containerized stream
sample_qHD.mp4Used for MaskRCNN
sample_qHD.h264H264 elementary stream
sample_push.movH264 containerized stream
sample_ride_bike.movH264 containerized stream
sample_run.movH264 containerized stream
sample_walk.movH264 containerized stream
fisheye_dist.mp4Containerized stream
sonyc_mixed_audio.wavAudio bitstream
sample_office.mp4Containerized stream
pointcloudContains input files for lidar application
  • samples/models: The following sample models are provided with the SDK:

DeepStream Reference application

ModelModel TypeNo. of ClassesResolution
Primary DetectorResnet184960 × 544
Secondary Vehicle Make ClassifierResnet1820224 × 224
Secondary Vehicle Type ClassifierResnet186224 × 224

Scripts included along with package

  • The script prepare_classification_test_video.sh mentioned below requires ffmpeg to be installed. Some of the low level codec libraries need to be re-installed along with ffmpeg.
  • Use the following command to install/re-install ffmpeg: apt-get install --reinstall libflac8 libmp3lame0 libxvidcore4 ffmpeg

The following scripts are included along with the sample applications package:

  • samples/ prepare_classification_test_video.sh: Downloads Imagenet test images and creates a video out of it to test with Classification models.

  • samples/ prepare_ds_triton_model_repo.sh: Prepare the Model repository for Triton Inference Server

    1. Creates engine files for ONNX based models provided as part of SDK.
  • samples/ prepare_ds_triton_tao_model_repo.sh: Prepare the Model repository for Triton Tao Inference Server

    1. Downloads Model files for Peoplenet Transformer, Peoplesemsegnet Shuffle.
    2. Create engine files for downloaded models.
  • uninstall.sh: Used to clean up previous DS installation.