Towards Zero-Shot Scale-Aware Monocular Depth Estimation

Vitor Guizilini, Igor Vasiljevic, Dian Chen, Rares Ambrus, Adrien Gaidon

Abstract

Monocular depth estimation—the task of predicting 3D distance from a single 2D image—is a fundamental challenge in computer vision. Traditionally, models have struggled to balance generalization with metric accuracy, often requiring specific camera parameters or environment-specific fine-tuning to produce accurate physical measurements. This paper introduces ZeroDepth, a novel framework developed by researchers at the Toyota Research Institute (TRI). ZeroDepth achieves robust, metrically scaled depth prediction across diverse indoor and outdoor environments without prior exposure to the specific camera or scene, effectively addressing the long-standing "scale-ambiguity" problem in zero-shot settings.

Introduction

Predicting the distance of objects from a single camera is inherently "ill-posed." Because a small object close to the lens can appear identical to a large object far away, standard monocular models typically produce "up-to-scale" relative depth. While these models generalize well, they lack the metric precision required for robotics and autonomous driving unless they are calibrated with ground-truth data at test time. Conversely, models trained for metric depth often overfit to the specific camera geometry (focal length and sensor size) of their training set, failing when deployed on new hardware.

ZeroDepth is designed to be both scale-aware and geometry-agnostic. By providing the model with basic camera intrinsic parameters alongside the image, ZeroDepth learns to reason about the physical size of objects relative to the camera's field of view, enabling accurate metric predictions on entirely unseen datasets.

Methodology

ZeroDepth utilizes the Perceiver IO architecture as its backbone and introduces three primary innovations to solve the scale-ambiguity problem:

1. Input-Level Geometric Embeddings

Rather than treating the image as a purely visual input, ZeroDepth incorporates the camera's intrinsic parameters ($K$). The framework transforms pixel coordinates into viewing rays, which are then Fourier-encoded. This allows the network to understand the geometric context of the image, enabling it to map visual features to physical dimensions based on the specific lens characteristics.

2. Variational Latent Representation

The model decouples the image encoder from the depth decoder using a variational latent space, similar to a Variational Autoencoder (VAE). This architecture allows the model to capture the high entropy and uncertainty inherent in diverse training data. During inference, the model can be sampled to produce a distribution of possible depths, providing a measure of confidence for its predictions.

3. Encoder-Level Data Augmentation

To ensure the model learns fundamental geometric relationships rather than memorizing specific resolutions or patterns, the authors employed Resolution Jittering and Ray Jittering. By randomly resizing images and mathematically adjusting the corresponding camera intrinsics during training, the model is forced to rely on the underlying physics of the scene to determine scale.

Experimental Setup and Training

To achieve true zero-shot capability, ZeroDepth was trained on a massive, heterogeneous collection of synthetic and real-world data:

  • Outdoor Data: Parallel Domain (synthetic), TartanAir (synthetic), Waymo Open Dataset (real), and a Large-Scale Driving (LSD) internal dataset.
  • Indoor Data: OmniData, a comprehensive collection of synthetic indoor scenes.

The model was then evaluated on standard benchmarks—including KITTI, DDAD, and nuScenes for driving, and NYUv2 for indoor robotics—without any fine-tuning on these specific datasets.

Key Results

ZeroDepth established new state-of-the-art benchmarks for zero-shot metric transfer:

  • Outdoor Performance (KITTI): The model achieved an Absolute Relative Error (AbsRel) of 0.100. Notably, this zero-shot performance outperformed several established models that were trained directly on the KITTI dataset.
  • Indoor Performance (NYUv2): ZeroDepth achieved an AbsRel of 0.081, significantly surpassing prior zero-shot methods and rivaling models that require test-time median scaling to correct their output.
  • Spatial Consistency: Qualitative evaluations using 360-degree multi-camera rigs demonstrated that ZeroDepth’s predicted point clouds align seamlessly in 3D space. This suggests the model maintains high geometric consistency across different viewing angles without requiring post-processing alignment.
  • Uncertainty Filtering: By leveraging the variational nature of the model, the researchers found that filtering out the top 10% of most "uncertain" pixels (typically located at complex object boundaries) improved the Root Mean Squared Error (RMSE) by approximately 30%.

Discussion and Limitations

While ZeroDepth represents a significant leap forward, it has specific dependencies and areas for improvement. The model's metric accuracy is highly sensitive to the accuracy of the provided camera intrinsics; noise in these parameters leads to a sharp degradation in metric performance, though relative depth remains stable. Additionally, with 232 million parameters, the model is computationally intensive, posing challenges for real-time deployment on edge hardware.

Future work may involve distilling the model for efficiency and integrating temporal information from video sequences. Moving from single-frame analysis to temporal sequences could further refine scale estimation and help the model better handle occlusions and dynamic objects.

Conclusion

ZeroDepth demonstrates that by combining geometric embeddings with variational representations and diverse training data, it is possible to overcome the scale-ambiguity of monocular vision. The framework provides a robust path toward universal depth perception, capable of delivering metrically accurate 3D maps for any camera in any environment.

Summary updated

BibTeX
@inproceedings{guizilini2023towards,
  author = {Vitor Guizilini and Igor Vasiljevic and Dian Chen and Rares Ambrus and Adrien Gaidon},
  title = {{Towards Zero-Shot Scale-Aware Monocular Depth Estimation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure