NVIDIA
NVIDIA
Traffic Cam Analyzer on A100 MIG
Resource
NVIDIA
NVIDIA
Traffic Cam Analyzer on A100 MIG

Build an example Traffic Cam Footage Analyzer Using the NVIDIA DeepStream SDK and Triton Inference Server to identify and classify vehicles (sedan, truck, SUV, etc.) from live traffic camera streams

Scaling DeepStream-Triton on NVIDIA A100 MIG instances through Kubernetes

This repository contains configuration files to run a reference end-to-end video analytics application using NVIDIA DeepStream. The application is an example Traffic Cam Analyzer that locates 4 different objects on the road (car, pedestrian, roadsign and bicycle) and then classifies the cars into 6 different classes - sedan, minivan, truck etc.

We use TrafficCamNet for object detection and VehicleTypeNet for classification, both of which are pre-trained models available in the models section on NGC.

The models are configured using NVIDIA DeepStream and served using Triton Inference Server. A variant of the DeepStream container on NGC comes enabled with Triton Inference Server built-in and can be obtained by locating the appropriate tag.

The deployment is first done on a single 2g.10gb MIG instance of a NVIDIA A100 GPU then scaled all the way up to 8 x A100's, all configured with the same MIG profile to showcase how Multi Instance GPU (MIG) can be leveraged to serve IVA use-cases in parallel - either scaling a single use-case, or deploying different use-cases on a single GPU. The 2g.10gb MIG profile is optimal for this specific use-case, but you may feel free to configure your MIG slices appropriately for your use-case.

Watch a live demonstration of this example at GTC 2021!

Pre-requisite:

  1. A server with 1 or more (preferably 8) NVIDIA A100's, either on cloud (AWS p4dn.24xlarge) or on-prem.
  2. GPUs sliced with 2g.10gb MIG profile.
  3. NVIDIA Driver 460+
  4. Docker image - nvcr.io/nvidia/deepstream:5.1-21.02-triton
  5. Kubernetes setup on master and worker node (for scaling across MIG instances)

Instructions to run:

  1. Launch the docker container
    docker run -it --rm --gpus device=<MIG-instance-UUID> nvcr.io/nvidia/deepstream:5.1-21.02-triton

  2. Download this Resource from NGC - Use the WGET Command Up Above or the NGC CLI command

  3. Execute the automate script
    cd ds_triton && bash automate_script.sh

Expected output:

On a 2g.10gb MIG instance, this application would run at 30 frames per second for 35 full HD video streams.

Publisher
NVIDIA
NVIDIA
Latest Version1
UpdatedApril 4, 2023 UTC
Compressed Size37.1 KB

NVIDIA uses cookies to improve your experience on our web site. We and our third-party partners also use cookies and other tools to collect and record information you provide as well as information about your interactions with our websites for performance improvement, analytics, and to assist in marketing efforts. By clicking "Accept All", you consent to our use of cookies and other tools as described in our Cookie Policy. You can manage your cookie settings by clicking on "Manage Settings." By continuing to use this site or by clicking one of the buttons below, you agree to our Terms of Service (which contains important waivers). Please see our Privacy Policy for more information on our privacy practices.