Digging into contrastive learning for robust depth estimation with diffusion models

Jiyuan Wang, Chunyu Lin, Lang Nie, Kang Liao, Shuwei Shao +1 more
4/15/2024
30 citations
cs.CV
diffusion-flowcontrastive-ssl

Official code: wangjiyuan9/D4RD (21 stars, Python, MIT, last commit 2025-07-22).

Abstract

Recently, diffusion-based depth estimation methods have drawn widespread attention due to their elegant denoising patterns and promising performance. However, they are typically unreliable under adverse conditions prevalent in real-world scenarios, such as rainy, snowy, etc.

Show full abstract

In this paper, we propose a novel robust depth estimation method called D4RD, featuring a custom contrastive learning mode tailored for diffusion models to mitigate performance degradation in complex environments. Concretely, we integrate the strength of knowledge distillation into contrastive learning, building the `trinity' contrastive scheme. This scheme utilizes the sampled noise of the forward diffusion process as a natural reference, guiding the predicted noise in diverse scenes toward a more stable and precise optimum. Moreover, we extend noise-level trinity to encompass more generic feature and image levels, establishing a multi-level contrast to distribute the burden of robust perception across the overall network. Before addressing complex scenarios, we enhance the stability of the baseline diffusion model with three straightforward yet effective improvements, which facilitate convergence and remove depth outliers. Extensive experiments demonstrate that D4RD surpasses existing state-of-the-art solutions on synthetic corruption datasets and real-world weather conditions. Source code and data are available at \url{https://github.com/wangjiyuan9/D4RD}.

View on arXivView PDF

Code Implementations(1)

wangjiyuan9/D4RDOfficial100%
MIT

[ACM MM2024] Digging into contrastive learning for robust depth estimation with diffusion models

213PythonJul 26, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2024digging,
  title  = {Digging into contrastive learning for robust depth estimation with diffusion models},
  author = {Jiyuan Wang and Chunyu Lin and Lang Nie and Kang Liao and Shuwei Shao and Yao Zhao},
  year   = {2024},
  eprint = {2404.09831},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.09831v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.09831.svg)](https://codeofpaper.com/paper/2404.09831)

Discussion