Manuscript Offprint

arXiv:2609.04827

Weather-Conditioned Depth Anything

Zhaoming Xu, Chan-Wei Hu, Kuan-Ru Huang, Zihao Zhu, Renjie Li, Yang Zhou, Zhengzhong Tu

Zhaoming Xu¹, Chan-Wei Hu¹, Kuan-Ru Huang¹, Zihao Zhu¹, Renjie Li¹, Yang Zhou¹, and Zhengzhong Tu¹*

Texas A&M University, College Station, TX 77843, USA {zhaoming0812,tzz}@tamu.edu

Figure

Fig. 1: Depth estimation results under various real-weather degraded conditions. Our DA-W generates accurate details and well-preserved structure under snow, fog, rain, and low-light conditions. Compared with Depth Anything v2 [61] and Depth Anything-AC [48], our method produces finer-grained and more robust predictions.

Abstract. Monocular depth estimation foundation models, such as the Depth Anything series, have achieved remarkable performance across diverse domains. However, they still suffer from critical failures under adverse weather conditions, such as fog, rain, snow, or at night. To address this, we present Weather-Conditioned Depth Anything (DA-W), a framework that explicitly disentangles style from content for weather-robust depth estimation. Specifically, we introduce a Style Filter trained on a curated mix of real and synthetic degradation datasets to extract content-independent, degradation-aware weather embeddings. This style

  • Corresponding Author

Z. Xu et al.

embedding is then injected into the Depth Anything backbone using a parameter-efficient, zero-initialized adapter. Such a lightweight modulation allows a single unified model to robustly adapt to diverse conditions—including fog, rain, snow, and low-light—while avoiding catastrophic forgetting of its core generalization abilities in normal conditions. We train the adapter using a pseudo-label distillation and alignment strategy. Our comprehensive experiments demonstrate that our proposed DA-W achieves state-of-the-art robust depth estimation, improving AbsRel by an average of 3.7% on our curated weather benchmarks, while matching or slightly outperforming performance on standard clean benchmarks. Our project page is available at: https://zhaoming-tamu.github.io/WCDA/.

Keywords: robust depth estimation · 3D from single images

1 Introduction

Monocular depth estimation (MDE) has become a fundamental component in 3D perception [15, 33, 57] for cost-effective applications, such as autonomous driving, robotics, and AR/VR, where it can replace relying on LiDAR or stereo cameras. Driven by large-scale datasets and model training, recent depth foundation models [2, 54] have demonstrated strong generalization in depth estimation across diverse environments. However, their performance degrades dramatically under adverse weather conditions—fog, snow, rain, and nighttime—due to atmospheric scattering, occlusion, specular artifacts, and low-light noise, which fundamentally alter the appearance (See Figure. 1).

This robustness gap persists even for state-of-the-art foundation models such as the Depth Anything [31, 60, 61]. Broadly, there are two strategies to improve robustness under adverse weather conditions: (1) pre-process the image to remove weather effects before depth estimation, and (2) adapt the depth model to the weather conditions.

The first strategy has an inherent limitation: restoration methods are typically optimized for perceptual quality rather than geometric accuracy, and often distort the very cues critical for reliable depth estimation [8, 9, 44].

Some studies train the restoration for task-oriented objectives [13, 28], yet they often overfit to a specific downstream model, making them non-generalizable to other estimators. The second strategy is more principled but requires large-scale annotated depth

Figure

Fig. 2: Performance δ1↑\delta_1 \uparrow comparison across three datasets: real adverse weather, synthetic adverse weather, and clean weather. Values are normalized per dataset (Baseline = 0.6).

data under real adverse conditions,

Figure

(a) Depth Anything v2 CLS

(b) Style Filter

Fig. 3: Feature space comparison for style characterization. Depth Anything v2 [61] CLS tokens fail to separate weather conditions, while our style filter features form distinct clusters.

which is prohibitively expensive to collect. As a practical workaround, existing methods predominantly rely on synthetic weather degradations applied to clean images [23, 42, 50].

Consequently, the key question is whether features learned from synthetic data generalize reliably to real-world scenarios. To probe this generalization gap, we analyze how a foundation depth model represents appearance variations across domains. We extract the [CLS] tokens in vision transformer (ViT) embeddings [51] as the global appearance vector on the Depth Anything v2 encoder [61] across diverse real and synthetic weather conditions, and visualize the feature embeddings via t-SNE [35] in Figure. 3 (left).

As may be seen, the features are fundamentally entangled. Representations from different weather types (e.g., fog, rain, snow) are heavily mixed, rather than forming separable clusters. The model conflates weather-specific style with scene geometry into a single, undifferentiated representation, instead of providing a pure weather code. This entanglement is the root cause of the model's brittleness, as it cannot distinguish appearance variations caused by weather from those of the scene itself, preventing the learning of generalizable weather patterns and fatally hindering synthetic-to-real adaptation.

Motivated by these insights, we propose Weather-Conditioned Depth Anything (DepthAnything-W or DA-W), a simple yet robust adaptation strategy to robustify depth estimation under adverse weather conditions. We first design a Style Filter network using contrastive learning on a curated collection comprising 7 real-world adverse-weather datasets and 4 clean datasets, from which corresponding synthetic weather views are generated. This module learns to align the style distributions of real and synthetic degradations, as shown in Figure 3(right), thereby producing a discriminative weather embedding. The embedding then conditions the Depth Anything foundation model using lightweight modulation techniques AdaLN-Zero. This lightweight conditioning allows the model to adjust its predictions based on the estimated weather while keeping the encoder frozen, preventing catastrophic forgetting and preserving clean-scene performance. Extensive experiments demonstrate that DA-W achieves state-of-

Z. Xu et al.

the-art performance across both general and adverse-weather benchmarks Figure 2.

Our contributions are summarized as follows:

– We propose DepthAnything-W, a novel weather-robust depth estimation foundation model that learns to adapt to diverse real weather conditions.

– We introduce a Style Filter trained via contrastive loss on mixed datasets of real and synthetic data, learning domain-aligned weather embeddings that bridge the gap between synthetic and real data.

– We propose a parameter-efficient adaptation strategy that conditions the Depth Anything foundation model using the learned weather embedding via lightweight AdaLN-Zero modulation.

– Our comprehensive experiments show that DA-W achieves state-of-the-art performance on diverse adverse-weather benchmarks without degrading generalization performance on clean data.

References (67)