TL;DR
Vision transformers have revolutionized monocular depth estimation, turning ordinary cameras into sharp 3D sensors—until you try to squeeze them onto a cheap, integer-only robot brain, where quantization literally dissolves obstacles into the floor. Instead of fighting 8-bit math on transformers, the authors distill a massive depth foundation model into a classic, attention-free convolutional network that runs effortlessly at 27 FPS on a Raspberry Pi 5 AI Kit. Paired with clever geometry that extracts real-world distances from camera height alone, a tiny rover can map, localize, and dodge obstacles completely onboard for pennies on the watt.
What Problem Does This Paper Address?
If you want a small ground rover to navigate a cluttered yard without expensive, power-hungry LiDAR or stereo rigs, a single RGB camera is the dream sensor. Recent "foundation models" like Depth Anything V2 predict relative depth from single images sharp enough to drive with. The catch? They are giant vision transformers built for data-center GPUs, whereas a small rover operates on a few watts and a tight budget.
Enter edge accelerators like the Raspberry Pi 5 paired with the $70 Hailo-8L NPU—a 13-TOPS chip that runs every single layer in 8-bit integer (int8) arithmetic. When you quantize a vision transformer for this chip, it breaks catastrophically: crates and people vanish into the floor. Even if the depth map survived, foundation models only output relative depth ("this pixel is closer than that one"), leaving a path planner clueless about whether a chair is 1 meter away or 10. Plus, the Pi still needs enough leftover compute to run mapping, localization (SLAM), and path planning in real time.
Methods
The authors tackle this with two pragmatic shifts: distill instead of quantize, and use geometry instead of learned metric scale.
- An Attention-Free Student: Rather than forcing attention mechanisms through
int8quantization, they distill Depth Anything V2-Large (335M parameters) into a purely convolutional ResNet-34 U-Net (24.5M parameters)—no attention, no LayerNorm, no softmax. They train it using scale-invariant losses on teacher labels, fine-tune on simulated ground-truth disparity, and weight pixels below the horizon 4× higher so obstacle bases stay crisp. - Ground-Contact Ranging: To turn scale-free relative depth into actual meters without fragile metric training, they use simple pinhole camera geometry. Because the camera's height above the ground ($h = 0.13\text{ m}$) is known, any pixel lying on the flat floor at a given image row has an exact, known distance. The network only has to identify the row in each image column where the smooth floor ends and a vertical obstacle begins—turning relative depth into a 69°, 4-meter virtual "laser scan."
- Classical Onboard Autonomy: Keeping planning interpretable, the Pi’s CPU runs standard algorithms in parallel with the NPU: a 5 cm obstacle grid, Hybrid A* path planning, pure pursuit control, and visual-wheel SLAM (tracking floor features via Lucas-Kanade optical flow fused with simulated wheel encoders and a gyro).
Datasets
- Simulated Yard (Gaussian Splatting): The authors built a photorealistic 3D Gaussian-splat reconstruction of a real yard inside NVIDIA Isaac Sim, populated with 11 collider-equipped prop types (cones, chairs, crates, people). Training used up to 13,902 simulated POV frames plus 2,024 real frames; evaluation held out three unseen scenes (400 frames for depth benchmarking, 10 frozen obstacle courses for driving).
- Real Robot Video & Park Drive: They evaluated teacher-agreement on 100 indoor/yard robot frames, and recorded a 219-second hand-driven outdoor run through a sunlit park using an Intel RealSense D435. By cross-checking three stereo matchers on the infrared pair, they created a 1,000-point stereo-verified outdoor benchmark.
Key Insights and Ideas
- Why
int8kills diffuse attention: A uniform 8-bit quantizer chops the $[0, 1]$ interval into steps of $1/255 \approx 0.0039$. With 449 image tokens, a transformer head spreading attention evenly assigns each token $1/449 \approx 0.0022$—smaller than a singleint8step! In practice, 91% of all softmax weights fall below one step, yet collectively carry 17–33% of the attention mass (peaking in the final block), whichint8simply rounds away.
- Convolutions erase quantization loss: By switching to a standard U-Net of equal parameter count to Depth Anything V2-Small (~24.5M), compiling to
int8becomes lossless—achieving a 0.99993 Pearson correlation with its floating-point twin on the real chip (despite the compiler's software emulator falsely warning of a $-0.41$ correlation!). - Learned depth beats noisy "perfect" splats: In simulation, the rover actually drove cleaner using the student network than the simulator's own ground-truth depth buffer (6.8 vs. 5.2 clean runs), because Gaussian-splat floaters and floor speckle tricked the ground-contact scanner while the neural network smoothed them out.
- Wheel encoders aren't optional: Pure camera-based floor visual odometry collapsed on turns and textureless patches; adding a basic wheel encoder + gyro slashed median trajectory error from 0.42 m down to 0.08 m.
Key Results
- On-Chip Speed & Accuracy: On the Hailo-8L, the student runs at 27.1 FPS (35.1 ms NPU latency) at $288\times 512$ resolution—faster and higher-res than Hailo’s official Depth Anything V2-Small build (21.6 FPS at $224\times 224$). On simulated obstacles, it slashes error (AbsRel 0.197 vs. 0.334 for Hailo's DAv2-S).
- Real Outdoor Depth: Across 1,000 stereo-verified park points, the live chip student hits 0.262 AbsRel, statistically tied with the vendor's DAv2-S (0.234) while beating SC-DepthV3 (0.392) and FastDepth (0.394).
- Hardware-in-the-Loop Driving: Across 10 cluttered yard courses, an oracle with exact obstacles clears 9.2 ± 0.4 scenes without a scratch. The full stack running live on the physical Pi + Hailo-8L with its own SLAM clears 8.2 ± 0.4 scenes cleanly (7.7 ± 0.7 over 10 seeds on the timing-matched twin), vs. just 2.6 ± 0.9 with camera-only odometry.
Limitations and Future Work
The authors are refreshingly candid about what didn't work and what remains untested:
- Hardware gaps: Closed-loop autonomous driving was only tested via hardware-in-the-loop (physical Pi + Hailo driving the simulated rover), with simulated wheel encoders and gyros; the real outdoor park test was manually driven.
- Geometric blind spots: Ground-contact ranging assumes a flat floor and known camera tilt. Obstacle bases shorter than 5 cm are invisible, blurred floor-to-object boundaries push wall estimates 5–15 cm inward (causing corner grazes), and uncorrected camera pitch ($3.8^\circ$) degraded real-world SLAM.
- Next steps: Improving perception of low-lying structures and adding active exploration—looking around before committing to paths outside the camera's narrow field of view.
Summary updated