Depth Anything V2 Small — RKNN for RK3588 (measured, not just converted)
An RK3588 build of Depth-Anything-V2-Small with independent on-device measurements and a numerical consistency check against the CPU ONNX reference.
As of 2026-11-21, Hugging Face hosts Depth Anything V3 builds for the RK1828 accelerator, but no RK3588 build of V2 — this is the first RK3588 one we could find, published with its numbers.
Measured on RK3588 (2026-11-21)
| Metric | Value |
|---|---|
| Single-image inference, 518×518, FP, 3 NPU cores | 696.11 ms (median of 3 session medians: 701.74 / 669.94 / 696.11 ms) |
| Model load (load + runtime init) | ~250 ms |
| Consistency vs CPU ONNX (demo image) | Pearson 1.0000, Spearman 0.9954, median relative error 1.54% |
| Artifact | 60,296,260 bytes, SHA-256 in SHA256SUMS |
Protocol: 3 independent process sessions, 1 priming run + 5 timed runs each; board load 1.83–2.03 (shared board). Full data in measurements.json.
Details that matter
- Source: official fp32 ONNX from
onnx-community/depth-anything-v2-small(Apache-2.0; only the Small model is Apache — Base/Large are CC-BY-NC). Converted with rknn-toolkit2 2.3.2, static 518×518 input, ImageNet mean/std folded into the RKNN, no quantization. - Input at runtime: uint8 NHWC image resized to 518×518. Note: the official preprocessor keeps aspect ratio with padding; this build's reference driver resizes directly (the consistency check above uses the same resize on both sides).
- Output: relative depth map, 518×518 float.
example_depth_astronaut.pngshows the pseudo-color output for the Rockchip demo image — astronaut nearest, bottle and cooler next, lunar surface mid, Earth far. Five depth layers, all correct. - The build log contains 5
Unknown op target: 0records (also seen on Qwen vision-tower conversions); the model runs clean on-device with deterministic output across sessions.
Files
depth_anything_v2_small_518_rk3588.rknn— the modelmeasurements.json— full measurement recordSHA256SUMS— checksumsexample_depth_astronaut.png— example output