Depth Anything with Any Prior

Zehan Wang, Siyu Chen, Lihe Yang, Jialei Wang, Ziang Zhang, Hengshuang Zhao, Zhou Zhao · DOI

Abstract

Prior Depth Anything (PriorDA) is a unified framework designed to transform monocular depth estimation (MDE) from a relative geometric task into a precise metric tool. By integrating incomplete but accurate sensor measurements—referred to as "priors"—with the rich geometric representations of foundation models like Depth Anything v2, PriorDA achieves state-of-the-art zero-shot performance across various tasks including depth completion, super-resolution, and inpainting within a single, flexible architecture.

Introduction

The field of computer vision currently faces a dichotomy in depth perception. Monocular Depth Estimation (MDE) foundation models provide exceptional relative geometry but lack metric scale. In contrast, hardware sensors such as LiDAR, Time-of-Flight (ToF), or Structure-from-Motion (SfM) provide precise metric measurements but are often sparse, noisy, or low-resolution. Existing solutions typically address these issues through task-specific models, which often fail to generalize across diverse environments or handle mixed priors (e.g., a sensor that is both low-resolution and missing data).

PriorDA addresses these limitations by offering a flexible, all-in-one architecture capable of producing dense, detailed, and metrically accurate depth maps from any depth prior.

PriorDA integrates geometric estimation and metric measurements to achieve fine details and precise metric accuracy.

The Coarse-to-Fine Pipeline

The authors propose a two-stage pipeline that moves from explicit geometric alignment to implicit neural refinement.

Stage 1: Coarse Metric Alignment (Explicit Fusion)

The process begins with a relative depth prediction from a frozen MDE model. To bridge the gaps in sparse sensor data, the framework utilizes a Pixel-level Metric Alignment strategy. For each missing pixel, the system identifies the $K$ nearest valid sensor points (kNN) to calculate an optimal scale and shift to align the relative prediction. A Distance-aware Re-weighting mechanism ensures that proximal sensor points exert greater influence, maintaining spatial consistency and preventing abrupt jumps in the depth map.

Stage 2: Fine Structure Refinement (Implicit Fusion)

The resulting metrically aligned map is further refined using a Conditioned MDE model. This stage takes the RGB image, the initial relative prediction, and the coarse metric map as inputs. By passing these conditions through zero-initialized convolutional layers, the model inherits the pre-trained strengths of the MDE foundation while learning to granularly merge the sources and filter out sensor noise.

The PriorDA architecture consists of Coarse Metric Alignment (Explicit Fusion) and Fine Structure Refinement (Implicit Fusion) stages.

Experimental Results and Generalization

The model was trained on synthetic datasets (Hypersim and vKITTI) to simulate various sensor failure modes. Evaluation focused on zero-shot generalization across seven real-world datasets, including NYUv2, ScanNet, and KITTI.

PriorDA consistently outperformed task-specific state-of-the-art models such as Marigold-DC (for completion) and PromptDA (for super-resolution). Notably, on the NYUv2 dataset, the framework achieved an AbsRel of 0.0196, demonstrating the efficacy of combining metric and geometric conditions. Furthermore, the model maintains competitive inference speeds, processing a 480x640 image in approximately 160ms on an A100 GPU.

Key Insights

  • Unified Prior Handling: PriorDA treats depth completion and super-resolution as a singular problem of filling missing metric information using geometric cues.
  • Sensor Rectification: The model can identify and correct sensor outliers by leveraging RGB guidance, sometimes proving more accurate than the raw sensor data.
  • Test-Time Modularity: The refinement stage allows for swapping MDE backbones (e.g., ViT-Small for speed or ViT-Large for precision) at test time without retraining, providing a flexible accuracy-efficiency trade-off.

Limitations and Future Work

While PriorDA represents a significant step toward universal metric depth estimation, it is currently constrained by its training resolution (518x518) and its performance remains tied to the quality of the underlying MDE foundation model. Future directions include scaling to higher resolutions and exploring larger backbones like ViT-Giant to meet the demands of high-end robotics and photography.

Summary updated

BibTeX
@inproceedings{wang2026depth,
  author = {Zehan Wang and Siyu Chen and Lihe Yang and Jialei Wang and Ziang Zhang and Hengshuang Zhao and Zhou Zhao},
  title = {{Depth Anything with Any Prior}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=IROtFft9Q4},
}
Figure