Seeing to Drive on a Single Board: Attention-Free Depth for Onboard Robot Navigation

TL;DR An attention-free ResNet-34 U-Net distilled from Depth Anything V2-Large runs monocular depth at 27.1 FPS on a Raspberry Pi 5's int8 Hailo-8L accelerator, where transformer builds erase obstacles. Ranging obstacles by where they meet the floor, the Pi's own navigation stack reaches the goal without contact in 7.9 of 10 hardware-in-the-loop scenes, against 9.2 with exact obstacles.
What they do
Monocular depth foundation models are vision transformers sized for GPUs. The authors run one on a Raspberry Pi 5 with a 13-TOPS Hailo-8L accelerator, which computes every layer in int8, and build a complete navigation stack for a small Traxxas car on the same board.
How it works
- Why transformers break. At 449 tokens, 91% of softmax weights in Depth Anything V2-Small fall below one int8 step yet carry 17-33% of the attention mass, so int8 builds dissolve crates and people into the floor. Recalibration and quantisation fine-tuning did not fix it.
- Distil instead. A 24.5M-parameter ResNet-34 U-Net with no attention, LayerNorm or softmax learns from Depth Anything V2-Large with a scale- and shift-invariant loss, then is fine-tuned on rendered ground truth with extra weight below the horizon.
- Metric range from camera height. Where an obstacle meets the floor in each image column gives its distance from the camera height alone. This turns relative depth into a 69°, 4 m “laser scan” without metric training.
- Onboard autonomy. Hybrid A*, pure pursuit and ground-plane SLAM with wheel encoder and gyro run on the Pi’s CPU.
Results
- On the chip the student runs at 27.1 FPS, and its int8 output matches the float model (Pearson 0.99993). On held-out simulated frames its AbsRel is 0.269, against 0.354-0.530 for the other Hailo-8L depth networks.
- On 1,000 stereo-verified points from a real outdoor drive (AbsRel 0.262), it is not resolvably different from Hailo’s Depth Anything V2-Small build (0.234; paired 95% CI -0.060 to +0.118), which runs at 21.6 FPS.
- Hardware-in-the-loop in a Gaussian-splat reconstruction of a real yard (10 scenes): 7.9 ± 1.1 clean goals with simulator pose, 7.7 ± 0.7 on its own pose and 8.2 ± 0.4 with the real board in the loop. Exact obstacles give 9.2 ± 0.4.
Limitations
Navigation is tested in one reconstructed yard with static obstacles and simulated wheel odometry. The real drive was manual, on one route in one lighting condition, with no ground truth. Obstacle bases below 5 cm are invisible to the scan. On the real drive the SLAM, which was tuned in simulation, does not beat vision SLAM baselines.
Figures




Abstract
A small ground robot can carry one camera and a few watts of compute, but the depth foundation models that could turn that camera into a range sensor are vision transformers sized for GPUs. We bring one to a Raspberry Pi 5 with the Hailo-8L, an accelerator that runs every layer in integer arithmetic, attention included. Quantised for it, Depth Anything V2 loses large parts of the scene, and we measure why: at 449 tokens, 91% of softmax weights fall below one int8 step while carrying 17-33% of the attention mass. Our answer is to distil, not quantise. An attention-free ResNet-34 U-Net student of Depth Anything V2-Large (24.5M parameters) runs at 27.1 FPS on the chip, its int8 output matches its float twin (Pearson 0.99993), and on held-out scenes of its simulated yard it is the most accurate depth network on the chip (AbsRel 0.269 against 0.354-0.530). On 1,000 stereo-verified points of a real outdoor drive it is not resolvably different from the vendor's Depth Anything V2-Small build, while running faster (27.1 vs 21.6 FPS). Ranging obstacles by where they meet the floor needs only the camera height, so mapping, hybrid-A* planning and SLAM run on the Pi's own CPU. In real-time hardware-in-the-loop tests in a Gaussian-splat reconstruction of a real yard, the stack reaches the goal without contact in 7.9$\pm$1.1 of 10 scenes, against 9.2$\pm$0.4 with exact obstacles, and in 7.7$\pm$0.7 on its own pose with simulated wheel odometry (ten seeds each; 8.2$\pm$0.4 with the real Pi and Hailo-8L in the loop, five seeds). The source code, pre-trained models and data are available at https://github.com/itaim18/DANIEL.
Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.
