deepstream-import-vision-model

Convert HuggingFace or NVIDIA NGC vision models into DeepStream pipelines with benchmarking.

Updated May 23, 2026
One-click install
npx skills add https://github.com/yo-steven/skills-exploration-20260522 --skill deepstream-import-vision-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deepstream-import-vision-model
Source: https://github.com/yo-steven/skills-exploration-20260522/tree/main/skills/deepstream/deepstream-import-vision-model
Command: npx skills add https://github.com/yo-steven/skills-exploration-20260522 --skill deepstream-import-vision-model

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the time-consuming, error-prone process of converting a HuggingFace or NVIDIA NGC vision model into a working, benchmarked NVIDIA DeepStream pipeline.

Core Features & Use Cases

  • Model acquisition (HF/NGC): Downloads the right model artifacts and extracts class labels from config.json.
  • ONNX + TensorRT engine automation: Exports SafeTensors to ONNX when needed, builds a dynamic TRT engine, benchmarks with fixed log filenames, and derives throughput-based capacity.
  • DeepStream deployment + parsing: Generates and compiles a custom nvinfer bbox parser and runs validated single-stream and multi-stream performance benchmarks, producing a complete HTML+PDF report.

Quick Start

Use the deepstream-import-vision-model skill to import a HuggingFace object-detection model, build a TensorRT engine, run DeepStream benchmarks on sample_720p.mp4, and generate a styled HTML+PDF benchmark report in models/<model_name>/reports/.

Frequently Asked Questions about deepstream-import-vision-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a HuggingFace object detection model to a DeepStream pipeline?

To convert a HuggingFace object detection model to a DeepStream pipeline, you need to export SafeTensors to ONNX, build a TensorRT engine, and compile a custom nvinfer bbox parser for inference.

What is the best way to benchmark a TensorRT engine before deploying DeepStream?

Benchmarking a TensorRT engine involves running trtexec with fixed log filenames to measure throughput and derive capacity. This validates engine performance prior to integration into the DeepStream pipeline.

Can I use my custom nvinfer bbox parser with a dynamically named TensorRT engine?

Yes, you can use custom nvinfer bbox parsers with dynamically named TensorRT engines. The parser must be generated and compiled specifically for the dynamically built engine to ensure correct detection output parsing.

How do I validate ONNX model detection results against the KITTI dataset?

Validating ONNX model detection results against the KITTI dataset requires running KITTI-based detection validation. This process compares parsed bounding box outputs against ground truth labels to verify model accuracy.

How do I generate an HTML and PDF benchmark report for DeepStream performance?

Generating an HTML and PDF benchmark report for DeepStream performance requires running single-stream and multi-stream measurements. The md-to-html-pdf.py script then converts these fixed logs into a styled canonical report.

Does DeepStream deployment require extracting class labels from config.json?

Yes, DeepStream deployment requires extracting class labels from the model's config.json. This ensures the custom nvinfer bbox parser correctly maps TensorRT engine detection outputs to the intended object categories.