UniDepth: Universal Monocular Metric Depth Estimation
Luigi Piccinelli, Yung-Hsu Yang, Christos Sakaridis, Mattia Segu, Siyuan Li, Luc Van Gool, Fisher Yu
TL;DR
UniDepth addresses the challenge of universal monocular metric depth estimation by predicting per-pixel metric 3D points from a single image without relying on external camera parameters. It introduces a self-promptable dense camera module and a pseudo-spherical output space that cleanly separates camera rays from depth, aided by a geometric invariance loss to enforce consistency across geometric augmentations. Trained on a large, diverse real-world dataset and evaluated zero-shot across ten unseen datasets, UniDepth achieves state-of-the-art performance, particularly in scale-invariant metrics, and even tops the KITTI depth prediction benchmark. The work demonstrates robust 3D reconstruction across varied scenes and camera setups, with flexible test-time conditioning if additional camera information is available.
Abstract
Accurate monocular metric depth estimation (MMDE) is crucial to solving downstream tasks in 3D perception and modeling. However, the remarkable accuracy of recent MMDE methods is confined to their training domains. These methods fail to generalize to unseen domains even in the presence of moderate domain gaps, which hinders their practical applicability. We propose a new model, UniDepth, capable of reconstructing metric 3D scenes from solely single images across domains. Departing from the existing MMDE methods, UniDepth directly predicts metric 3D points from the input image at inference time without any additional information, striving for a universal and flexible MMDE solution. In particular, UniDepth implements a self-promptable camera module predicting dense camera representation to condition depth features. Our model exploits a pseudo-spherical output representation, which disentangles camera and depth representations. In addition, we propose a geometric invariance loss that promotes the invariance of camera-prompted depth features. Thorough evaluations on ten datasets in a zero-shot regime consistently demonstrate the superior performance of UniDepth, even when compared with methods directly trained on the testing domains. Code and models are available at: https://github.com/lpiccinelli-eth/unidepth
