CV / DAMO-YOLO

DAMO-YOLO

reComputer R Series (CM5 + Hailo-10H)

COCO 80-class object detection with DAMO-YOLO (T/S/M variants) on reComputer R Series with Hailo-8 or Hailo-10H.

343 downloads
Size
8.8 MB
Memory
4GB+
Precision
Hailo HEF / HailoRT 4.23.x (Hailo-8) / 5.1.1 (Hailo-10H)

Choose the device you're using, the set up guide and documentation will update accordingly.

Getting Started

Deploy
sudo docker run --rm \
  --name cm5-hailo10h-damoyolo-l20t \
  --privileged \
  --net=host \
  -e PYTHONUNBUFFERED=1 \
  --device /dev/hailo0:/dev/hailo0 \
  -v /usr/lib/libhailort.so.5.1.1:/usr/lib/libhailort.so.5.1.1:ro \
  -v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
  ghcr.io/seeed-projects/recomputer-hailo10h-cv/damoyolo_tinynas_l20_t:latest \
  python web_detection.py --model_path model/damoyolo_tinynas_l20_t.hef --video_path video/test.mp4

Model Details

reComputer CM5 + Hailo-10H

DAMO-YOLO on reComputer CM5 + Hailo-10H

DAMO-YOLO with TinyNAS backbones performs COCO 80-class object detection on Hailo-10H through HailoRT 5.1.1, 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-10H) with a PCIe Hailo-10H accelerator.

Model Info

VariantParametersOperationsmAP (COCO)Hailo-10H HEF
T (tinynasL20)11.35M18.0G42.811.9 MB
S (tinynasL25)16.25M37.6G46.521.4 MB
M (tinynasL35)33.98M61.6G49.723.9 MB
PropertyValue
TaskObject detection
Input640x640x3 RGB (normalization is a no-op; raw uint8)
Output6 heads: box (80x80x68, 40x40x68, 20x20x68) + cls (80x80x81, 40x40x81, 20x20x81)
Classes80 (COCO)
Postprocessnanodet_split (DFL, regression_length=16), CPU decode
HEFHailo Model Zoo v5.4.0, Hailo-10H

The accuracy values are Hailo's Model Zoo reference. They are not benchmarks measured on CM5.

Hardware and Host Setup

ItemValue
BoardreComputer R Series with Raspberry Pi CM5
AcceleratorHailo-10H over PCIe, exposed as /dev/hailo0
Host driverhailo-h10-all apt package
RuntimeHailoRT 5.1.1
Python in container3.13, aarch64
bash
sudo apt update
sudo apt install hailo-h10-all -y
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 docker

Run With Demo Video

DAMO-YOLO T (tinynasL20)

bash
sudo docker run --rm \
  --name cm5-hailo10h-damoyolo-l20t \
  --privileged \
  --net=host \
  -e PYTHONUNBUFFERED=1 \
  --device /dev/hailo0:/dev/hailo0 \
  -v /usr/lib/libhailort.so.5.1.1:/usr/lib/libhailort.so.5.1.1:ro \
  -v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
  ghcr.io/seeed-projects/recomputer-hailo10h-cv/damoyolo_tinynas_l20_t:latest \
  python web_detection.py --model_path model/damoyolo_tinynas_l20_t.hef --video_path video/test.mp4

DAMO-YOLO S (tinynasL25)

bash
sudo docker run --rm \
  --name cm5-hailo10h-damoyolo-l25s \
  --privileged \
  --net=host \
  -e PYTHONUNBUFFERED=1 \
  --device /dev/hailo0:/dev/hailo0 \
  -v /usr/lib/libhailort.so.5.1.1:/usr/lib/libhailort.so.5.1.1:ro \
  -v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
  ghcr.io/seeed-projects/recomputer-hailo10h-cv/damoyolo_tinynas_l25_s:latest \
  python web_detection.py --model_path model/damoyolo_tinynas_l25_s.hef --video_path video/test.mp4

DAMO-YOLO M (tinynasL35)

bash
sudo docker run --rm \
  --name cm5-hailo10h-damoyolo-l35m \
  --privileged \
  --net=host \
  -e PYTHONUNBUFFERED=1 \
  --device /dev/hailo0:/dev/hailo0 \
  -v /usr/lib/libhailort.so.5.1.1:/usr/lib/libhailort.so.5.1.1:ro \
  -v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
  ghcr.io/seeed-projects/recomputer-hailo10h-cv/damoyolo_tinynas_l35_m:latest \
  python web_detection.py --model_path model/damoyolo_tinynas_l35_m.hef --video_path video/test.mp4

Open http://<Board_IP>:8000 to view the web preview.

REST API

bash
curl -X POST "http://<Board_IP>:8000/api/models/damoyolo_tinynas_l25_s/predict"   -F "file=@test.jpg"
EndpointMethodPurpose
/api/models/damoyolo_tinynas_<variant>/predictPOSTDetections (JSON)
/api/video_feedGETMJPEG preview
/api/configGET / POSTConfidence threshold

Development Notes

  • Source modules: src/hailo10h_damoyolo_tinynas_l20_t/, ..._l25_s/, ..._l35_m/
  • Dockerfiles: docker/hailo10h/damoyolo_tinynas_l*.dockerfile
  • Containers: ghcr.io/seeed-projects/recomputer-hailo10h-cv/damoyolo_tinynas_l{20_t,25_s,35_m}:latest
  • Executor is the HailoRT 5.1.1 multi-output create_infer_model wrapper (damoyolo exposes 6 heads).
  • HEFs: Hailo Model Zoo v5.4.0 hailo10h builds.

Inputs and Outputs

Input: image, video, or USB camera frame. Output: COCO 80-class detection boxes with confidences, plus an annotated MJPEG preview.