# 单目深度估计

单目深度估计是一种计算机视觉方法，它从单张RGB图像预测逐像素的稠密深度图，通常使用在已知深度的图像上训练过的神经网络。它把一幅相机图像变成一幅距离图像，因此被用于机器人导航、自动驾驶、移动AR以及测距传感器过于昂贵、稀疏或作用距离太短的三维场景理解中。<sup>[1](https://ar5iv.labs.arxiv.org/html/2111.08600)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content_ICCV_2019/papers/Godard_Digging_Into_Self-Supervised_Monocular_Depth_Estimation_ICCV_2019_paper.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 输入 | 单张RGB图像；度量深度模型还需要相机内参或规范相机空间<sup>[3](https://arxiv.org/html/2307.10984)</sup> |
| 输出 | 逐像素稠密深度图，可以是相对的（尺度与平移不变）或度量的<sup>[3](https://arxiv.org/html/2307.10984)</sup> |
| 首个CNN方法 | 艾根、普尔施和弗格斯，2014年，一个带尺度不变误差的双尺度网络<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)</sup><sup> • </sup><sup>[5](https://openaccess.thecvf.com/content_ICCV_2019/papers/van_Dijk_How_Do_Neural_Networks_See_Depth_in_Single_Images_ICCV_2019_paper.pdf)</sup> |
| 自监督 | 由加格等人在2016年以及戈达尔、麦克奥达和布罗斯托采用左右一致性的monodepth（2016）引入，免除了对真值深度的需求<sup>[5](https://openaccess.thecvf.com/content_ICCV_2019/papers/van_Dijk_How_Do_Neural_Networks_See_Depth_in_Single_Images_ICCV_2019_paper.pdf)</sup><sup> • </sup><sup>[6](https://doi.org/10.48550/arxiv.1609.03677)</sup> |
| 基准精度（Depth Anything V2 ViT-G） | KITTI上AbsRel 0.075、\( \delta_{1} \) 0.948；NYU-D上AbsRel 0.044、δ1 0.979<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/26cfdcd8fe6fd75cc53e92963a656c58-Paper-Conference.pdf)</sup> |
| 模型规模 | 24.8M（小型）到1.3B（巨型）参数；默认推理输入尺寸518<sup>[8](http://github.com/DepthAnything/Depth-Anything-V2)</sup> |
| 主要失效模式 | 全局尺度歧义、反射表面、动态光照、域偏移<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)</sup><sup> • </sup><sup>[9](https://www.mdpi.com/2073-431X/14/11/502)</sup> |

## 工作原理

单目深度模型把一幅图像映射为每个像素的深度值。这一任务本质上是歧义的：给定一幅图像，可能有无限多种世界场景产生了它，因此该问题在技术上是不适定的。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)</sup> 网络以统计方式消解歧义，但有一种歧义在学习之后依然存在：全局尺度。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)</sup>

已发表的方法以三种方式处理这一残余歧义。相对深度模型预测的深度带有未知的尺度和平移，并用尺度与平移不变（仿射不变）损失训练，这类损失度量的是深度关系而非尺度；MiDaS框架将此类目标与多源训练相结合，获得了强大的跨域性能。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)</sup><sup> • </sup><sup>[10](https://arxiv.org/html/2401.10891)</sup><sup> • </sup><sup>[9](https://www.mdpi.com/2073-431X/14/11/502)</sup> 度量深度模型预测绝对距离，许多需要在相机内参相似的数据集上训练和测试，这可能限制跨相机的泛化；Metric3D通过规范相机空间变换来归一化不同的相机模型，从而解决这一问题，使得在来自数千种相机模型的800万张图像上稳定训练成为可能。<sup>[3](https://arxiv.org/html/2307.10984)</sup> 仿射不变模型介于两者之间，忽略各数据集的尺度和平移，同时保留场景结构。<sup>[10](https://arxiv.org/html/2401.10891)</sup>

## 实现方法

**监督训练。** 网络接收单张图像\( I \)和对应的真值深度图\( D^{*} \)，通过最小化衡量预测深度\( D \)与真值之间差异的损失函数\( L(D^{*}, D) \)来更新参数。<sup>[1](https://ar5iv.labs.arxiv.org/html/2111.08600)</sup> 收集大规模、多样化且具有精确真值深度的训练数据集本身就是一项艰巨挑战，这促使了下面这些替代方案的出现。<sup>[2](https://openaccess.thecvf.com/content_ICCV_2019/papers/Godard_Digging_Into_Self-Supervised_Monocular_Depth_Estimation_ICCV_2019_paper.pdf)</sup>

**自监督训练。** 该方案免除了对真实深度图的需求。<sup>[5](https://openaccess.thecvf.com/content_ICCV_2019/papers/van_Dijk_How_Do_Neural_Networks_See_Depth_in_Single_Images_ICCV_2019_paper.pdf)</sup> 戈达尔、麦克奥达和布罗斯托（2016，arXiv）的monodepth模型是全卷积的，不需要深度数据，学习预测具有已知相机基线的校正立体图像对之间的像素级对应关系，并将深度作为中间表示合成出来。<sup>[6](https://doi.org/10.48550/arxiv.1609.03677)</sup> 其后继monodepth2的参考PyTorch实现默认在KITTI标准Eigen划分的周氏子集上训练。<sup>[11](https://www.github.com/nianticlabs/monodepth2)</sup>

**大规模伪标签。** Depth Anything V1从SA-1B、Open Images和BDD100K等数据集中收集了6200万张未标注图像，由在150万张标注图像上训练的教师模型生成伪标签。<sup>[10](https://arxiv.org/html/2401.10891)</sup> Depth Anything V2将其精化为三个步骤：仅在高品质合成图像上训练一个基于DINOv2-G的教师模型，在大规模未标注真实图像上生成伪深度，然后在伪标注的真实图像上训练学生模型，并忽略伪标注样本中损失最大的前10%区域，视其为潜在噪声。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/26cfdcd8fe6fd75cc53e92963a656c58-Paper-Conference.pdf)</sup> 训练使用59.5万张合成图像和6200万张伪标注真实图像，采用尺度与平移不变损失\( \mathcal{L}_{ssi} \)和梯度匹配损失\( \mathcal{L}_{gm} \)，权重比为1:2，输入分辨率为518×518。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/26cfdcd8fe6fd75cc53e92963a656c58-Paper-Conference.pdf)</sup>

## 起源

基于学习的单目深度估计始于萨克塞纳课题组。该课题组由萨克塞纳、钟和吴（2005）提出的层次化多尺度马尔可夫随机场，融合了多尺度的局部与全局图像特征，并对深度及不同图像点之间深度的关系进行建模。<sup>[12](https://www.cs.cornell.edu/~asaxena/learningdepth/)</sup><sup> • </sup><sup>[13](https://ai.stanford.edu/~ang/papers/ijcv07-monocular3dreconstruction.pdf)</sup><sup> • </sup><sup>[5](https://openaccess.thecvf.com/content_ICCV_2019/papers/van_Dijk_How_Do_Neural_Networks_See_Depth_in_Single_Images_ICCV_2019_paper.pdf)</sup> 同一课题组的Make3D（萨克塞纳、孙和吴，2008）从单张静态图像预测深度。<sup>[14](https://www.cs.cornell.edu/~asaxena/reconstruction3d/Saxena_depthperception_aaai08.pdf)</sup>

2014年，艾根、普尔施和弗格斯在NIPS 2014上发表（同时有arXiv预印本），首次将CNN用于单目深度估计，采用两个深度网络栈，一个从整幅图像做出粗略的全局预测，另一个在局部精化预测，外加一个尺度不变误差；该方法在NYU Depth和KITTI上取得了当时的最佳结果。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)</sup><sup> • </sup><sup>[5](https://openaccess.thecvf.com/content_ICCV_2019/papers/van_Dijk_How_Do_Neural_Networks_See_Depth_in_Single_Images_ICCV_2019_paper.pdf)</sup> 刘及其同事的深度卷积神经场（IEEE TPAMI，2015）也研究了从单张单目图像学习深度的问题。<sup>[15](https://doi.org/10.1109/tpami.2015.2505283)</sup>

## 变体

**相对深度。** 后续工作将提出仿射不变损失的功劳归于MiDaS框架，该损失忽略不同数据集之间深度尺度和平移的差异，它从CNN架构演进到视觉Transformer架构，至今仍是零样本相对深度的参照点。<sup>[10](https://arxiv.org/html/2401.10891)</sup><sup> • </sup><sup>[9](https://www.mdpi.com/2073-431X/14/11/502)</sup> Depth Anything V2发布了四个学生模型，分别基于DINOv2的小型、基础型、大型和巨型编码器，参数量为24.8M、97.5M、335.3M和1.3B。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/26cfdcd8fe6fd75cc53e92963a656c58-Paper-Conference.pdf)</sup><sup> • </sup><sup>[8](http://github.com/DepthAnything/Depth-Anything-V2)</sup>

**度量深度。** ZoeDepth（巴特及其同事，2023，arXiv）将相对深度与度量深度结合以实现零样本迁移，综述文献将其标记为度量估计时代的开端。<sup>[16](https://doi.org/10.48550/arxiv.2302.12288)</sup><sup> • </sup><sup>[9](https://www.mdpi.com/2073-431X/14/11/502)</sup> Metric3D加入了上文所述的规范相机空间变换。<sup>[3](https://arxiv.org/html/2307.10984)</sup> Depth Anything V2为室内和室外场景提供了三种尺度的六个度量模型，在合成的Hypersim和Virtual KITTI数据上用简单的DPT头微调预训练编码器。<sup>[17](https://huggingface.co/depth-anything/Depth-Anything-V2-Metric-VKITTI-Base)</sup><sup> • </sup><sup>[8](http://github.com/DepthAnything/Depth-Anything-V2)</sup> UniDepthV2（皮奇内利及其同事，IEEE TPAMI，2025）致力于通用的单目度量深度。<sup>[18](https://doi.org/10.1109/tpami.2025.3628473)</sup>

**基于扩散与视频深度。** Marigold（柯及其同事，2023，arXiv）将基于扩散的图像生成器改用于单目深度估计。<sup>[19](https://doi.org/10.48550/arxiv.2312.02145)</sup> Video Depth Anything（陈及其同事，2025，arXiv）将一致的深度估计扩展到超长视频。<sup>[20](https://doi.org/10.48550/arxiv.2501.12375)</sup>

## 应用

在自动驾驶中，单目深度之所以有吸引力，是因为LiDAR只产生稀疏的深度图，因此从单张彩色图像获得稠密深度可以低成本地补充LiDAR，用于障碍物检测和导航。<sup>[1](https://ar5iv.labs.arxiv.org/html/2111.08600)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content_ICCV_2019/papers/Godard_Digging_Into_Self-Supervised_Monocular_Depth_Estimation_ICCV_2019_paper.pdf)</sup> 在机器人领域，度量深度输出缓解了单目SLAM的尺度漂移，使度量尺度的稠密建图和单图像计量成为可能。<sup>[3](https://arxiv.org/html/2307.10984)</sup> 由于神经网络直接从一幅图像预测深度，硬件成本下降，使得在移动AR和无人机导航中的轻量部署成为可能。<sup>[9](https://www.mdpi.com/2073-431X/14/11/502)</sup> 这一谱系由来已久：Make3D的一个简化版本按图像列而非按像素预测深度，曾被用于在自动驾驶小型汽车时避开障碍物。<sup>[14](https://www.cs.cornell.edu/~asaxena/reconstruction3d/Saxena_depthperception_aaai08.pdf)</sup>

## 局限与替代方案

**失效模式。** 除了单视图深度固有的全局尺度歧义之外，从相对估计到度量估计的转变还带来了域泛化、结构精度以及对真实世界视觉变化（如反射表面和动态光照）的鲁棒性等挑战。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)</sup><sup> • </sup><sup>[9](https://www.mdpi.com/2073-431X/14/11/502)</sup>

**传感器替代方案。** 主动传感器有其自身的局限：RGB-D相机测量范围有限，LiDAR和雷达覆盖稀疏，超声波本质上不精确，而且这些设备对小型机器人而言体积大、能耗高。<sup>[1](https://ar5iv.labs.arxiv.org/html/2111.08600)</sup> [立体匹配](https://www.edgepedia.org/zh/stereo-matching)比单目方法更精确，但需要复杂的对齐和标定，且其精度在远距离处会下降，因为深度受限于两个相机之间的基线。<sup>[1](https://ar5iv.labs.arxiv.org/html/2111.08600)</sup>

**多帧几何。** 运动恢复结构（Structure-from-Motion）和SLAM从多帧视差推断深度，间接方法最小化重投影误差，直接方法利用光度一致性；两者都对光照变化和纹理不一致敏感，而且在无纹理或低对比度环境中检测到的特征较少，因此大多数SfM方法产生稀疏深度图，不足以满足诸如自主飞行这类需要稠密深度的应用。<sup>[9](https://www.mdpi.com/2073-431X/14/11/502)</sup><sup> • </sup><sup>[1](https://ar5iv.labs.arxiv.org/html/2111.08600)</sup>

**2023年以来的精度。** 在零样本相对深度评估中，Depth Anything V2 ViT-G在KITTI上达到AbsRel 0.075和\( \delta_{1} \) 0.948，在NYU-D上达到AbsRel 0.044和\( \delta_{1} \) 0.979，而MiDaS V3.1 ViT-L分别为0.127/0.850和0.048/0.980；在细粒度深度基准上，V2模型得分为95.3–97.4%的准确率，相比之下Depth Anything V1为88.5%，Marigold为86.8%，Geowizard为88.1%，DepthFM为85.8%。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/26cfdcd8fe6fd75cc53e92963a656c58-Paper-Conference.pdf)</sup> 这些数字仍如所报告，但截至2026年，Depth Anything V2已不再是精度前沿：MD2E（CVPR 2026）和UniDepthV2等更新的方法在NYUv2和KITTI上报告了更低的AbsRel。<sup>[21](https://openaccess.thecvf.com/content/CVPR2026/papers/Ning_MD2E_Modeling_Depth-to-Edge_Cues_for_Monocular_Metric_Depth_Estimation_CVPR_2026_paper.pdf)</sup> 与2024年论文中评估的基于Stable Diffusion的方法相比，V2模型的速度快10倍以上且更准确。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2024/file/26cfdcd8fe6fd75cc53e92963a656c58-Paper-Conference.pdf)</sup>

## References

1. [Towards Real-Time Monocular Depth Estimation for Robotics: A Survey](https://ar5iv.labs.arxiv.org/html/2111.08600)
2. [Digging Into Self-Supervised Monocular Depth Estimation (Monodepth2, ICCV 2019)](https://openaccess.thecvf.com/content_ICCV_2019/papers/Godard_Digging_Into_Self-Supervised_Monocular_Depth_Estimation_ICCV_2019_paper.pdf)
3. [Metric3D: Towards Zero-shot Metric 3D Prediction from A Single Image](https://arxiv.org/html/2307.10984)
4. [Depth Map Prediction from a Single Image using a Multi-Scale Deep Network (Eigen, Puhrsch, Fergus, NIPS 2014)](https://proceedings.neurips.cc/paper_files/paper/2014/file/91c56ce4a249fae5419b90cba831e303-Paper.pdf)
5. [How Do Neural Networks See Depth in Single Images? (van Dijk et al., ICCV 2019)](https://openaccess.thecvf.com/content_ICCV_2019/papers/van_Dijk_How_Do_Neural_Networks_See_Depth_in_Single_Images_ICCV_2019_paper.pdf)
6. [Godard, Clément, Mac Aodha, Oisin, Brostow, Gabriel J. (2016). Unsupervised Monocular Depth Estimation with Left-Right Consistency. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1609.03677)
7. [Depth Anything V2 (NeurIPS 2024 proceedings version; merged excerpts from the arXiv HTML version, ACM DL record, and official project page)](https://proceedings.neurips.cc/paper_files/paper/2024/file/26cfdcd8fe6fd75cc53e92963a656c58-Paper-Conference.pdf)
8. [DepthAnything/Depth-Anything-V2 (official repository; merged fact from the metric_depth README)](http://github.com/DepthAnything/Depth-Anything-V2)
9. [Survey on Monocular Metric Depth Estimation (MDPI Computers, 2025; merged excerpts from the arXiv 2501.11841 mirror)](https://www.mdpi.com/2073-431X/14/11/502)
10. [Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data](https://arxiv.org/html/2401.10891)
11. [nianticlabs/monodepth2 (reference PyTorch implementation)](https://www.github.com/nianticlabs/monodepth2)
12. [Learning Depth from Single Monocular Images (Saxena et al., project page / NIPS 2005)](https://www.cs.cornell.edu/~asaxena/learningdepth/)
13. [3-D Depth Reconstruction from a Single Still Image (Saxena, Schulte, Ng, IJCV 2007)](https://ai.stanford.edu/~ang/papers/ijcv07-monocular3dreconstruction.pdf)
14. [Make3D: Depth Perception from a Single Still Image (Saxena, Sun, Ng, AAAI 2008)](https://www.cs.cornell.edu/~asaxena/reconstruction3d/Saxena_depthperception_aaai08.pdf)
15. [Fayao Liu and colleagues (2015). Learning Depth from Single Monocular Images Using Deep Convolutional Neural Fields. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.2015.2505283)
16. [Bhat, Shariq Farooq and colleagues (2023). ZoeDepth: Zero-shot Transfer by Combining Relative and Metric Depth. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2302.12288)
17. [depth-anything/Depth-Anything-V2-Metric-VKITTI-Base (Hugging Face model card)](https://huggingface.co/depth-anything/Depth-Anything-V2-Metric-VKITTI-Base)
18. [Luigi Piccinelli and colleagues (2025). UniDepthV2: Universal Monocular Metric Depth Estimation Made Simpler. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.2025.3628473)
19. [Ke, Bingxin and colleagues (2023). Repurposing Diffusion-Based Image Generators for Monocular Depth Estimation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2312.02145)
20. [Chen, Sili and colleagues (2025). Video Depth Anything: Consistent Depth Estimation for Super-Long Videos. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2501.12375)
21. [MD2E: Modeling Depth-to-Edge Cues for Monocular Metric Depth Estimation](https://openaccess.thecvf.com/content/CVPR2026/papers/Ning_MD2E_Modeling_Depth-to-Edge_Cues_for_Monocular_Metric_Depth_Estimation_CVPR_2026_paper.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision methods and geometry › 3D reconstruction and structure from motion

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/monocular-depth-estimation

English original: https://www.edgepedia.org/monocular-depth-estimation
