CV / YOLOv9

YOLOv9c

reComputer R Series (CM5 + Hailo-8)

YOLOv9c COCO object detection on reComputer R Series with Hailo-8.

1 downloads
Size
25.7 MB
Memory
4GB+
Precision
Hailo HEF

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

Getting Started

Deploy
sudo docker run --rm \
  --name cm5-hailo-yolov9c \
  --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/yolov9c:latest \
  python web_detection.py --model_path model/yolov9c.hef --video_path video/test.mp4

REST API

Use the REST API to run inference. Copy the commands below.

Curl
curl http://localhost:8080/v1/chat/completions -d '{
  "model": "yolov9c",
  "messages": [{"role": "user", "content": "Hello"}]
}'
Python
import requests

resp = requests.post(
    "http://localhost:8080/v1/chat/completions",
    json={"model": "yolov9c", "messages": [{"role": "user", "content": "Hello"}]},
)
print(resp.json())

Model Details

YOLOv9c on reComputer R Series (CM5 + Hailo-8)

YOLOv9c performs COCO 80-class object detection on Hailo-8 through HailoRT. The official Hailo Model Zoo v2.20.0 HEF takes a 640x640 input and runs NMS on-chip (HPP), so the application only parses the post-NMS result.

Hardware and Host Setup

ItemValue
BoardreComputer R Series with Raspberry Pi CM5
AcceleratorHailo-8 M.2 over PCIe, /dev/hailo0
RuntimeHailoRT 4.23.x
ModelYOLOv9c, Model Zoo v2.20.0
bash
sudo apt update
sudo apt install hailo-all
sudo reboot

hailortcli fw-control identify
ls /dev/hailo0

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

bash
sudo docker run --rm --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/yolov9c:latest \
  python web_detection.py --model_path model/yolov9c.hef --video_path video/test.mp4

Open http://<BOARD_IP>:8000 for the MJPEG preview and offline video analysis. For a USB camera, replace --video_path video/test.mp4 with --camera_id 0.

Model

ItemValue
HEFyolov9c.hef, 26,971,779 B
SHA2567352cb6d3377af52a39993be4f2096d650eef6bdf2e5481a2a692ca2502328a6
Input640×640×3
Post-processingOn-chip NMS (HPP)
COCO mAP (float / hardware)52.6 / 51.0
FPS (batch 1 / batch 8)44.8 / 88.7
Parameters / operations25.3M / 102.1G
Upstream / licenseWongKinYiu/yolov9, GPL-3.0

HTTP API

  • POST /api/models/yolov9c/predict — image or video-frame prediction.
  • POST /api/video/upload — upload a video.
  • POST /api/video/analyze — start offline analysis.
  • GET /api/video/status — progress and errors.
  • GET /api/video/download/{filename} — annotated MP4.
bash
curl -X POST "http://<BOARD_IP>:8000/api/models/yolov9c/predict" \
  -F "file=@bus.jpg" -F "conf=0.25" -F "iou=0.45"

Performance and Validation Status

The model table lists the official Hailo-8 Model Zoo figures; they are not measurements of this container. The module passes static checks and a synthetic NMS post-processing test, but board loading and real detection accuracy are still pending. See the module TEST_REPORT.md.

Limitations

  • NMS is inside the HEF; the IoU slider is display-only.
  • Only the C variant is officially published for Hailo-8; T/S/M/E HEFs are not available in Model Zoo v2.20.0.
  • The Web service targets a trusted LAN and has no authentication or TLS.
  • Output videos have no audio.

Inputs and Outputs

Input: image, video frame, or camera frame. Output: COCO classes, confidence scores, and boxes.