Depth Anything at Any Condition

Boyuan Sun, Modi Jin, Bowen Yin, Qibin HouarXiv 2025 · DOI

Introduction

Monocular depth estimation (MDE)—the task of predicting a dense 3D depth map from a single 2D image—is a fundamental component of modern autonomous driving, robotics, and augmented reality. Recent foundation models, such as Depth Anything V2 and DepthPro, have demonstrated remarkable "zero-shot" performance across a wide variety of general scenes. However, these models are primarily "fair-weather" systems. Because most large-scale training datasets are captured under ideal lighting and clear weather, performance degrades significantly when encountering real-world "corruptions" like sensor noise, motion blur, or the low-contrast haze of a foggy night.

The primary challenge in addressing this is the scarcity of high-quality, labeled depth data for adverse conditions like blizzards or nighttime environments. Traditional pseudo-labeling techniques often fail because the source models themselves produce unreliable results on corrupted images. To solve this, Depth Anything at Any Condition (DepthAnything-AC) introduces a robust foundation model designed to maintain high performance in challenging environments without sacrificing accuracy on standard, clear-weather scenes.

Methodology

The researchers propose a two-pronged strategy to bridge the gap between ideal and adverse conditions using an unsupervised consistency regularization paradigm.

Perturbation-Based Consistency Framework

Instead of requiring ground-truth labels for every possible environmental condition, DepthAnything-AC utilizes a "Teacher-Student" training setup. A clean image, where the model is already confident, is processed by a frozen teacher model. Simultaneously, synthetic perturbations—including darkness, blur, fog, snow, and contrast shifts—are applied to the same image and fed to a student model. The student is trained to ensure its depth prediction for the "noisy" image matches the teacher's prediction for the "clean" image, forcing the model to learn features that are invariant to environmental noise.

The DepthAnything-AC framework featuring Consistency Regularization and Spatial Distance Constraints.

Spatial Distance Constraint (SDC)

To assist the model in recovering sharp object boundaries in blurry or dark scenes, the authors introduced a geometric prior called the Spatial Distance Relation (SDR). This relation combines the 2D Euclidean distance between image patches with their relative depth differences. By enforcing this constraint during training, the model learns to prioritize the underlying geometric structure of a scene over potentially misleading surface textures that are often lost to noise.

Knowledge Distillation

To prevent "catastrophic forgetting" of clear-weather performance, a frozen version of the original foundation model acts as a guide for the student's predictions on clean data. Interestingly, the researchers found that freezing the pre-trained encoder during fine-tuning was more effective than updating it, suggesting that foundation models already possess the necessary "visual vocabulary" but require a more robust decoding strategy.

Datasets and Evaluation

The model was fine-tuned on a collection of 540,000 unlabeled images from diverse sources, including ADE20k, MegaDepth, and COCO. Evaluation was conducted across several rigorous benchmarks:

  • DA-2K (Enhanced): A high-resolution benchmark augmented with synthetic darkness, fog, snow, and blur.
  • Real-world Adverse Benchmarks: NuScenes-night, Robotcar-night, and DrivingStereo (rain/fog/cloud).
  • Synthetic Corruption Benchmarks: KITTI-C (darkness, snow, motion blur, Gaussian noise).

Key Results

DepthAnything-AC achieved state-of-the-art results across the board for adverse conditions. On the DA-2K benchmark, it improved accuracy from 0.910 to 0.923 on dark images and from 0.862 to 0.880 on blurred images compared to Depth Anything V2.

Qualitative comparison of DepthAnything-AC against state-of-the-art models in adverse nighttime and noisy conditions.

Qualitatively, the model demonstrates a superior ability to "see through" noise, producing sharper boundaries and more consistent depth maps in environments where previous models produced "blobs" or failed entirely. Crucially, the model maintained competitive performance on standard benchmarks like NYU-D and KITTI, proving its general-purpose utility.

Conclusion

DepthAnything-AC demonstrates that logical consistency and geometric priors can effectively substitute for expensive manual labeling in adverse conditions. By focusing on geometry over texture and leveraging unsupervised consistency, the model provides a robust solution for real-world MDE applications. Future work will likely focus on higher-fidelity benchmarks to better measure fine-grained improvements in object boundary localization.

Summary updated

BibTeX
@misc{sun2025depth,
  author = {Boyuan Sun and Modi Jin and Bowen Yin and Qibin Hou},
  title = {{Depth Anything at Any Condition}},
  year = {2025},
  eprint = {2507.01634},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.01634},
}
Figure