🛠 NPU 0,8 TOPS : inférence RKNN (YOLO, Whisper) sur la ZERO 3W

Radxa ZERO 3W · avance · IMG-rz3w-avance-7-rz3w-npu-rknn-vision-embarquee.svg — Radxa ZERO 3W avec un flux caméra entrant (module CSI) et, en médaillon, la puce RK3566 dont un bloc NPU 0,8 TOPS s'allume ; terminal affichant une détection YOLO avec fps et température du SoC ; dissipateur dessiné sur la carte.

Objectives

The ZERO 3W features a 0.8 TOPS RKNN neural accelerator — extremely rare in a Pi Zero form factor at this price point — and Radxa documents a complete official AI stack: RKNN-Toolkit-Lite2 with YOLOv5/v8 examples (object detection), Whisper (speech transcription), and DeepLab (semantic segmentation). This tutorial explains how to achieve your first inference on the NPU, how to choose between the official image and the community Qengineering image, and how to manage the thermal constraints of a 65 × 30 mm form factor.

Hardware

1) Choosing your software base

# Verifier que le driver NPU est present et vu par le noyau :
sudo dmesg | grep -i rknpu
ls /sys/class/devfreq/ | grep -i npu        # le NPU apparait comme peripherique freq
cat /sys/class/thermal/thermal_zone*/temp   # temperature de reference au repos

2) First inference (YOLO example)

The RKNN workflow is split into two worlds: model CONVERSION (.rknn format) and INFERENCE on the board via the Lite2 runtime. The Radxa examples (YOLOv5/v8, Whisper, DeepLab) provide pre-converted models and ready-to-run Python scripts.

# Apries application de la procédure Radxa rknn-quick-start :
python3 -c 'import rknn_lite; print("runtime present")' 2>/dev/null || \
python3 -c 'import rknnlite; print("runtime present")'
# Lancer l'exemple YOLO fourni (nom de script selon l'exemple telecharge) :
python3 detect.py --model yolov5s.rknn --img test.jpg

3) Measure, don't hope

# Pendant l'inférence, dans un second terminal :
watch -n1 'cat /sys/class/thermal/thermal_zone*/temp'
time python3 detect.py --model yolov5s.rknn --img test.jpg

If the temperature rises too high, throttling reduces fps — hence the need for a heatsink and ventilation. For a continuous camera stream, combine this with the CSI tutorial: real-world projects mentioned in the sheet (rk3566-ipc-car camera car, USBridge 2.0 KVM with OCR/AI) run exactly on this CSI + NPU duo.

Expected verification

dmesg mentions the RKNPU driver at boot; the YOLO example displays detection boxes and a frames-per-second count significantly higher than what the CPU alone would provide (the CPU vs NPU toggle test is the best indicator); Whisper transcribes an audio sample. The temperature stabilizes with a heatsink.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials