Prompting Depth Anything for 4K Resolution Accurate Metric Depth Estimation

Haotong Lin, Sida Peng, Jingxiao Chen, Songyou Peng, Jiaming Sun, Minghuan Liu, Hujun Bao, Jiashi Feng, Xiaowei Zhou, Bingyi Kang · DOI

Introduction

Depth foundation models, such as Depth Anything, have demonstrated remarkable capabilities in capturing the relative spatial structure of scenes. However, these models inherently suffer from scale ambiguity, failing to provide absolute metric measurements necessary for precision applications like autonomous navigation, robotic manipulation, and high-fidelity 3D reconstruction. While existing metric depth models attempt to solve this, they often lack generalization across diverse environments or fail to preserve fine-grained details. Furthermore, different depth sensors (e.g., iPhone LiDAR vs. vehicle LiDAR) produce varying noise patterns and data gaps, typically requiring specialized architectures for each sensor type.

The Prompting Paradigm

PromptDepthAnything++ addresses these challenges by reframing metric depth estimation as a "prompting" task. Instead of training a model from scratch for metric depth, the system leverages the rich priors of a pre-trained depth foundation model and "steers" it using sparse, low-cost metric information, such as that provided by consumer-grade LiDAR sensors found in modern smartphones.

The Prompt Depth Anything paradigm: integrating sparse LiDAR data as a prompt to a depth foundation model to achieve accurate metric depth.

Pattern-Agnostic Tokenization

A key innovation in this work is the transition from grid-based processing to a pattern-agnostic tokenization mechanism. Traditional methods treat sparse depth as a 2D image layer, which makes them sensitive to specific sensor noise patterns and sampling geometries. PromptDepthAnything++ serializes valid depth pixels into a sequence of $(u, v, d)$ tokens. These are processed via self-attention alongside image features, allowing the model to extract scale information regardless of the input sensor's specific characteristics or occlusion patterns.

Training and Data Strategy

To ensure robustness and high resolution, the model is trained on a diverse corpus including synthetic datasets (HyperSim, VKITTI2) and real-world data (ARKitScenes, ScanNet++). The authors utilize Zip-NeRF to generate high-quality pseudo-ground truth for real-world sequences and implement an edge-aware depth loss to maintain sharp object boundaries, which is crucial for achieving 4K resolution output. This division of labor—where the prompt provides the scale and the foundation model provides the local shape—allows for depth maps that are both metrically accurate and visually sharp.

Experimental Results

The proposed method achieves state-of-the-art performance across multiple benchmarks, including NYUv2, ScanNet, and Waymo, often outperforming models specifically tuned for those domains in zero-shot evaluations.

Qualitative comparison between raw ARKit LiDAR depth and the high-resolution, accurate depth maps produced by PromptDepthAnything++ in dynamic scenes.

Beyond accuracy, the model demonstrates significant practical utility. In robotic grasping tasks, it successfully handled transparent and specular objects that typically baffle standard LiDAR sensors by leveraging the foundation model's visual understanding. Furthermore, the prompting mechanism is highly efficient, adding only approximately 5.7% computational overhead to the base foundation model.

Conclusion

PromptDepthAnything++ provides a scalable and robust framework for high-resolution metric depth estimation. By treating sparse metric data as a prompt rather than a primary input, it successfully bridges the gap between the generalizability of foundation models and the precision required for metric tasks. While currently limited by the range of the prompting sensor, future work aims to extend effective range and improve temporal consistency across video frames.

Summary updated

BibTeX
@inproceedings{lin2025prompting,
  author = {Haotong Lin and Sida Peng and Jingxiao Chen and Songyou Peng and Jiaming Sun and Minghuan Liu and Hujun Bao and Jiashi Feng and Xiaowei Zhou and Bingyi Kang},
  title = {{Prompting Depth Anything for 4K Resolution Accurate Metric Depth Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01591},
}
Figure