CV / DAMO-YOLO
DAMO-YOLO
DAMO-YOLO with TinyNAS backbones detects 80 COCO object classes on Hailo-8, using the nanodet_split head with DFL box regression. One card, three variants (TinyNAS-L20_T / L25_S / L35_M) selected via the Size dropdown.
Choisissez l'appareil que vous utilisez. Le guide de configuration et la documentation seront mis à jour en conséquence.
Pour commencer
sudo docker run --rm \
--name cm5-hailo8-damoyolo-l20t \
--privileged \
--net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
-v /usr/lib/libhailort.so.4.23.0:/usr/lib/libhailort.so.4.23.0:ro \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo8-cv/damoyolo_tinynas_l20_t:latest \
python web_detection.py --model_path model/damoyolo_tinynas_l20_t.hef --video_path video/test.mp4Détails du modèle
DAMO-YOLO on reComputer R Series (CM5 + Hailo-8)
DAMO-YOLO with TinyNAS backbones performs COCO 80-class object detection on
Hailo-8 through HailoRT, using the nanodet_split head with DFL box
regression. One card, three variants selected via the Size dropdown.
This page targets reComputer R Series (CM5 + Hailo-8) with a PCIe Hailo-8 accelerator.
Model Info
| Variant | Parameters | Operations | mAP (COCO) | Packaged HEF |
|---|---|---|---|---|
| T (tinynasL20) | 11.35M | 18.0G | 42.8 | 8.8 MB |
| S (tinynasL25) | 16.25M | 37.6G | 46.5 | 14 MB |
| M (tinynasL35) | 33.98M | 61.6G | 49.7 | 27 MB |
| Property | Value |
|---|---|
| Task | Object detection |
| Input | 640x640x3 RGB (normalization is a no-op; raw uint8) |
| Output | 6 heads: box (80x80x68, 40x40x68, 20x20x68) + cls (80x80x81, 40x40x81, 20x20x81) |
| Classes | 80 (COCO) |
| Postprocess | nanodet_split (DFL, regression_length=16), on-chip sigmoid only |
| HEF | Hailo Model Zoo v2.19.0, Hailo-8 |
The accuracy values are Hailo's Model Zoo reference. They are not benchmarks measured on CM5.
Hardware and Host Setup
| Item | Value |
|---|---|
| Board | reComputer R Series with Raspberry Pi CM5 |
| Accelerator | Hailo-8 over PCIe, exposed as /dev/hailo0 |
| Runtime | HailoRT 4.23.x |
| Python in container | 3.11, aarch64 |
sudo apt update
sudo apt install hailo-all
sudo reboot
# After reboot
hailortcli fw-control identify
ls /dev/hailo0
# Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh --mirror Aliyun
sudo systemctl enable docker
sudo systemctl start dockerRun With Demo Video
Select the command matching the variant.
DAMO-YOLO T (tinynasL20)
sudo docker run --rm \
--name cm5-hailo8-damoyolo-l20t \
--privileged \
--net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
-v /usr/lib/libhailort.so.4.23.0:/usr/lib/libhailort.so.4.23.0:ro \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo8-cv/damoyolo_tinynas_l20_t:latest \
python web_detection.py --model_path model/damoyolo_tinynas_l20_t.hef --video_path video/test.mp4DAMO-YOLO S (tinynasL25)
sudo docker run --rm \
--name cm5-hailo8-damoyolo-l25s \
--privileged \
--net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
-v /usr/lib/libhailort.so.4.23.0:/usr/lib/libhailort.so.4.23.0:ro \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo8-cv/damoyolo_tinynas_l25_s:latest \
python web_detection.py --model_path model/damoyolo_tinynas_l25_s.hef --video_path video/test.mp4DAMO-YOLO M (tinynasL35)
sudo docker run --rm \
--name cm5-hailo8-damoyolo-l35m \
--privileged \
--net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
-v /usr/lib/libhailort.so.4.23.0:/usr/lib/libhailort.so.4.23.0:ro \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo8-cv/damoyolo_tinynas_l35_m:latest \
python web_detection.py --model_path model/damoyolo_tinynas_l35_m.hef --video_path video/test.mp4Open http://<Board_IP>:8000 to view the web preview.
USB Camera Mode (example: S variant)
sudo docker run --rm \
--name cm5-hailo8-damoyolo-l25s \
--privileged \
--net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
--device /dev/video0:/dev/video0 \
-v /usr/lib/libhailort.so.4.23.0:/usr/lib/libhailort.so.4.23.0:ro \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo8-cv/damoyolo_tinynas_l25_s:latest \
python web_detection.py --model_path model/damoyolo_tinynas_l25_s.hef --camera_id 0REST API
curl -X POST "http://<Board_IP>:8000/api/models/damoyolo_tinynas_l25_s/predict" \
-F "file=@test.jpg"| Endpoint | Method | Purpose |
|---|---|---|
/api/models/damoyolo_tinynas_<variant>/predict | POST | Detections (JSON) |
/api/video_feed | GET | MJPEG preview |
/api/config | GET / POST | Confidence threshold |
Development Notes
- Source modules:
src/rpi5_hailo8_damoyolo_tinynas_l20_t/,..._l25_s/,..._l35_m/ - Dockerfiles:
docker/hailo8/damoyolo_tinynas_l*.dockerfile - Containers:
ghcr.io/seeed-projects/recomputer-hailo8-cv/damoyolo_tinynas_l{20_t,25_s,35_m}:latest - Same nanodet_split CPU decode across all three variants — only the backbone (TinyNAS-L20/L25/L35) differs.
- HEFs: Hailo Model Zoo v2.19.0 hailo8 builds.
Entrées et sorties
Input: image, video, or USB camera frame. Output: COCO 80-class detection boxes with confidences, plus an annotated MJPEG preview.