CV / MSPN Pose
MSPN RegNetX-800MF
MSPN (Multi-Stage Pose Network) con backbone RegNetX-800MF realiza estimación de pose de una sola persona en tiempo real con 17 puntos clave COCO mediante inferencia HailoRT.
Elige el dispositivo que estás usando. La guía de configuración y la documentación se actualizarán en consecuencia.
Primeros pasos
sudo docker run --rm \
--name cm5-hailo-mspn-pose \
--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/mspn_regnetx_800mf:latest \
python web_detection.py --model_path model/*.hef --video_path video/test.mp4API REST
Usa la API REST para ejecutar inferencia. Copia los comandos siguientes.
curl -X POST "http://<Board_IP>:8000/api/models/mspn_pose/predict" \
-F "file=@test.jpg"import requests
resp = requests.post(
"http://<Board_IP>:8000/api/models/mspn_pose/predict",
files={"file": open("test.jpg", "rb")},
timeout=30,
)
print(resp.json())Detalles del modelo
MSPN RegNetX-800MF on reComputer R Series (CM5 + Hailo-10H)
MSPN (Multi-Stage Pose Network) with RegNetX-800MF backbone for single-person pose estimation with 17 COCO keypoints, running on Hailo-10H via HailoRT.
This page targets reComputer R Series (CM5 + Hailo-10H) with a PCIe Hailo-10H accelerator.
Model Info
| Property | Value |
|---|---|
| Architecture | MSPN + RegNetX-800MF |
| Task | Single Person Pose Estimation |
| Input | 256×192×3 RGB |
| Output | 17 keypoints (COCO format) |
| Parameters | 7.17M |
| Hardware AP | 69.8% |
| FPS | 2034 |
| Source | Hailo Model Zoo |
COCO Keypoints
| ID | Name | ID | Name | ID | Name |
|---|---|---|---|---|---|
| 0 | nose | 6 | right_shoulder | 13 | left_knee |
| 1 | left_eye | 7 | left_elbow | 14 | right_knee |
| 2 | right_eye | 8 | right_elbow | 15 | left_ankle |
| 3 | left_ear | 9 | left_wrist | 16 | right_ankle |
| 4 | right_ear | 10 | right_wrist | ||
| 5 | left_shoulder | 11 | left_hip | ||
| 12 | right_hip |
Hardware and Host Setup
| Item | Value |
|---|---|
| Board | reComputer R Series with Raspberry Pi CM5 |
| Accelerator | Hailo-10H over PCIe, exposed as /dev/hailo0 |
| OS | Raspberry Pi OS Bookworm, aarch64 |
| Host driver | hailo-all apt package |
sudo apt update
sudo apt install hailo-all
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
sudo docker run --rm --privileged --net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo10h-cv/mspn_regnetx_800mf:latest \
python web_detection.py --video_path video/test.mp4Open http://<R20_IP>:8000 to view the web preview. The image includes the module source, demo video, HailoRT Python wheel, and HEF files listed below.
USB Camera Mode
sudo docker run --rm --privileged --net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
--device /dev/video0:/dev/video0 \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo10h-cv/mspn_regnetx_800mf:latest \
python web_detection.py --camera_id 0HEF Files
| HEF | Size | Notes |
|---|---|---|
mspn_regnetx_800mf.hef | 1.3 MB | Pose estimation model |
REST API
Prediction endpoint:
POST http://<R20_IP>:8000/api/models/mspn_pose/predictExample image request:
curl -X POST "http://<R20_IP>:8000/api/models/mspn_pose/predict" \
-F "file=@test.jpg"Common service endpoints:
| Endpoint | Method | Purpose |
|---|---|---|
/ | GET | Web preview UI |
/api/models/mspn_pose/predict | POST | Single-frame keypoint inference |
/api/models/mspn_pose/visualize | POST | Pose overlay visualization |
/api/models/mspn_pose/keypoints | GET | Keypoint definitions |
/api/video_feed | GET | MJPEG preview stream |
Development Notes
- Source module:
src/hailo10h_mspn_regnetx_800mf/ - Dockerfile:
docker/hailo10h/mspn_regnetx_800mf.dockerfile - Main service:
web_detection.pywraps HailoRT inference, post-processing, MJPEG preview, and REST prediction.
Entradas y salidas
Input: image (256x192 RGB). Output: 17 keypoints with x, y, confidence (COCO format).