CV / YOLO26
YOLO26-seg
reComputer R Series (CM5 + Hailo-10H)
YOLO26 segmentation models on reComputer R Series with Hailo-8 or Hailo-10H.
Choose the device you're using, the set up guide and documentation will update accordingly.
Getting Started
sudo docker run --rm \
--name cm5-hailo-yolo26n-seg \
--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/yolo26n_seg:latest \
python web_detection.py --model_path model/yolo26n_seg.hef --video_path video/test.mp4Model Details
reComputer CM5 + Hailo-10HYOLO26-seg on reComputer CM5 + Hailo-10H
YOLO26n/s/m/l-seg models run on Hailo-10H through HailoRT. The one2one CPU decode (DFL + top-k + prototype-mask assembly) produces instance masks and boxes for 80 COCO classes.
Model Info
| Variant | Input | Packaged HEF | Container image |
|---|---|---|---|
| YOLO26n-seg | 640×640×3 RGB | 6.0 MB | yolo26n_seg |
| YOLO26s-seg | 640×640×3 RGB | 17.5 MB | yolo26s_seg |
| YOLO26m-seg | 640×640×3 RGB | 27.0 MiB (28.3 MB) | yolo26m_seg |
| YOLO26l-seg | 640×640×3 RGB | 38.3 MiB (40.1 MB) | yolo26l_seg |
Hardware and Host Setup
| Item | Value |
|---|---|
| Board | Raspberry Pi CM5 |
| Accelerator | Hailo-10H, /dev/hailo0 |
| Runtime | HailoRT 5.1.1 |
| OS | Raspberry Pi OS Bookworm, aarch64 |
sudo apt update
sudo apt install hailo-h10-all -y
sudo reboot
# After reboot
hailortcli fw-control identify
ls /dev/hailo0Run With Demo Video
Select the command matching the model variant.
YOLO26n-seg
sudo docker run --rm --privileged --net=host \
--name cm5-hailo-yolo26n-seg \
-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/yolo26n_seg:latest \
python web_detection.py --model_path model/yolo26n_seg.hef --video_path video/test.mp4YOLO26s-seg
sudo docker run --rm --privileged --net=host \
--name cm5-hailo-yolo26s-seg \
-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/yolo26s_seg:latest \
python web_detection.py --model_path model/yolo26s_seg.hef --video_path video/test.mp4YOLO26m-seg
sudo docker run --rm --privileged --net=host \
--name cm5-hailo-yolo26m-seg \
-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/yolo26m_seg:latest \
python web_detection.py --model_path model/yolo26m_seg.hef --video_path video/test.mp4YOLO26l-seg
sudo docker run --rm --privileged --net=host \
--name cm5-hailo-yolo26l-seg \
-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/yolo26l_seg:latest \
python web_detection.py --model_path model/yolo26l_seg.hef --video_path video/test.mp4Open http://<Board_IP>:8000 for the Web preview. Use /api/video_feed for the MJPEG stream.
REST API
Each variant has its own endpoint:
| Variant | Endpoint |
|---|---|
| YOLO26n-seg | POST /api/models/yolo26n_seg/predict |
| YOLO26s-seg | POST /api/models/yolo26s_seg/predict |
| YOLO26m-seg | POST /api/models/yolo26m_seg/predict |
| YOLO26l-seg | POST /api/models/yolo26l_seg/predict |
Example:
curl -X POST "http://<Board_IP>:8000/api/models/yolo26n_seg/predict" \
-F "file=@test.jpg"The response contains predictions entries with box, confidence, and class_id fields.
Development
| Variant | Source | Dockerfile |
|---|---|---|
| YOLO26n-seg | src/hailo10h_yolo26n_seg/ | docker/hailo10h/yolo26n_seg.dockerfile |
| YOLO26s-seg | src/hailo10h_yolo26s_seg/ | docker/hailo10h/yolo26s_seg.dockerfile |
| YOLO26m-seg | src/hailo10h_yolo26m_seg/ | docker/hailo10h/yolo26m_seg.dockerfile |
| YOLO26l-seg | src/hailo10h_yolo26l_seg/ | docker/hailo10h/yolo26l_seg.dockerfile |
Inputs and Outputs
Input: image (640x640 RGB). Output: instance masks, boxes, classes and confidences for 80 COCO classes.