Depth Anything V2

This work presents Depth Anything V2. Without pursuing fancy techniques, we aim to reveal crucial findings to pave the way towards building a powerful monocular depth estimation model. Notably, compared with V1, this version produces much finer and more robust depth predictions through three key practices: 1) replacing all labeled real images with synthetic images, 2) scaling up the capacity of our teacher model, and 3) teaching student models via the bridge of large-scale pseudo-labeled real images. Compared with the latest models built on Stable Diffusion, our models are significantly more efficient (more than 10x faster) and more accurate. We offer models of different scales (ranging from 25M to 1.3B params) to support extensive scenarios. Benefiting from their strong generalization capability, we fine-tune them with metric depth labels to obtain our metric depth models. In addition to our models, considering the limited diversity and frequent noise in current test sets, we construct a versatile evaluation benchmark with precise annotations and diverse scenes to facilitate future research.

Paper

References (100)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer Bw2h5/10 · confidence 4/52024-07-07

Summary

The paper tries to answer two important questions in current monocular depth estimation: 1. whether generative-based models can generate more fine-grained depth than discriminative models. 2. The effectiveness of synthetic data and large-scale pseudo data. The results show that discriminative models can also generate fine-grained depth estimation when trained with synthetic data and gradient matching loss. The paper provides several depth estimation models with different sizes, which may promote various downstream applications.

Strengths

1. The paper proposes to enhance the performance of the existing discriminative depth estimation model, DepthAnything, with synthetic datasets and large-scale pseudo labels, which is simple yet effective. 2. The experiments are extensive and the writing is good.

Weaknesses

1. How do you define the fine-grained depth quantitatively? There seem to be no concrete metrics to evaluate it, except qualitative visualization in the paper. So it is still hard to fairly compare the fine-grained depth with the generative-based models. 2. The pseudo label can only be relative depth, which may not be effectively directly used for metric depth estimation. 3. There are no dataset ablation experiments to verify the necessity of using the total 62M pseudo labels in the paper. If one random samples a subset from the pseudo-labeled real images, e.g. sample 10% data from all the 8 real datasets, what is the performance of the student model? Whether the 62M data is redundant or not?

Questions

1. What does "+unlabeled real image" mean in Figure 6? 2. What is the backbone in Table 11? 3. In Section C.10, the authors find that synthetic data is important for fine-grained predictions, I am curious about the differences in quantitative results when training the teacher model with and without real labeled images. 4. Can 62M pseudo labels improve the performance of the teacher model (ViT-Giant backbone)? 5. For metric depth estimation, the authors fine-tuned the model from pre-trained relative depth estimation, what is the performance when fine-tuning the model from the original DINOv2 pre-trained backbone? (e.g. using the same ViT-large backbone with different weight initialization) 6. What is the performance of the proposed metric depth estimation model compared to recent SOTA models, e.g. Unidepth and Metric3Dv2?

Rating

5

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

see weakness and questions

Authorsrebuttal2024-08-12

Thanks for further response and the implementation of gradient matching loss

Thank you for acknowledging our better performance on the relative depth metrics. Regarding the gradient matching loss, it was originally proposed by MiDaS. We have provided its formulations in the one-page PDF. And our implementation is adopted from MiDaS, which can be found here: https://gist.github.com/dvdhfnr/732c26b61a0e63a0abc8a5d769dbebd0#file-midas_loss-py-L93-L113. The groundtruth label in this gradient matching function is in the disparity space, via inversing the depth label (*i.e.*, 1 / depth) and re-normalizing it to 0-1 with min-max value.

Authorsrebuttal2024-08-13

Dear Reviewer Bw2h, as the author-reviewer rebuttal deadline approaches, we want to follow up on our recent response to your additional question regarding our gradient matching loss. We’ve provided the [source code](https://gist.github.com/dvdhfnr/732c26b61a0e63a0abc8a5d769dbebd0#file-midas_loss-py-L93-L113) and explanations above for the detailed implementation of this loss. If you have any further comments or need additional clarification, we would be more than happy to assist. If our response has satisfactorily addressed your concerns, we kindly ask if you might consider revisiting your initial score. Thank you for your precious time and consideration.

Reviewer fDqs7/10 · confidence 4/52024-07-09

Summary

Depth Anything V2 is an advanced monocular depth estimation model that improves upon its predecessor by utilizing synthetic images, enhancing the teacher model's capacity, and leveraging large-scale pseudo-labeled real images for training. This approach results in significantly faster and more accurate depth predictions compared to models based on Stable Diffusion. This model also offers a range of model sizes to support various applications and demonstrates strong generalization capabilities, which are further fine-tuned with metric depth labels. Additionally, a versatile evaluation benchmark, DA-2K, has been developed to address the limited diversity and noise in current test sets, facilitating more accurate future research.

Strengths

The paper offers several noteworthy advantages. Firstly, it provides a comprehensive analysis of recent depth foundation models, detailing their features, strengths, and weaknesses. The comparison between generative and discriminative models in Table 1 is particularly insightful. Secondly, the approach is novel, utilizing pseudo-labeled real images to harness the advantages of both synthetic and real datasets. This method is impressive and appears beneficial for scaling up foundation models, similar to SAM. Thirdly, the paper demonstrates strong generalization performance, as evidenced by various tables and figures. The real-time performance showcased in the CVPR conference demo was particularly impressive. Lastly, the extensive additional experiments and analyses in the appendix offer valuable insights, supporting the validity of the proposed methods and experimental protocols.

Weaknesses

Data Volume and Performance Relationship: According to Table 10, there seems to be a linear relationship between the amount of data and performance. It would be interesting to see how the model performs with even more data added. Metric Depth Estimation Comparison: Table 4 shows that the results of Metric Depth Estimation are similar to or worse than other Monocular Depth Estimation models (UniDepth[1], Metric 3D[2]). Additional analysis on this would be beneficial. ##### [1] UniDepth: Universal Monocular Metric Depth Estimation ##### [2] Metric3D v2: A Versatile Monocular Geometric Foundation Model for Zero-shot Metric Depth and Surface Normal Estimation

Questions

These points are included in the Weakness.

Rating

7

Confidence

4

Soundness

4

Presentation

4

Contribution

3

Limitations

The limitations of Depth Anything V2 include a dependency on data volume for performance, as suggested by Table 10, which raises questions about scalability and diminishing returns with more data. Additionally, Table 4 shows that its Metric Depth Estimation results are comparable to or worse than other models like UniDepth and Metric 3D v2, indicating that while the model excels in some areas, it does not consistently outperform competitors across all metrics.

Reviewer RjZq6/10 · confidence 5/52024-07-11

Summary

The authors introduce Depth Anything V2, a powerful monocular depth estimation model. This model relies entirely on synthetic data to train a teacher depth estimation model, which is then used to generate pseudo-labeled real images. These pseudo-labeled images are subsequently fed into the training pipeline. Depth Anything V2 achieves state-of-the-art results in both quantitative and qualitative evaluations. Additionally, the authors offer models in various scales, accommodating different scenarios. To address the limitations of existing monocular depth estimation benchmarks, the authors also provide a new benchmark with precise annotations and diverse scenes, facilitating future research. However, compared to depth anythingv1 and other affine-invariant depth methods, the novelty is limited.

Strengths

1. The authors dedicate considerable space to discussing the choice of datasets, highlighting the disadvantages of labeled data, the advantages and limitations of synthetic images, and the role of large-scale unlabeled real images. This provides a clear rationale for the proposed pipeline. 2. A new benchmark is introduced to address the limitations of existing benchmarks. This benchmark encompasses a wide variety of scenarios and includes comprehensive, high-resolution depth estimation results. 3. The results are impressive. The method demonstrates significant improvements in zero-shot relative depth estimation, particularly on the proposed DA-2K benchmark. The qualitative results also reveal the fine-grained detail of the predictions.

Weaknesses

1. Lack of Novelty: The article primarily focuses on analyzing the choice between synthetic and real data, while the pipeline remains unchanged compared to the original Depth Anything V1. V2 used more high-quality data to achieve better performance, but it has no new methods contributions and insights. 2. Lack of Detail: Although some methods may be well-known within the community, it would be beneficial for the authors to elaborate more on the description of the pipeline and the formulation of the loss function. 3. More Comparisons Required: In Table 2, the authors argue that the method predicts affine-invariant inverse depth and compares it with Depth Anything V1 and MiDaS V3.1. MiDaS is not an up-to-date SOTA method. It should enclose more recent works, such as UniDepth, ZoeDepth, Marigold, Metric3D, and Metric3Dv2. Similarly, in Table 4, which compares metric depth methods, Unidepth, and metric3dv2 achieve state-of-the-art performance in these two benchmarks, but they are not listed in tables.

Questions

1. Why can the proposed method be compared with other methods on the proposed dataset, but not on other zero-shot relative depth estimation datasets? 2. The performance of the pipeline seems to be limited by the performance of the teacher model, as the training data for the student models is provided by the teacher model. Why, then, do some student models outperform the teacher model in Table 5?

Rating

6

Confidence

5

Soundness

3

Presentation

3

Contribution

2

Limitations

The paper does not present limitations in detail.

Reviewer RjZq2024-08-10

Comment

Thanks for the authors' detailed reply. Most of my concerns have been solved. However, in Q3, I sill believe the papaer should includ more methods for comparisons. Firstly, affine-invariant (or relative depth present in your answer) is defined as the scale-shift invariant to the metric depth. All downstream applications are in depth space, such as recovering the 3D point cloud. Although some methods train their model in the inverse space, the result should be in the depth space instead of inverse depth space. Thus in comparisons, the paper should not exclude methods, such as marigold, geowizard, leres, and others, that output the affine-invariant depth, but only choose MiDaS. There are more advanced methods. Furthermore, recent metric depth methods, such as zoedepth, zerodepth, metric3D also present affine-invariant depth comparisons. I believe this comparison decouples the metric and can better present the geometry quality of the depth. The paper can consider include them for comparison. Affine-invariant (or relative depth) is only a compromise representation, as the metric depth prediction is very ill-posed.

Authorsrebuttal2024-08-12

Thank you for acknowledging our feedback and raising the score

Thank you for acknowledging our further feedback and raising the score to 6. We will include your constructive feedback into our final version. Thank you!

Authorsrebuttal2024-08-10

Thank you for futher feedback

Thank you for your kind suggestions regarding the methods we compared. We agree with your recommendations and will ensure that all mentioned methods, including both affine-invariant and metric depth estimation, are included in our final verison. The only exception is ZoeDepth, since it is trained exclusively on NYU-D and KITTI, which cannot be considered *zero-shot* depth estimation (to NYU-D or KITTI) as ours and other methods you mentioned. But our fine-tuned metric depth models significantly outperform ZoeDepth in metric depth estimation. Briefly comparing our method with other methods (some results are borrowed from Metric3D): on NYU-D: DiverseDepth achieves the $\delta_1$ score of 87.5%, LeReS is 91.6%, HDN is 94.8%, ZeroDepth is 92.6%, Metric3D is 96.6%, Marigold is 96.4%, Geowizard is 96.6%, while ours is **98.0%**. We acknowledge that there are differences in the training settings among these methods, particularly in terms of the coverage of training data and model architecture. In the final version, we will also make an effort to highlight these differences to better showcase the strengths of each method from various perspectives. Thank you again for your valuable advice.

Reviewer rTF87/10 · confidence 5/52024-07-15

Summary

A system is proposed for scaling up large monodepth estimation models to achieve very strong zero-shot performance, focusing on finely detailed depth prediction. Essentially, a teacher model is trained on synthetic depth datasets with perfect ground truth, and thereafter distilled on a large in-the-wild dataset.

Strengths

* The qualitative results are really stunning. * The distillation-based framework is novel (as far as I know), and provides a valuable insight into the training of depth estimators more generally.

Weaknesses

* It would be ideal to show the results back-projected into 3D as a point cloud or mesh for some example cases. It is difficult to tell the depth map quality from colormaps alone. * The comparison with MIDAS feels like it leaves out an important limitation of the proposed the method. The proposed high-quality synthetic datasets appear to consist mostly of indoor and outdoor scenes. How will the technique stack up against MIDAS for unusual images that are not likely to be well-represented in such synthetic data, but may be available in 3D movies, such as of moving animals or people? Does the distillation on in-the-wild images just solve this problem? * The paper appears to sort of conflate image-conditioned generation and regression, which are different problems even for image-conditional depth estimation. While "blurry" depth maps may be suboptimal for users looking for perceptual quality and seeking to back-project a 3D pointcloud or mesh, they may be in some sense metrically optimal since even scale and shift-invariant depth estimation is often ambiguous. Making predictions "fine-grained" could just be a problem of learning to sample from the distribution of image-conditioned depth, rather than heuristically applying losses such as gradient-based matching losses to a regression-based framework which is inherently a flawed way to look at the problem of perceptually high quality depth estimation.

Questions

The performance on scenes which are not among the original synthetic data (animals, people, etc.) is unusually impressive. I understand that distillation is the proposed explanation, but can the authors provide a clear intuition or explanation for why this works so well?

Rating

7

Confidence

5

Soundness

4

Presentation

4

Contribution

4

Limitations

The computational limitations are briefly mentioned.

Reviewer Bw2h2024-08-11

Thanks for your feedback

Thank you for the feedback. Similar to Reviewer RjZq, could you provide a more detailed evaluation comparing the relative depth metrics of existing metric depth models, such as Metric3D, Metric3D v2, and Uni-Depth, against challenging indoor and outdoor benchmarks? Specifically, NYU-D is known for having noisy labels, which raises a concern. It appears that metric depth models trained on large real-world datasets may already exhibit strong generalization performance across diverse scenes, suggesting that pseudo-labeling might not be essential. Consequently, the main benefit of the pseudo-labeling approach proposed in this paper seems to be in achieving more detailed relative depth maps and cannot be applied to improve metric depth estimation directly since pseudo-labels lack scale information.

Authorsrebuttal2024-08-11

Thank you for further feedback

To verify the relative-depth generalization ability of existing metric depth models, we have evaluated UniDepth and Metric3D (v1 & v2) on our proposed challenging and precise DA-2K benchmark, which encompasses eight diverse scenarios (*e.g.*, indoor, outdoor, adverse style, see Figure 9(b) for details). Results are summarized below. | Method | Indoor | Outdoor | Average of 8 scenarios | | :---- | :----: | :----: | :----: | | UniDepth | 80.4 | 84.2 | 83.1 | | Metric3Dv1 | 83.5 | 86.8 | 83.7 | | Metric3Dv2 | 85.7 | 88.1 | 86.2 | | **Depth Anything V2 (Ours)**| **89.8** | **95.1** | **94.8** | Moreover, in Table D.1 of our appendix, we have demonstrated the indispensable role of large-scale unlabeled images. Part of the results are borrowed here: | Using unlabeled data? | Indoor | Outdoor | Average of 8 scenarios | | :---- | :----: | :----: | :----: | | No | 85.3 | 92.9 | 91.4 | | **Yes** | **89.8 (+4.5)** | **95.1 (+2.2)** | **94.8 (+3.4)** |

Reviewer Bw2h2024-08-12

Thanks for authors feedback

The results indicate that DepthAnythingV2 outperforms metric depth models on relative metrics. I have an additional question: could you provide a more detailed explanation of how the gradient matching loss is implemented in disparity space?

Reviewer fDqs2024-08-12

My questions have been fully addressed, and I am satisfied with the response. I would like to express my gratitude to the authors for their thorough and thoughtful answers. I will maintain the decision to accept.

Reviewer rTF82024-08-13

Thanks for the response. It would be nice to add some of the discussion in Q2, and regarding the gradient matching loss, to the main paper.

Authorsrebuttal2024-08-13

Thanks for your valuable advice! We will ensure the discussion in Q2 and the discussion on the gradient matching loss are included in our final version. Thank you.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC