CV / YOLO26
YOLO26-seg
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 pi5-hailo8-yolo26m-seg \
--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/yolo26m_seg:latest \
python web_detection.py --model_path model/yolo26m_seg.hef --video_path video/test.mp4Model Details
reComputer R Series (CM5 + Hailo-8)YOLO26-seg on reComputer R Series (CM5 + Hailo-8)
YOLO26m-seg and YOLO26x-seg run on Hailo-8 through HailoRT 4.23. The one2one CPU decode (DFL + top-k + prototype-mask assembly) produces instance masks and boxes for 80 COCO classes.
The reComputer Hailo-8 repository currently provides compiled builds of
yolo26m_seg and yolo26x_seg; n/s variants are not published there.
Model Info
| Variant | Input | Packaged HEF | Container image |
|---|---|---|---|
| YOLO26m-seg | 640×640×3 RGB | 33.7 MB | yolo26m_seg |
| YOLO26x-seg | 640×640×3 RGB | 61.9 MB | yolo26x_seg |
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 (host / container must share major.minor) |
| Python in container | 3.11, aarch64 |
sudo apt update
sudo apt install hailo-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 dockerRun With Demo Video
Select the command matching the model variant.
YOLO26m-seg
sudo docker run --rm \
--name pi5-hailo8-yolo26m-seg \
--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/yolo26m_seg:latest \
python web_detection.py --model_path model/yolo26m_seg.hef --video_path video/test.mp4Open http://<Board_IP>:8000 to view the web preview (instance masks
overlaid per class + detection boxes).
USB Camera Mode
sudo docker run --rm \
--name pi5-hailo8-yolo26m-seg \
--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/yolo26m_seg:latest \
python web_detection.py --model_path model/yolo26m_seg.hef --camera_id 0YOLO26x-seg
sudo docker run --rm \
--name pi5-hailo8-yolo26x-seg \
--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/yolo26x_seg:latest \
python web_detection.py --model_path model/yolo26x_seg.hef --video_path video/test.mp4REST API
curl -X POST "http://<Board_IP>:8000/api/models/yolo26m_seg/predict" \
-F "file=@test.jpg"| Endpoint | Method | Purpose |
|---|---|---|
/api/models/yolo26m_seg/predict | POST | Boxes, classes, confidences (JSON) |
/api/models/yolo26x_seg/predict | POST | Boxes, classes, confidences (JSON) |
/api/video_feed | GET | MJPEG preview stream with masks |
/api/config | GET / POST | Confidence threshold |
/api/video/upload + /api/video/analyze | POST | Offline video analysis |
Development Notes
| Variant | Source | Dockerfile | Container |
|---|---|---|---|
| YOLO26m-seg | src/rpi5_hailo8_yolo26m_seg/ | docker/hailo8/yolo26m_seg.dockerfile | ghcr.io/seeed-projects/recomputer-hailo8-cv/yolo26m_seg:latest |
| YOLO26x-seg | src/rpi5_hailo8_yolo26x_seg/ | docker/hailo8/yolo26x_seg.dockerfile | ghcr.io/seeed-projects/recomputer-hailo8-cv/yolo26x_seg:latest |
- The executor is the HailoRT 4.23 InferVStreams wrapper (one2one decode).
- HEFs: Hailo Model Zoo v2.19.0 Hailo-8 builds.
Inputs and Outputs
Input: image (640x640 RGB). Output: instance masks, boxes, classes and confidences for 80 COCO classes.