Skip to main content
QUICK 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 Science被引用 21
一句话总结

Depth Anything 通过自训练管线、强扰动和语义先验引导,对单目深度估计的基础模型进行扩展,利用大量未标记数据,在零-shot 泛化上表现出色,并在微调时实现有竞争力的指标深度。

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.

研究动机与目标

  • 证明大规模未标记单目图像可以显著提升单目深度估计和泛化能力。
  • 开发一个数据引擎,自动标注未标记图像并实现可扩展的训练。
  • 研究在未标记数据上进行训练的策略,避免仅靠简单自训练带来收益。
  • 从预训练编码器继承语义先验,以提升深度理解并实现多任务潜力。
  • 展示在多样数据集上的零样本深度和指标深度性能,并评估在复杂条件下的鲁棒性。

提出的方法

  • 建立一个教师–学生框架,在标注数据上训练的教师为未标记图像生成伪深度标签。
  • 对未标记数据使用强扰动(颜色失真、高斯模糊、CutMix),以对学生施加强学习目标。
  • 对带标签数据采用仿射不变损失,以应对跨数据集的未知深度尺度/位移。
  • 通过在深度模型和冻结的 DINOv2 编码器之间匹配特征并设定容忍边界,加入语义先验对齐损失。
  • 用 DINOv2 权重初始化编码器,并使用 DPT 解码器进行深度回归。
  • 每个批次以 1:2 的标记数据与伪标记数据比例进行训练;重新初始化学生模型而非微调教师模型。

实验结果

研究问题

  • RQ1大规模未标记的单目图像能否在广泛的未见领域显著提升零-shot 单目深度估计?
  • RQ2通过对学生进行强扰动并引入语义先验,是否能相比朴素自训练提升泛化和鲁棒性?
  • RQ3从冻结编码器获得的语义先验对深度估计及下游任务(如语义分割)的影响是什么?
  • RQ4Depth Anything 在标准基准测试中的零-shot 与微调指标深度设置下的表现如何?
  • RQ5所学编码器能否作为一个多任务表征,适用于中高层感知任务?

主要发现

  • Depth Anything 在六个未见数据集上实现强劲的零-shot 相对深度估计,在使用 ViT-L、ViT-B、ViT-S 编码器的多个情形中优于 MiDaS v3.1。
  • 在零-shot 指标深度估计中,Depth Anything 预训练的编码器提升室内外深度,通常在使用指标深度信息微调时超过或匹配如 ZoeDepth 之类的先前方法。
  • 在 NYUv2 和 KITTI 上对 Depth Anything 编码器进行指标深度微调,得到与报道基线相比具有竞争力或更优的结果(例如 NYUv2: AbsRel 0.056, delta1 0.984;KITTI: AbsRel 0.046, delta1 0.982)。
  • 模型的预训练编码器有效迁移到语义分割,在 ADE20K 和 Cityscapes 上取得比若干 ImageNet 预训练骨干网更高的 mIoU。
  • 加入与 DINOv2 编码器的特征对齐损失在深度估计和语义分割的下游性能上带来提升,表明有意义的语义先验正在被传递。
  • 定性结果显示在低光、雾天和超远景中的鲁棒性,并且该方法通过 ControlNet 实现了深度条件图像合成。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。