Skip to main content
QUICK REVIEW

[Paper Review] Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data

Lihe Yang, Bingyi Kang|arXiv (Cornell University)|Jan 19, 2024
Advanced Vision and ImagingComputer Science21 citations
TL;DR

Depth Anything trains a foundation model for monocular depth estimation by scaling up unlabeled data with a self-training pipeline, strong perturbations, and semantic-prior guidance, achieving strong zero-shot generalization and competitive metric-depth when fine-tuned.

ABSTRACT

This work presents Depth Anything, a highly practical solution for robust monocular depth estimation. Without pursuing novel technical modules, we aim to build a simple yet powerful foundation model dealing with any images under any circumstances. To this end, we scale up the dataset by designing a data engine to collect and automatically annotate large-scale unlabeled data (~62M), which significantly enlarges the data coverage and thus is able to reduce the generalization error. We investigate two simple yet effective strategies that make data scaling-up promising. First, a more challenging optimization target is created by leveraging data augmentation tools. It compels the model to actively seek extra visual knowledge and acquire robust representations. Second, an auxiliary supervision is developed to enforce the model to inherit rich semantic priors from pre-trained encoders. We evaluate its zero-shot capabilities extensively, including six public datasets and randomly captured photos. It demonstrates impressive generalization ability. Further, through fine-tuning it with metric depth information from NYUv2 and KITTI, new SOTAs are set. Our better depth model also results in a better depth-conditioned ControlNet. Our models are released at https://github.com/LiheYoung/Depth-Anything.

Motivation & Objective

  • Demonstrate that large-scale unlabeled monocular images can substantially improve monocular depth estimation and generalization.
  • Develop a data engine to automatically annotate unlabeled images and enable scalable training.
  • Investigate training strategies that make use of unlabeled data without simple self-training gains.
  • Inherit semantic priors from pre-trained encoders to enhance depth interpretation and enable multi-task potential.
  • Show zero-shot depth and metric-depth performance across diverse datasets and assess robustness in challenging conditions.

Proposed method

  • Create a teacher–student framework where a teacher trained on labeled data generates pseudo-depth labels for unlabeled images.
  • Use strong perturbations (color distortions, Gaussian blur, CutMix) on unlabeled data to enforce a harder learning target for the student.
  • Adopt affine-invariant loss for labeled data to handle unknown depth scale/shift across datasets.
  • Incorporate a semantic-prior alignment loss by matching features between the depth model and a frozen DINOv2 encoder with a tolerance margin.
  • Initialize encoder with DINOv2 weights and use a DPT decoder for depth regression.
  • Train with a 1:2 ratio of labeled to pseudo-labeled data in each batch; re-initialize the student instead of fine-tuning the teacher.

Experimental results

Research questions

  • RQ1Can large-scale unlabeled monocular images significantly improve zero-shot monocular depth estimation across diverse unseen domains?
  • RQ2Does challenging the student with strong perturbations and incorporating semantic priors improve generalization and robustness compared to naïve self-training?
  • RQ3What is the impact of using semantic priors from a frozen encoder on depth estimation and downstream tasks like semantic segmentation?
  • RQ4How does Depth Anything perform in zero-shot and fine-tuned metric depth settings across standard benchmarks?
  • RQ5Can the learned encoder serve as a versatile multi-task representation for both middle- and high-level perception tasks?

Key findings

  • Depth Anything achieves strong zero-shot relative depth estimation across six unseen datasets, outperforming MiDaS v3.1 for several cases with ViT-L, ViT-B, and ViT-S encoders.
  • In zero-shot metric depth estimation, Depth Anything pre-trained encoders improve indoor and outdoor depth, often surpassing or matching prior methods like ZoeDepth when fine-tuned with metric depth information.
  • Fine-tuning the Depth Anything encoder for metric depth on NYUv2 and KITTI yields competitive or superior results (e.g., NYUv2: AbsRel 0.056, delta1 0.984; KITTI: AbsRel 0.046, delta1 0.982) compared to reported baselines.
  • The model’s pre-trained encoder transfers effectively to semantic segmentation, achieving higher mIoU on ADE20K and Cityscapes than several ImageNet-pretrained backbones.
  • The addition of the feature alignment loss with a DINOv2 encoder yields improved downstream performance in depth estimation and semantic segmentation, indicating meaningful semantic priors are being transferred.
  • Qualitative results show robustness across low-light, foggy, and ultra-remote scenes, and the approach enables depth-conditioned image synthesis using ControlNet.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.