CV / YOLO26
YOLO26-seg
reComputer R Series (CM5 + Hailo-10H)
YOLO26-segmentatiemodellen (n/s/m/l/x-seg) op reComputer R Series met Hailo-8 of Hailo-10H.
Kies het apparaat dat je gebruikt. De installatiehandleiding en documentatie worden dienovereenkomstig bijgewerkt.
Aan de slag
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.mp4Modeldetails
reComputer CM5 + Hailo-10HYOLO26-seg op reComputer CM5 + Hailo-10H
YOLO26n/s/m/l-seg-modellen draaien op de Hailo-10H via HailoRT. De one2one CPU-decodering (DFL + top-k + prototypemaskerassemblage) produceert instantiemaskers en boxes voor 80 COCO-klassen.
Modelinformatie
| Variant | Invoer | Meegeleverde HEF | Containerimage |
|---|---|---|---|
| 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- en hostconfiguratie
| Onderdeel | Waarde |
|---|---|
| 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/hailo0Uitvoeren met demovideo
Kies de opdracht die hoort bij de modelvariant.
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 voor de webvoorbeeld. Gebruik /api/video_feed
voor de MJPEG-stream.
REST API
Elke variant heeft een eigen 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 |
Voorbeeld:
curl -X POST "http://<Board_IP>:8000/api/models/yolo26n_seg/predict" \
-F "file=@test.jpg"De respons bevat predictions-items met de velden box, confidence en
class_id.
Ontwikkeling
| Variant | Bron | 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 |
Invoer en uitvoer
Invoer: afbeelding (640x640 RGB). Uitvoer: bounding boxes + instantiemaskers (COCO 80 klassen).