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.

357 Downloads
Größe
6.0 MB
Speicher
4GB+
Präzision
Hailo HEF / HailoRT

Wähle das Gerät, das du verwendest. Die Einrichtungsanleitung und Dokumentation werden entsprechend aktualisiert.

Erste Schritte

Bereitstellen
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.mp4

Modelldetails

reComputer CM5 + Hailo-10H

YOLO26-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

VarianteEingabeMitgeliefertes HEFContainer-Image
YOLO26n-seg640×640×3 RGB6.0 MByolo26n_seg
YOLO26s-seg640×640×3 RGB17.5 MByolo26s_seg
YOLO26m-seg640×640×3 RGB27.0 MiB (28.3 MB)yolo26m_seg
YOLO26l-seg640×640×3 RGB38.3 MiB (40.1 MB)yolo26l_seg

Hardware- und Host-Setup

PunktWert
BoardRaspberry Pi CM5
BeschleunigerHailo-10H, /dev/hailo0
RuntimeHailoRT 5.1.1
BetriebssystemRaspberry Pi OS Bookworm, aarch64
bash
sudo apt update
sudo apt install hailo-h10-all -y
sudo reboot

# After reboot
hailortcli fw-control identify
ls /dev/hailo0

Mit Demo-Video ausführen

Wählen Sie den Befehl passend zur Modellvariante.

YOLO26n-seg

bash
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.mp4

YOLO26s-seg

bash
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.mp4

YOLO26m-seg

bash
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.mp4

YOLO26l-seg

bash
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:

VarianteEndpoint
YOLO26n-segPOST /api/models/yolo26n_seg/predict
YOLO26s-segPOST /api/models/yolo26s_seg/predict
YOLO26m-segPOST /api/models/yolo26m_seg/predict
YOLO26l-segPOST /api/models/yolo26l_seg/predict

Beispiel:

bash
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

VarianteQuelleDockerfile
YOLO26n-segsrc/hailo10h_yolo26n_seg/docker/hailo10h/yolo26n_seg.dockerfile
YOLO26s-segsrc/hailo10h_yolo26s_seg/docker/hailo10h/yolo26s_seg.dockerfile
YOLO26m-segsrc/hailo10h_yolo26m_seg/docker/hailo10h/yolo26m_seg.dockerfile
YOLO26l-segsrc/hailo10h_yolo26l_seg/docker/hailo10h/yolo26l_seg.dockerfile

Eingaben und Ausgaben

Eingabe: Bild (640x640 RGB). Ausgabe: Bounding Boxes + Instanzmasken (COCO 80 Klassen).