CV / YOLO26

YOLO26-Pose

RK3588 + RK1820 PCIe

YOLO26-Pose W8A8 inference on RK3588 + RK1820 PCIe.

12 downloads
Size
3.4 MiB model assets
Memory
Host RAM not profiled
Precision
INT8 W8A8

Choose the device you're using, the set up guide and documentation will update accordingly.

Getting Started

Armbian 26.8.7 Gnome or newer with OTA overlayroot: Configure Docker storage before running containers to avoid overlay mount errors.

Deploy
sudo docker run --rm --name rv182x-rk3588-yolo26-pose \
  --privileged --net=host --ipc=host --stop-timeout 300 \
  -v /run/lock:/run/lock \
  -v /lib/modules:/lib/modules:ro \
  -v /usr/src:/usr/src:ro \
  -e PYTHONUNBUFFERED=1 \
  -e RKNN_LOG_LEVEL=0 \
  ghcr.io/seeed-projects/recomputer-rk-cv/rv182x-rk3588-yolo26-pose:latest \
  python3 web_detection.py --variant yolo26n-pose --model_path model/yolo26n-pose.rknn --weight_path model/yolo26n-pose.weight --video video/test.mp4

REST API

Use the REST API to run inference. Copy the commands below.

Curl
curl -X POST "http://<BOARD_IP>:8000/api/models/yolo26-pose/predict" \
  -F "file=@sample.jpg"
Python
import requests

with open("sample.jpg", "rb") as image:
    response = requests.post(
        "http://<BOARD_IP>:8000/api/models/yolo26-pose/predict",
        files={"file": image}, timeout=120,
    )
response.raise_for_status()
print(response.json())

Model Details

Armbian 26.8.7 Gnome or newer with OTA overlayroot: Configure Docker storage before running containers to avoid overlay mount errors.

YOLO26-Pose on RK3588 + RK1820 PCIe

Person detection with 17 body keypoints. Available sizes: n / s / m.

Platform: RK3588 + RK1820 PCIe; Engine: RKNN3. Docker on ARM64; SDK 1.1.0. Verified kernel: 6.1.172-vendor-seeed-rk3588.

Run

Stop the previous model first. The image prepares the driver/proxy and checks inference; firmware writes are disabled by default.

1. Pull

bash
sudo docker pull ghcr.io/seeed-projects/recomputer-rk-cv/rv182x-rk3588-yolo26-pose:latest

2. Start

Choose Size to update the Getting Started command, or use the matching command below.

yolo26n-pose

bash
sudo docker run --rm --name rv182x-rk3588-yolo26-pose \
  --privileged --net=host --ipc=host --stop-timeout 300 \
  -v /run/lock:/run/lock \
  -v /lib/modules:/lib/modules:ro \
  -v /usr/src:/usr/src:ro \
  -e PYTHONUNBUFFERED=1 \
  -e RKNN_LOG_LEVEL=0 \
  ghcr.io/seeed-projects/recomputer-rk-cv/rv182x-rk3588-yolo26-pose:latest \
  python3 web_detection.py --variant yolo26n-pose --model_path model/yolo26n-pose.rknn --weight_path model/yolo26n-pose.weight --video video/test.mp4

yolo26s-pose

bash
sudo docker run --rm --name rv182x-rk3588-yolo26-pose \
  --privileged --net=host --ipc=host --stop-timeout 300 \
  -v /run/lock:/run/lock \
  -v /lib/modules:/lib/modules:ro \
  -v /usr/src:/usr/src:ro \
  -e PYTHONUNBUFFERED=1 \
  -e RKNN_LOG_LEVEL=0 \
  ghcr.io/seeed-projects/recomputer-rk-cv/rv182x-rk3588-yolo26-pose:latest \
  python3 web_detection.py --variant yolo26s-pose --model_path model/yolo26s-pose.rknn --weight_path model/yolo26s-pose.weight --video video/test.mp4

yolo26m-pose

bash
sudo docker run --rm --name rv182x-rk3588-yolo26-pose \
  --privileged --net=host --ipc=host --stop-timeout 300 \
  -v /run/lock:/run/lock \
  -v /lib/modules:/lib/modules:ro \
  -v /usr/src:/usr/src:ro \
  -e PYTHONUNBUFFERED=1 \
  -e RKNN_LOG_LEVEL=0 \
  ghcr.io/seeed-projects/recomputer-rk-cv/rv182x-rk3588-yolo26-pose:latest \
  python3 web_detection.py --variant yolo26m-pose --model_path model/yolo26m-pose.rknn --weight_path model/yolo26m-pose.weight --video video/test.mp4

Open http://<BOARD_IP>:8000; API parameters: /docs.

Command options

Docker options go before the image name; model/input options go after web_detection.py.

OptionPurpose
--privilegedLoad the host PCIe driver and open the card.
--net=host --ipc=hostShare the network/IPC used by the RKNN3 proxy. No -p mapping needed.
-v /run/lock:/run/lockPrevent concurrent managed models from using the card.
-v /lib/modules:/lib/modules:ro and -v /usr/src:/usr/src:roRead matching vendor headers for driver builds on other kernels; do not install headers.
--stop-timeout 300Allow shutdown time, including explicit firmware maintenance.
PYTHONUNBUFFERED=1 / RKNN_LOG_LEVEL=0Immediate Python logs / documented RKNN log level.
-v "$PWD/workspace:/app/workspace"Optional: retain uploads/results after container removal. No project directory required.
--variant / --core_mask 0x1Model checkpoint / RK1820 core mask used for benchmarking.
--model_path / --weight_pathMatching graph/weight pair; change both when changing size.
InputChange to the start command
Bundled videoKeep --video video/test.mp4.
Browser uploadReplace --video video/test.mp4 with --camera_id -1; upload/analyze/download remain available.
Board cameraReplace it with --camera_id 0; add --device /dev/video0:/dev/video0 before the image if mapping the existing camera explicitly.

No camera, DRM or full /dev mount is needed for bundled video or browser uploads.

To rename labels, keep their original order/count. Add before the image: -v "$PWD/class_config.txt:/app/class_config.txt:ro"; after the script: --class_path /app/class_config.txt. New classes require training.

Predict

bash
curl -X POST "http://<BOARD_IP>:8000/api/models/yolo26-pose/predict" \
  -F "file=@sample.jpg"

Troubleshooting

Use the following variables for the commands in this section:

bash
CONTAINER=rv182x-rk3588-yolo26-pose
IMAGE=ghcr.io/seeed-projects/recomputer-rk-cv/rv182x-rk3588-yolo26-pose:latest

1. Read logs and check the card

For debugging, remove --rm from the start command so the exited container/logs remain. Otherwise save its foreground terminal output.

bash
sudo docker logs --tail 100 "$CONTAINER"
uname -r
lspci -nn -d 1d87:182a
sudo docker run --rm --privileged --net=host --ipc=host \
  ghcr.io/seeed-projects/recomputer-rk-cv/rv182x-rk3588-runtime:1.1.0 doctor

doctor only checks status; it does not load drivers, start proxy or flash. Normal model startup prepares missing components. Success: SELF_TEST_PASSED, MODEL_START_READY, then:

bash
curl -f http://127.0.0.1:8000/api/health

2. Match the error and fix it

ErrorCommand / fix
DEVICE_BUSY, container name conflict, port 8000 in usesudo docker stop "$CONTAINER" for this demo, or stop the identified competing demo. Save results, then sudo docker rm "$CONTAINER" if an exited container was retained. Run again.
PCI_DEVICE_NOT_FOUNDlspci -nn -d 1d87:182a; if absent, check card power, seating and host PCIe configuration.
KERNEL_HEADERS_MISSING, DRIVER_BUILD_FAILED, DRIVER_LOAD_FAILEDls -l /lib/modules/"$(uname -r)"/build; install headers/toolchain matching that exact vendor kernel and keep both read-only mounts. Never force-load another kernel's module.
ROOT_REQUIRED, DEVICE_PERMISSION_DENIED, LOCAL_LOCK_ONLYRestore sudo, --privileged and the /run/lock mount from the start command.
No RKNN devices found, RKNN3_ERR_DEVICE_UNAVAILABLE, PROXY_START_FAILEDRun doctor above. Pull the current image and recreate with the full start command, including host network/IPC. Keep the image's default entrypoint.
CARD_OFFLINECheck doctor, PCIe/power and SDK 1.1.0 compatibility; use the explicit M.2 maintenance step below only after confirming the hardware.
SELF_TEST_FAILED, CARD_HEALTH_ERROR, CARD_STATUS_UNKNOWN, CARD_STATUS_QUERY_FAILEDRead the detailed log. Restore matching SDK/firmware and stop competing card users; these errors do not trigger firmware recovery.
ASSET_CHECKSUM_FAILED, DRIVER_CHECKSUM_FAILED, No RKNN3 library foundsudo docker pull "$IMAGE"; remove custom runtime/library mounts and recreate from the complete image.
Missing model/weight or model load failureUse the command for the selected size; keep .rknn and .weight paired. Multi-partition projects select their files automatically.
Missing /dev/video0ls -l /dev/video*; select the actual board camera, or remove its mapping and use --camera_id -1.
No input frame available in upload modeUpload an image/video first, or enable a valid live source.
no space left on device, overlay mount errordf -h /var/lib/docker; configure writable ext4 Docker/containerd storage using the link below.

After pulling, recreate the container; docker restart keeps its old image. Optional API warnings and SMI exit code 251 need no repair when the self-test and health checks pass.

3. Offline M.2 firmware recovery — explicit maintenance

Confirm RK1820 M.2, stop all inference and external proxies. Keep /run/lock and the 300-second timeout. Insert before the image name:

text
-e RK182X_ALLOW_FIRMWARE_RECOVERY=1 \
-e RK182X_BOARD=ext-m2 \

One recovery attempt only; remove these options afterward. Do not interrupt power or forcibly kill the write.

Recovery errorFix
BOARD_CONFIRMATION_REQUIREDConfirm the physical M.2 board before setting RK182X_BOARD=ext-m2.
RECOVERY_LOCK_REQUIREDRestore -v /run/lock:/run/lock.
EXTERNAL_PROXY_ACTIVEStop the known external proxy/service and legacy inference users before recovery. Ordinary inference can reuse the proxy.
FIRMWARE_RECOVERY_FAILED, CARD_OFFLINE_AFTER_RECOVERYSave the upgrade log; resolve power/PCIe/firmware errors before another manual attempt.

Measured benchmark

RK3588 + RK1820 M.2, SDK/Lite 1.1.0, core 0x1; 5 warmups + 30 measured frames/pairs.

  • Runtime FPS: synchronous RKNN3 calls, including PCIe transfer.
  • Pipeline FPS: decoding through rendering/JPEG, excluding HTTP and source pacing.
ModelInput H×WRuntime FPSPipeline FPSRuntime p95 msEvidence
yolo26n-pose640×64033.4614.7034.07JSON
yolo26s-pose640×64021.2311.0551.30JSON
yolo26m-pose640×64011.957.8588.25JSON

These are the previous measurements; this shared-runtime release revalidated only YOLOv5n. Startup/self-test time is excluded.

Project README · Full runtime troubleshooting · Armbian Docker storage

Inputs and Outputs

Detects people and estimates 17 COCO body keypoints per person. API keypoints contain x, y and confidence. The person class and 17-joint topology are fixed by the model.