Monocular Depth Estimation using Diffusion Models

Saurabh Saxena, Abhishek Kar, Mohammad Norouzi, David J. Fleet

Introduction

Monocular depth estimation (MDE)—the task of predicting 3D distance from a single 2D image—is a cornerstone of computer vision. Traditional approaches typically treat MDE as a standard regression problem. However, this formulation suffers from two primary issues: it cannot represent depth ambiguity (e.g., in scenes with transparency or reflections) and it struggles with the noisy, incomplete data produced by real-world sensors like LiDAR or Kinect.

This paper introduces DepthGen, a generative approach that frames depth prediction as a conditional image-to-image translation task using denoising diffusion models. By leveraging the probabilistic nature of diffusion, DepthGen can represent multi-modal depth distributions and perform zero-shot 3D scene completion.

Methodology

DepthGen adapts the Efficient U-Net architecture for depth estimation. The training process incorporates several key innovations to adapt diffusion models to geometric tasks:

  1. Self-Supervised Pre-training: The model is first trained on general image-to-image tasks (inpainting, colorization) using ImageNet-1K and Places365 to learn robust visual priors.
  2. Step-unrolled Denoising Diffusion (SUD): A critical challenge in depth diffusion is the "distribution shift" between training (denoising ground truth) and inference (denoising the model's own predictions). SUD addresses this by "unrolling" a step during fine-tuning, forcing the model to occasionally denoise its own previous, imperfect predictions.
  3. Robust Loss and Infilling: To handle sensor noise, the authors utilize an $L_1$ loss and simple nearest-neighbor infilling for training data with missing values.
The DepthGen training pipeline, illustrating the step-unrolled denoising process and the use of an Efficient U-Net conditioned on RGB images.

Experimental Setup

The model was trained on a massive scale, utilizing ScanNet (2.5M images) and SceneNet RGB-D (5M synthetic images) for indoor supervision, and the Waymo Open Dataset (600k images) for outdoor training. Evaluation was conducted on the standard NYU Depth v2 (indoor) and KITTI (outdoor) benchmarks.

Key Results and Insights

DepthGen achieved state-of-the-art performance on the NYU Depth v2 benchmark with a Relative Error (REL) of 0.074, and remained highly competitive on KITTI with a REL of 0.064.

Beyond metrics, the generative nature of the model allows it to act as a multi-modal solver. In scenarios with glass or reflections, DepthGen can generate multiple possible depths for a single pixel rather than a single "blurred" average. Furthermore, it enables zero-shot imputation, allowing for the generation of entire 3D scenes from text prompts when combined with text-to-image models.

Qualitative results on the NYU Depth v2 dataset, comparing ground truth depth maps with DepthGen predictions across various indoor scenes.

Conclusion and Future Work

While DepthGen demonstrates the power of diffusion models for 3D geometry, inference speed remains a bottleneck due to the iterative sampling process (128 steps). The authors identify progressive distillation as a vital next step to compress these steps for real-time applications in robotics and augmented reality. Nevertheless, the success of SUD and $L_1$ loss highlights the necessary architectural shifts required to move diffusion models from 2D generation to precise 3D geometric tasks.

Summary updated

BibTeX
@misc{saxena2023monocular,
  author = {Saurabh Saxena and Abhishek Kar and Mohammad Norouzi and David J. Fleet},
  title = {{Monocular Depth Estimation using Diffusion Models}},
  year = {2023},
  eprint = {2302.14816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.14816},
}
Figure