Yolov8 Deepstream Trt logo

Yolov8 Deepstream Trt

Organization
Seeed-Projects
yolov8-deepstream-trt

Deploy YOLOv8 on NVIDIA Jetson using TensorRT and DeepStream SDK for high-performance video inference. Covers JetPack flashing, DeepStream installation, PyTorch/torchvision setup, DeepStream-Yolo configuration, INT8 calibration, and multistream benchmarks. Supports JetPack 4.6+ with DeepStream 6.0+.

Overview

PublisherSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill nameyolov8-deepstream-trt
Stars
58
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Seeed-Projects on GitHub. Read the source before you install it.

Installation

Install the Yolov8 Deepstream Trt AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov8-deepstream-trt
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool.git /tmp/Seeed-Jetson-DevelopTool
mkdir -p .claude/skills
cp -r /tmp/Seeed-Jetson-DevelopTool/seeed_jetson_develop/skills/openclaw/yolov8-deepstream-trt .claude/skills/yolov8-deepstream-trt
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yolov8 Deepstream Trt in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yolov8 Deepstream Trt on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yolov8 Deepstream Trt is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

YOLOv8 with TensorRT and DeepStream SDK on Jetson

Deploy YOLOv8 models on Jetson using DeepStream SDK and TensorRT for maximum inference performance. Supports FP32, FP16, and INT8 precision with single and multistream configurations.


Execution model

Run one phase at a time. After each phase:

  • Relay all output to the user.
  • If output contains [STOP] → stop immediately, consult the failure decision tree.
  • If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.

Prerequisites

RequirementDetail
Jetson devicereComputer J4012 or any Jetson with JetPack 4.6+
JetPack4.6+ (DeepStream 6.0+) or 5.1.1 (DeepStream 6.2)
DeepStream SDKMatching JetPack version (see compatibility table in source)
Host PCUbuntu (native or VM) for flashing
NetworkInternet access for cloning repos and downloading models

Phase 1 — Install DeepStream dependencies (~5 min)

After JetPack is flashed with DeepStream SDK via SDK Manager, install additional dependencies:

bash
sudo apt install \
  libssl1.1 \
  libgstreamer1.0-0 \
  gstreamer1.0-tools \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad \
  gstreamer1.0-plugins-ugly \
  gstreamer1.0-libav \
  libgstreamer-plugins-base1.0-dev \
  libgstrtspserver-1.0-0 \
  libjansson4 \
  libyaml-cpp-dev

[OK] when all packages install. [STOP] if packages not found (check JetPack/DeepStream version).


Phase 2 — Install Ultralytics and PyTorch (~15 min)

bash
sudo apt update
sudo apt install -y python3-pip
pip3 install --upgrade pip
git clone https://github.com/ultralytics/ultralytics.git
cd ultralytics

Edit requirements.txt to comment out torch/torchvision:

# torch>=1.7.0
# torchvision>=0.8.1
bash
pip3 install -r requirements.txt

Install PyTorch for Jetson (example for JP5.0.2 / PyTorch 1.12):

bash
sudo apt-get install -y libopenblas-base libopenmpi-dev
wget https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl -O torch-1.12.0.whl
pip3 install torch-1.12.0.whl

Install matching torchvision:

bash
sudo apt install -y libjpeg-dev zlib1g-dev
git clone --branch v0.13.0 https://github.com/pytorch/vision torchvision
cd torchvision
python3 setup.py install --user

[OK] when import torch and import torchvision succeed. [STOP] if wheel install fails.


Phase 3 — Configure DeepStream for YOLOv8 (~10 min)

bash
cd ~
git clone https://github.com/marcoslucianops/DeepStream-Yolo
cd DeepStream-Yolo
git checkout 68f762d5bdeae7ac3458529bfe6fed72714336ca

Generate config and weights:

bash
cp utils/gen_wts_yoloV8.py ~/ultralytics
cd ~/ultralytics
wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8s.pt
python3 gen_wts_yoloV8.py -w yolov8s.pt

Copy generated files and compile:

bash
cp yolov8s.cfg ~/DeepStream-Yolo
cp yolov8s.wts ~/DeepStream-Yolo
cp labels.txt ~/DeepStream-Yolo
cd ~/DeepStream-Yolo
CUDA_VER=11.4 make -C nvdsinfer_custom_impl_Yolo

Edit config_infer_primary_yoloV8.txt:

custom-network-config=yolov8s.cfg
model-file=yolov8s.wts
num-detected-classes=80

Edit deepstream_app_config.txt to set:

config-file=config_infer_primary_yoloV8.txt

[OK] when make completes and config files are updated. [STOP] if CUDA_VER mismatch or compile errors.


Phase 4 — Run inference

bash
deepstream-app -c deepstream_app_config.txt

[OK] when video plays with detection overlays. [STOP] if DeepStream crashes or engine build fails.


Phase 5 — (Optional) INT8 calibration for higher performance

bash
sudo apt-get install libopencv-dev
cd ~/DeepStream-Yolo
CUDA_VER=11.4 OPENCV=1 make -C nvdsinfer_custom_impl_Yolo

Download COCO val2017, select calibration images:

bash
mkdir calibration
for jpg in $(ls -1 val2017/*.jpg | sort -R | head -1000); do cp ${jpg} calibration/; done
realpath calibration/*jpg > calibration.txt
export INT8_CALIB_IMG_PATH=calibration.txt
export INT8_CALIB_BATCH_SIZE=1

Update config_infer_primary_yoloV8.txt:

model-engine-file=model_b1_gpu0_int8.engine
int8-calib-file=calib.table
network-mode=1
bash
deepstream-app -c deepstream_app_config.txt

[OK] when INT8 inference runs with higher FPS. [STOP] if calibration fails.


Failure decision tree

SymptomAction
DeepStream deps not foundVerify JetPack version matches DeepStream version. Reflash if needed.
PyTorch wheel install failsUse Jetson-specific wheel from NVIDIA forums. Match Python version.
torchvision build failsInstall build deps: sudo apt install libjpeg-dev zlib1g-dev.
make fails — CUDA_VER wrongUse CUDA_VER=11.4 for DS 6.2/6.1, CUDA_VER=10.2 for DS 6.0.x.
gen_wts_yoloV8.py errorsEnsure correct DeepStream-Yolo commit is checked out. Verify .pt file exists.
deepstream-app crashesCheck config file paths. Verify .cfg and .wts files are in DeepStream-Yolo dir.
Low FPS on screenSet type=1 under [sink0] in config to disable display and get true FPS.
INT8 calibration OOMReduce INT8_CALIB_BATCH_SIZE or number of calibration images.

Reference files

  • references/source.body.md — Full Seeed Wiki tutorial with DeepStream/JetPack version table, multistream configuration, trtexec benchmarking, INT8 calibration walkthrough, and performance benchmarks across Jetson devices (reference only)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yolov8 Deepstream Trt AI skill do?

Deploy YOLOv8 on NVIDIA Jetson using TensorRT and DeepStream SDK for high-performance video inference. Covers JetPack flashing, DeepStream installation, PyTorch/torchvision setup, DeepStream-Yolo configuration, INT8 calibration, and multistream benchmarks. Supports JetPack 4.6+ with DeepStream 6.0+.

Why use Yolov8 Deepstream Trt on TypingMind?

Because you install it once and use it with any model. Yolov8 Deepstream Trt is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yolov8 Deepstream Trt in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov8-deepstream-trt. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Yolov8 Deepstream Trt?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yolov8 Deepstream Trt?

As many as you like. As long as a model supports skills, you can use Yolov8 Deepstream Trt with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yolov8 Deepstream Trt AI skill free?

Yes. It is published on GitHub by Seeed-Projects under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇