CV / YOLO26
YOLO26-seg
reComputer R Series (CM5 + Hailo-10H)
YOLO26-Segmentierungsmodelle (n/s/m/l/x-seg) auf reComputer R Series mit Hailo-8 oder Hailo-10H.
Wähle das Gerät, das du verwendest. Die Einrichtungsanleitung und Dokumentation werden entsprechend aktualisiert.
Erste Schritte
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.mp4Modelldetails
reComputer CM5 + Hailo-10HYOLO26-seg auf reComputer CM5 + Hailo-10H
YOLO26n/s/m/l-seg-Modelle laufen auf dem Hailo-10H über HailoRT. Das One2One-CPU-Decoding (DFL + Top-k + Prototypmasken-Zusammensetzung) erzeugt Instanzmasken und Boxen für 80 COCO-Klassen.
Modellinformationen
| Variante | Eingabe | Mitgeliefertes 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- und Host-Setup
| Punkt | Wert |
|---|---|
| Board | Raspberry Pi CM5 |
| Beschleuniger | Hailo-10H, /dev/hailo0 |
| Runtime | HailoRT 5.1.1 |
| Betriebssystem | 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/hailo0Mit Demo-Video ausführen
Wählen Sie den Befehl passend zur Modellvariante.
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.mp4Öffnen Sie http://<Board_IP>:8000 für die Web-Vorschau. Verwenden Sie
/api/video_feed für den MJPEG-Stream.
REST API
Jede Variante hat ihren eigenen Endpoint:
| Variante | 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 |
Beispiel:
curl -X POST "http://<Board_IP>:8000/api/models/yolo26n_seg/predict" \
-F "file=@test.jpg"Die Antwort enthält predictions-Einträge mit den Feldern box, confidence
und class_id.
Entwicklung
| Variante | Quelle | 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 |
Eingaben und Ausgaben
Eingabe: Bild (640x640 RGB). Ausgabe: Bounding Boxes + Instanzmasken (COCO 80 Klassen).