DeFM
Open depth foundation model for robots: one frozen encoder for navigation and grasping
License
Apache-2.0
Overview
DeFM is a foundation model for depth images, built for robots by the Robotic Systems Lab at ETH Zurich with collaborators at UC Berkeley, NVIDIA and Imperial College London. It does for depth what DINOv2 does for colour images: a self-supervised transformer encoder, trained on 60.4 million depth images, whose features can be used frozen for a wide range of tasks. Code is on GitHub and all 12 pretrained models are on Hugging Face, both under Apache-2.0.
Many robots already perceive the world through a depth camera, and depth is easier to simulate faithfully than colour, which is why depth-based policies transfer well from simulation (sim2real). Until now there was no general-purpose pretrained encoder for that modality. DeFM fills the gap: the authors report state-of-the-art results on depth-based classification and segmentation, and use the same frozen encoder for reinforcement learning in navigation, dexterous grasping and legged locomotion. The paper is accepted to IEEE Transactions on Robotics (T-RO) 2026 (arXiv 2601.18923).
DeFM's largest model is a ViT-L/14 with about 304 million parameters, trained from scratch on depth with a DINOv2-style self-distillation objective: a student network sees masked global crops and local crops and learns to match a momentum teacher through DINO and iBOT losses. No labels and no colour images are used.
The pretraining set has 60.4 million depth images from 18 datasets: 22.4M from real sensors (such as ScanNet, ARKitScenes, DROID and GraspNet-1Billion), 13.0M from simulation (such as TartanAir, TartanGround and Hypersim) and 25.0M estimated from colour photos of ImageNet-21k and SA-1B with a monocular depth model. To keep metric scale from millimetres in grasping to around 100 m outdoors, each depth map is turned into three log-scaled channels (a per-image relative channel, a near channel and a far channel) before it enters the network; the package's preprocess_depth_image function does this.
For robots with little compute, the ViT-L teacher is distilled into eleven smaller students: a ViT-S/14 and ResNet, RegNet and EfficientNet encoders with a BiFPN head, down to 3.01M parameters for EfficientNet-B0. The model zoo lists each one's latency on an RTX 4090 and a Jetson Orin (for example 8.67 ms for ResNet-18 on the Jetson at 224 × 224) and its ImageNet-1k-Depth accuracy. Models load through TorchHub or the defm package on PyPI, and the repository includes PCA notebooks and the benchmark scripts. A browser explorer and a Hugging Face Space show which image patches the model considers similar on your own depth or RGB image.
Why it matters
Colour foundation models such as DINOv2 changed how robot perception is built, but robots that act on depth were still training their encoders from scratch for every task. DeFM gives them a shared pretrained backbone. In the authors' tests a single frozen DeFM encoder worked across navigation on a Unitree B2W wheeled-legged robot, grasping with a KUKA arm and Allegro hand, and ANYmal ladder climbing, where it reached a 90.14% climb success rate, within 0.3 points of a CNN trained from scratch for that task. It did so without task-specific depth clipping or noise models, and it is openly licensed and small enough in its distilled forms to run on a Jetson.
Problem it solves
A robot policy that sees through a depth camera needs an encoder that turns noisy depth into useful features. Training one per task wastes data and often overfits to the simulator's clean depth, so teams add hand-tuned clipping and noise models to get sim-to-real transfer. DeFM replaces that with a pretrained encoder whose features already capture geometry and object parts across sensors and scenes, in sizes from a 304M-parameter teacher down to 3M-parameter CNNs.
Key takeaways
- A DINOv2-style self-supervised encoder trained only on depth: 60.4M images from 18 real, synthetic and photo-derived datasets
- 12 released models under Apache-2.0, from a 304M-parameter ViT-L/14 to a 3M-parameter EfficientNet-B0, loadable through TorchHub or PyPI
- Metric-aware three-channel input normalisation keeps depth scale from millimetres to about 100 m
- The same frozen encoder was used for navigation, dexterous grasping and quadruped ladder climbing in the authors' experiments
- Accepted to IEEE Transactions on Robotics (T-RO) 2026; benchmark scripts reproduce the paper's linear-probe results
Who it is for
- Robot-learning researchers training depth-based policies in simulation for real deployment
- Engineers who need a compact pretrained depth encoder for an embedded computer such as a Jetson
- Perception researchers working on depth classification, segmentation and representation learning
Limitations
- Encoder only: DeFM produces features, so every task still needs its own policy or head trained on top
- The 60.4M-image pretraining set is not released; it is assembled from third-party datasets under their own licences
- The benchmark datasets published on Hugging Face (ImageNet-1k-Depth, TartanGround, GraspNet) carry no licence of their own
- The robot results are the authors' own experiments on their platforms; the code to reproduce the RL tasks is not part of the release
- Input must be metric depth in metres, converted with the provided preprocessing; CNN students need input sides that are multiples of 32