Depth Any Camera: Zero-Shot Metric Depth Estimation from Any Camera

Yuliang Guo, Sparsh Garg, S. Mahdi H. Miangoleh, Xinyu Huang, Liu Ren

Abstract

While recent depth foundation models exhibit strong zero-shot generalization, achieving accurate metric depth across diverse camera types—particularly those with large fields of view (FoV) such as fisheye and 360-degree cameras—remains a significant challenge. This paper presents Depth Any Camera (DAC), a powerful zero-shot metric depth estimation framework that extends a perspective-trained model to effectively handle cameras with varying FoVs. The framework is designed to ensure that all existing 3D data can be leveraged, regardless of the specific camera types used in new applications. Remarkably, DAC is trained exclusively on perspective images but generalizes seamlessly to fisheye and 360-degree cameras without the need for specialized training data. DAC employs Equi-Rectangular Projection (ERP) as a unified image representation, enabling consistent processing of images with diverse FoVs. Its key components include a pitch-aware Image-to-ERP conversion for efficient online augmentation in ERP space, a FoV alignment operation to support effective training across a wide range of FoVs, and multi-resolution data augmentation to address resolution disparities between training and testing. DAC achieves state-of-the-art zero-shot metric depth estimation, improving delta-1 accuracy by up to 50% on multiple fisheye and 360-degree datasets compared to prior metric depth foundation models, demonstrating robust generalization across camera types.

Introduction

Most modern depth estimation models are "perspective-blind," trained primarily on standard, narrow-angle images. While these models excel at relative depth prediction, they struggle with metric depth—the actual distance in meters—when camera geometry deviates from standard perspective projections. Large field-of-view (FoV) cameras, such as fisheye or 360-degree lenses, introduce significant radial distortion and scale-depth ambiguities that standard models cannot resolve without extensive fine-tuning on rare, specialized datasets.

Overview of the DAC framework showing zero-shot metric depth estimation across regular, fisheye, and 360-degree cameras.

Depth Any Camera (DAC) addresses this by enabling metric depth models to work on virtually any camera type without ever seeing them during training. By leveraging geometric transformations to warp standard perspective images into a unified spherical representation, DAC achieves significant accuracy improvements over previous state-of-the-art models.

Methodology

The core philosophy of DAC is to change how the model perceives the world rather than changing the underlying training data. The framework utilizes several key technical components:

Unified Representation via ERP

Instead of processing raw pixels in their original camera space, DAC converts all images into Equi-Rectangular Projection (ERP) space. This provides a canonical, spherical coordinate system capable of representing any field of view consistently.

The DAC pipeline: converting input from any camera to a unified ERP representation for depth estimation and back.

Pitch-Aware Image-to-ERP Conversion

A critical innovation is the pitch-aware conversion. During training, standard perspective images are transformed using Gnomonic Projection to simulate patches captured by a 360-degree camera at various pitch angles. This teaches the model to handle the specific distortions found in spherical space, such as the warping that occurs near the poles.

FoV Alignment and Multi-Resolution Training

To handle varying zoom levels and sensor resolutions, DAC introduces:

  • FoV Alignment: Normalizes diverse training FoVs to a predefined ERP patch size, ensuring a consistent relationship between pixel size and physical distance.
  • Multi-Resolution Training: Trains on patches at multiple scales (e.g., 1.0x, 0.7x, 0.4x), forcing the network to learn scale-equivariant features robust to different sensor hardware.

Experiments and Results

The authors evaluated DAC's zero-shot generalization by training exclusively on perspective datasets (e.g., HM3D, Hypersim, DDAD) and testing on large FoV datasets (e.g., Matterport3D, ScanNet++, KITTI360).

DAC significantly outperformed existing foundation models like Metric3Dv2 and UniDepth:

  • Indoor Accuracy: On the ScanNet++ fisheye dataset, DAC improved delta-1 accuracy from 0.64 to 0.85.
  • 360-degree Performance: On Matterport3D, DAC nearly doubled the performance of baseline perspective models with a delta-1 of 0.77.
  • Error Reduction: The framework reduced the Absolute Relative Error (Abs Rel) by nearly 50% in several indoor tests compared to the next-best methods.

Discussion and Limitations

While DAC shows remarkable performance indoors, gains in outdoor settings (like KITTI360) were less dramatic. This is attributed to the lack of pitch variation in standard outdoor training data (e.g., DDAD), where cameras are typically level. Furthermore, LiDAR ground truth in outdoor datasets is often concentrated in the center of the frame, which may mask the full benefit of DAC's distortion-handling capabilities at the edges. Future work involves incorporating more diverse camera orientations in outdoor training sets to further enhance applications in autonomous driving.

Summary updated

BibTeX
@inproceedings{guo2025depth,
  author = {Yuliang Guo and Sparsh Garg and S. Mahdi H. Miangoleh and Xinyu Huang and Liu Ren},
  title = {{Depth Any Camera: Zero-Shot Metric Depth Estimation from Any Camera}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=XEezDTwujH},
}
Figure