Logo: Yolov8 Deepstream Trt

Yolov8 Deepstream Trt

Organisatioun
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+.

Iwwersiicht

EditeurSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill-Nummyolov8-deepstream-trt
Stären
58
Forks
9
Matgeliwwert Dateien
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Seeed-Projects huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Yolov8 Deepstream Trt an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov8-deepstream-trt
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Yolov8 Deepstream Trt an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Yolov8 Deepstream Trt automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Yolov8 Deepstream Trt net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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)

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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+.

Firwat Yolov8 Deepstream Trt op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Yolov8 Deepstream Trt besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Yolov8 Deepstream Trt an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov8-deepstream-trt an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Yolov8 Deepstream Trt benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Yolov8 Deepstream Trt benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Yolov8 Deepstream Trt domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Yolov8 Deepstream Trt gratis?

Jo. Seeed-Projects huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇