Yolov5 Object Detection logo

Yolov5 Object Detection

Organization
Seeed-Projects
yolov5-object-detection

End-to-end YOLOv5 few-shot object detection pipeline on Jetson. Covers dataset collection, annotation with Roboflow, training (local PC, Google Colab, or Ultralytics HUB), and inference on Jetson using TensorRT or DeepStream SDK. Supports all Jetson platforms from Nano to AGX Xavier.

Overview

PublisherSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill nameyolov5-object-detection
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 Yolov5 Object Detection 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/yolov5-object-detection
  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/yolov5-object-detection .claude/skills/yolov5-object-detection
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yolov5 Object Detection 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 Yolov5 Object Detection 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 Yolov5 Object Detection 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.

YOLOv5 Object Detection with Roboflow on Jetson

Complete ML pipeline for YOLOv5: collect data, annotate with Roboflow, train on local PC or cloud, and deploy on Jetson with TensorRT acceleration for real-time object detection.


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 deviceAny NVIDIA Jetson (Nano, Xavier NX, AGX Xavier, Orin)
JetPack4.6.1+ with all SDK components
Host PCLinux for local training, or any OS for cloud training
Roboflow accountFor dataset annotation and export
NetworkInternet access on both host and Jetson

Phase 1 — Prepare dataset and annotate with Roboflow

Collect images/video of target objects covering multiple angles, lighting, and conditions. Upload to Roboflow, annotate with bounding boxes, split into train/valid/test, and export in "YOLO v5 PyTorch" format as a .zip file.

[OK] when you have a downloaded .zip with YOLO v5 PyTorch format. [STOP] if Roboflow export fails.


Phase 2 — Train the model (choose one method)

Option A: Local PC (Linux)

bash
git clone https://github.com/ultralytics/yolov5
cd yolov5
pip install -r requirements.txt

Copy and extract the Roboflow .zip into the yolov5 directory. Edit data.yaml:

train: train/images
val: valid/images

Train:

bash
python3 train.py --data data.yaml --img-size 640 --batch-size -1 --epoch 100 --weights yolov5n6.pt

The trained model is saved at runs/train/exp/weights/best.pt.

Option B: Google Colab — Use the prepared Colab notebook with Roboflow API integration.

Option C: Ultralytics HUB — Upload dataset to HUB, configure training, and run on Colab.

[OK] when best.pt is generated. [STOP] if training fails with OOM (reduce batch size).


Phase 3 — Set up Jetson for TensorRT inference (~15 min)

On the Jetson device:

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

Edit requirements.txt to pin versions and comment out torch:

matplotlib==3.2.2
numpy==1.19.4
# torch>=1.7.0
# torchvision>=0.8.1

Install dependencies:

bash
sudo apt install -y libfreetype6-dev
pip3 install -r requirements.txt

Install PyTorch and torchvision for Jetson:

bash
cd ~
sudo apt-get install -y libopenblas-base libopenmpi-dev
wget https://nvidia.box.com/shared/static/fjtbno0vpo676a25cgvuqc1wty0fkkg6.whl -O torch-1.10.0-cp36-cp36m-linux_aarch64.whl
pip3 install torch-1.10.0-cp36-cp36m-linux_aarch64.whl
sudo apt install -y libjpeg-dev zlib1g-dev
git clone --branch v0.9.0 https://github.com/pytorch/vision torchvision
cd torchvision
sudo python3 setup.py install

[OK] when import torch succeeds on Jetson. [STOP] if torch wheel install fails.


Phase 4 — Convert model and run TensorRT inference (~10 min)

Clone tensorrtx and generate engine:

bash
cd ~
git clone https://github.com/wang-xinyu/tensorrtx
cp tensorrtx/yolov5/gen_wts.py yolov5/
cd yolov5
python3 gen_wts.py -w best.pt -o best.wts

Build the TensorRT engine:

bash
cd ~/tensorrtx/yolov5

Edit yololayer.h and set CLASS_NUM to your number of classes.

bash
mkdir build && cd build
cp ~/yolov5/best.wts .
cmake ..
make
sudo ./yolov5 -s best.wts best.engine n6

Run inference on images:

bash
sudo ./yolov5 -d best.engine images/

[OK] when detection output images are generated with bounding boxes. [STOP] if engine serialization fails.


Failure decision tree

SymptomAction
Training OOM on local PCReduce --batch-size to 16 or 8. Use yolov5n6.pt for smaller model.
CUDA not available on JetsonVerify JetPack SDK components installed. Check nvcc --version.
Torch wheel install failsEnsure correct Python version matches wheel (cp36 for Python 3.6).
torchvision build failsInstall build deps: sudo apt install libjpeg-dev zlib1g-dev.
gen_wts.py errorsEnsure best.pt is in the yolov5 directory. Check model compatibility.
cmake fails in tensorrtxVerify TensorRT is installed: dpkg -l | grep tensorrt.
Wrong CLASS_NUMEdit yololayer.h to match your dataset class count before building.
Engine serialization OOMUse n6 (nano) variant. Close other GPU processes.

Reference files

  • references/source.body.md — Full Seeed Wiki tutorial with Roboflow annotation walkthrough, Ultralytics HUB integration, DeepStream SDK deployment, INT8 calibration, and Jetson Nano vs Xavier NX benchmarks (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 Yolov5 Object Detection AI skill do?

End-to-end YOLOv5 few-shot object detection pipeline on Jetson. Covers dataset collection, annotation with Roboflow, training (local PC, Google Colab, or Ultralytics HUB), and inference on Jetson using TensorRT or DeepStream SDK. Supports all Jetson platforms from Nano to AGX Xavier.

Why use Yolov5 Object Detection on TypingMind?

Because you install it once and use it with any model. Yolov5 Object Detection 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 Yolov5 Object Detection 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/yolov5-object-detection. 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 Yolov5 Object Detection?

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 Yolov5 Object Detection?

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

Is the Yolov5 Object Detection 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 👇