Digging Into Self-Supervised Monocular Depth Estimation | AGIDaily
AGI Daily
资讯日报词条论文人物新创
返回论文列表
1. 引言2. 相关工作2.1. 有监督的深度估计2.2. 自监督深度估计3. 方法3.1. 自监督训练3.2. 改进的自监督深度估计3.3. 其他考虑4. 实验4.1. KITTI Eigen 划分4.1.1 KITTI 消融实验4.2. 其他数据集5. 结论致谢参考文献
返回论文列表
目录

Digging Into Self-Supervised Monocular Depth Estimation

收录于 ICCV 2019 会议论文被引 3,325 次
打开论文来源

Digging Into Self-Supervised Monocular Depth Estimation

Clément Godard1  Oisin Mac Aodha2  Michael Firman3  Gabriel Brostow3,1

1UCL  2Caltech  3Niantic

www.github.com/nianticlabs/monodepth2

Abstract

摘要

Per-pixel ground-truth depth data is challenging to acquire at scale. To overcome this limitation, self-supervised learning has emerged as a promising alternative for training models to perform monocular depth estimation. In this paper, we propose a set of improvements, which together result in both quantitatively and qualitatively improved depth maps compared to competing self-supervised methods.

逐像素的深度真值很难大规模采集。为克服这一限制,自监督学习成为一种有前景的替代方案,可用来训练单目深度估计模型。本文提出一组改进,合在一起后,得到的深度图在定量指标和观感上都优于当时其他自监督方法。

Research on self-supervised monocular training usually explores increasingly complex architectures, loss functions, and image formation models, all of which have recently helped to close the gap with fully-supervised methods. We show that a surprisingly simple model, and associated design choices, lead to superior predictions. In particular, we propose (i) a minimum reprojection loss, designed to robustly handle occlusions, (ii) a full-resolution multi-scale sampling method that reduces visual artifacts, and (iii) an auto-masking loss to ignore training pixels that violate camera motion assumptions. We demonstrate the effectiveness of each component in isolation, and show high quality, state-of-the-art results on the KITTI benchmark.

自监督单目训练的研究通常会把网络结构、损失函数和成像模型做得越来越复杂,这些努力最近也确实缩小了与全监督方法的差距。我们表明,一个相当简单的模型,再配上相应的设计选择,就能得到更好的预测。具体来说,我们提出:(i) 最小重投影损失,用来稳健地处理遮挡;(ii) 全分辨率多尺度采样方法,用以减轻视觉伪影;(iii) 自动掩码损失,用来忽略违反相机运动假设的训练像素。我们分别验证了每一项的作用,并在 KITTI 基准上给出了高质量、当时最好的结果。

1. Introduction

1. 引言

We seek to automatically infer a dense depth image from a single color input image. Estimating absolute, or even relative depth, seems ill-posed without a second input image to enable triangulation. Yet, humans learn from navigating and interacting in the real-world, enabling us to hypothesize plausible depth estimates for novel scenes [18].

我们希望从单张彩色输入图像自动推断出稠密深度图。没有第二张图来做三角测量时,估计绝对深度甚至相对深度,看起来都是不适定的。但人可以通过在真实世界中行走和交互来学习,从而为新场景假设出合理的深度估计 [18]。

Generating high quality depth-from-color is attractive because it could inexpensively complement LIDAR sensors used in self-driving cars, and enable new single-photo applications such as image-editing and AR-compositing. Solving for depth is also a powerful way to use large unlabeled image datasets for the pretraining of deep networks for downstream discriminative tasks [23]. However, collecting large and varied training datasets with accurate ground truth depth for supervised learning [55, 9] is itself a formidable challenge. As an alternative, several recent self-supervised approaches have shown that it is instead possible to train monocular depth estimation models using only synchronized stereo pairs [12, 15] or monocular video [76].

从彩色图得到高质量深度很有吸引力:它可以低成本地补足自动驾驶车上的激光雷达,也能支撑修图、增强现实合成这类单张照片应用。求解深度,还是利用大规模无标注图像数据、为下游判别任务预训练深度网络的一种有力方式 [23]。不过,为监督学习收集规模大、场景多样且带精确深度真值的训练集本身就很困难 [55, 9]。作为一种替代,若干近期的自监督方法表明,只靠同步立体对 [12, 15] 或单目视频 [76],也可以训练单目深度估计模型。

Monodepth2 and competing self-supervised models predict depth from a single street scene image

Figure 1. Depth from a single image. Our self-supervised model, Monodepth2, produces sharp, high quality depth maps, whether trained with monocular (M), stereo (S), or joint (MS) supervision.

图 1. 从单张图像估计深度。我们的自监督模型 Monodepth2 无论用单目(M)、立体(S)还是二者联合(MS)监督训练,都能产生清晰、质量较高的深度图。

Among the two self-supervised approaches, monocular video is an attractive alternative to stereo-based supervision, but it introduces its own set of challenges. In addition to estimating depth, the model also needs to estimate the ego-motion between temporal image pairs during training. This typically involves training a pose estimation network that takes a finite sequence of frames as input, and outputs the corresponding camera transformations. Conversely, using stereo data for training makes the camera-pose estimation a one-time offline calibration, but can cause issues related to occlusion and texture-copy artifacts [15].

在这两种自监督途径中,单目视频是立体监督之外很有吸引力的选择,但它也带来了自己的一组困难。除了估计深度,模型在训练时还需要估计时间相邻图像对之间的自我运动。这通常要再训练一个位姿估计网络:输入一段有限帧序列,输出相应的相机变换。反过来,用立体数据训练时,相机位姿估计可以一次离线标定完成,但又会遇到遮挡和纹理拷贝伪影一类问题 [15]。

We propose three architectural and loss innovations that combined, lead to large improvements in monocular depth estimation when training with monocular video, stereo pairs, or both: (1) A novel appearance matching loss to address the problem of occluded pixels that occur when using monocular supervision. (2) A novel and simple auto-masking approach to ignore pixels where no relative camera motion is observed in monocular training. (3) A multi-scale appearance matching loss that performs all image sampling at the input resolution, leading to a reduction in depth artifacts. Together, these contributions yield state-of-the-art monocular and stereo self-supervised depth estimation results on the KITTI dataset [13], and simplify many components found in the existing top performing models.

我们提出三项结构和损失上的改进,合在一起后,无论用单目视频、立体对还是二者同时训练,都能显著提升单目深度估计:(1) 一种新的外观匹配损失,用来处理单目监督中出现的遮挡像素。(2) 一种简单的新自动掩码方法,在单目训练中忽略观察不到相对相机运动的像素。(3) 一种多尺度外观匹配损失,全部图像采样都在输入分辨率上进行,从而减轻深度伪影。这些贡献合在一起,在 KITTI 数据集 [13] 上取得了当时最好的单目和立体自监督深度估计结果,并简化了现有顶尖模型中的许多组件。

Comparison of monocular methods on a moving car, where Monodepth2 recovers the object depth

Figure 2. Moving objects. Monocular methods can fail to predict depth for objects that were often observed to be in motion during training e.g. moving cars – including methods which explicitly model motion [71, 38, 51]. Our method succeeds here where others, and our baseline with our contributions turned off, fail.

图 2. 运动物体。单目方法常常无法为训练中经常处于运动状态的物体(例如行驶中的汽车)预测深度,包括那些显式建模运动的方法 [71, 38, 51]。在这些地方,其他方法以及关掉我们各项改进后的基线都会失败,而我们的方法能够成功。

2. Related Work

2. 相关工作

We review models that, at test time, take a single color image as input and predict the depth of each pixel as output.

我们回顾一类模型:测试时以单张彩色图像为输入,输出每个像素的深度。

2.1. Supervised Depth Estimation

2.1. 有监督的深度估计

Estimating depth from a single image is an inherently ill-posed problem as the same input image can project to multiple plausible depths. To address this, learning based methods have shown themselves capable of fitting predictive models that exploit the relationship between color images and their corresponding depth. Various approaches, such as combining local predictions [19, 55], non-parametric scene sampling [24], through to end-to-end supervised learning [9, 31, 10] have been explored. Learning based algorithms are also among some of the best performing for stereo estimation [72, 42, 60, 25] and optical flow [20, 63].

从单张图像估计深度本质上是不适定的,因为同一张输入图可以对应多种合理的深度。为应对这一点,基于学习的方法已经表明,它们能够拟合出利用彩色图像与对应深度之间关系的预测模型。人们探索过多种途径,包括组合局部预测 [19, 55]、非参数场景采样 [24],一直到端到端监督学习 [9, 31, 10]。在立体估计 [72, 42, 60, 25] 和光流 [20, 63] 中,基于学习的算法同样属于表现最好的一类。

Many of the above methods are fully supervised, requiring ground truth depth during training. However, this is challenging to acquire in varied real-world settings. As a result, there is a growing body of work that exploits weakly supervised training data, e.g. in the form of known object sizes [66], sparse ordinal depths [77, 6], supervised appearance matching terms [72, 73], or unpaired synthetic depth data [45, 2, 16, 78], all while still requiring the collection of additional depth or other annotations. Synthetic training data is an alternative [41], but it is not trivial to generate large amounts of synthetic data containing varied real-world appearance and motion. Recent work has shown that conventional structure-from-motion (SfM) pipelines can generate sparse training signal for both camera pose and depth [35, 28, 68], where SfM is typically run as a pre-processing step decoupled from learning. Recently, [65] built upon our model by incorporating noisy depth hints from traditional stereo algorithms, improving depth predictions.

上述许多方法都是全监督的,训练时需要深度真值。但在多样的真实场景中,这类真值并不容易获得。于是,越来越多的工作转而利用弱监督训练数据,例如已知物体尺寸 [66]、稀疏的序数深度 [77, 6]、有监督的外观匹配项 [72, 73],或未配对的合成深度数据 [45, 2, 16, 78],不过仍然需要额外采集深度或其他标注。合成训练数据是另一条路 [41],但要生成大量包含多样真实外观和运动的合成数据并不轻松。近期工作表明,传统的运动恢复结构(SfM)流程可以为相机位姿和深度提供稀疏训练信号 [35, 28, 68],其中 SfM 通常作为与学习解耦的预处理步骤来运行。最近,[65] 在我们的模型之上,加入了来自传统立体算法的带噪深度提示,从而改进了深度预测。

2.2. Self-supervised Depth Estimation

2.2. 自监督深度估计

In the absence of ground truth depth, one alternative is to train depth estimation models using image reconstruction as the supervisory signal. Here, the model is given a set of images as input, either in the form of stereo pairs or monocular sequences. By hallucinating the depth for a given image and projecting it into nearby views, the model is trained by minimizing the image reconstruction error.

在没有深度真值时,一条替代路径是用图像重建作为监督信号来训练深度估计模型。这时,模型的输入是一组图像,可以是立体对,也可以是单目序列。模型为给定图像“想象”出深度,再把它投影到邻近视图中,并通过最小化图像重建误差来训练。

Self-supervised Stereo Training

自监督立体训练

One form of self-supervision comes from stereo pairs. Here, synchronized stereo pairs are available during training, and by predicting the pixel disparities between the pair, a deep network can be trained to perform monocular depth estimation at test time. [67] proposed such a model with discretized depth for the problem of novel view synthesis. [12] extended this approach by predicting continuous disparity values, and [15] produced results superior to contemporary supervised methods by including a left-right depth consistency term. Stereo-based approaches have been extended with semi-supervised data [30, 39], generative adversarial networks [1, 48], additional consistency [50], temporal information [33, 73, 3], and for real-time use [49].

自监督的一种来源是立体对。训练时可以使用同步立体对,通过预测两幅图之间的像素视差,深度网络就能在测试时做单目深度估计。[67] 针对新视角合成,提出了使用离散深度的这类模型。[12] 把它扩展为预测连续视差值,[15] 则加入左右深度一致性项,得到了优于当时有监督方法的结果。基于立体的方法还被扩展到半监督数据 [30, 39]、生成对抗网络 [1, 48]、额外的一致性 [50]、时间信息 [33, 73, 3],以及实时应用 [49]。

In this work, we show that with careful choices regarding appearance losses and image resolution, we can reach the performance of stereo training using only monocular training. Further, one of our contributions carries over to stereo training, resulting in increased performance there too.

在本文中,我们表明:只要在外观损失和图像分辨率上做仔细选择,仅用单目训练也能达到立体训练的水平。此外,我们的一项改进也可以用到立体训练中,并在那里同样带来性能提升。

Self-supervised Monocular Training

自监督单目训练

A less constrained form of self-supervision is to use monocular videos, where consecutive temporal frames provide the training signal. Here, in addition to predicting depth, the network has to also estimate the camera pose between frames, which is challenging in the presence of object motion. This estimated camera pose is only needed during training to help constrain the depth estimation network.

约束更少的一种自监督,是使用单目视频,由时间上相邻的帧提供训练信号。这时,网络除了预测深度,还要估计帧间的相机位姿;在存在物体运动时,这一点并不容易。估计出的相机位姿只在训练时需要,用来约束深度估计网络。

In one of the first monocular self-supervised approaches, [76] trained a depth estimation network along with a separate pose network. To deal with non-rigid scene motion, an additional motion explanation mask allowed the model to ignore specific regions that violated the rigid scene assumption. However, later iterations of their model available online disabled this term, achieving superior performance. Inspired by [4], [61] proposed a more sophisticated motion model using multiple motion masks. However, this was not fully evaluated, making it difficult to understand its utility. [71] also decomposed motion into rigid and non-rigid components, using depth and optical flow to explain object motion. This improved the flow estimation, but they reported no improvement when jointly training for flow and depth estimation. In the context of optical flow estimation, [22] showed that it helps to explicitly model occlusion.

在最早的单目自监督方法之一中,[76] 同时训练深度估计网络和单独的位姿网络。为处理场景中的非刚性运动,他们还加了一个运动解释掩码,让模型可以忽略违反刚性场景假设的特定区域。不过,他们后来放在网上的模型版本关掉了这一项,反而取得了更好的结果。受 [4] 启发,[61] 提出了使用多个运动掩码的更复杂运动模型。但这项设计没有得到充分评估,因而很难判断它的实际用处。[71] 也把运动分解成刚性和非刚性部分,用深度和光流来解释物体运动。这改进了光流估计,但他们报告说,联合训练光流和深度时并没有带来提升。在光流估计中,[22] 表明显式建模遮挡是有帮助的。

Recent approaches have begun to close the performance gap between monocular and stereo-based self-supervision. [70] constrained the predicted depth to be consistent with predicted surface normals, and [69] enforced edge consistency. [40] proposed an approximate geometry based matching loss to encourage temporal depth consistency. [62] use a depth normalization layer to overcome the preference for smaller depth values that arises from the commonly used depth smoothness term from [15]. [5] make use of pre-computed instance segmentation masks for known categories to help deal with moving objects.

近期方法已经开始缩小单目自监督与基于立体的自监督之间的性能差距。[70] 约束预测深度与预测表面法向保持一致,[69] 则施加边缘一致性。[40] 提出了一种基于近似几何的匹配损失,以鼓励时间上的深度一致性。[62] 使用深度归一化层,来克服 [15] 中常用深度平滑项所带来的、偏向较小深度值的问题。[5] 利用预先计算好的已知类别实例分割掩码,来帮助处理运动物体。

Appearance Based Losses

基于外观的损失

Self-supervised training typically relies on making assumptions about the appearance (i.e. brightness constancy) and material properties (e.g. Lambertian) of object surfaces between frames. [15] showed that the inclusion of a local structure based appearance loss [64] significantly improved depth estimation performance compared to simple pairwise pixel differences [67, 12, 76]. [28] extended this approach to include an error fitting term, and [43] explored combining it with an adversarial based loss to encourage realistic looking synthesized images. Finally, inspired by [72], [73] use ground truth depth to train an appearance matching term.

自监督训练通常依赖于对帧间物体表面外观(即亮度恒常)和材质属性(例如朗伯体)的假设。[15] 表明,加入基于局部结构的外观损失 [64],相比简单的成对像素差 [67, 12, 76],能显著提高深度估计性能。[28] 把这一做法扩展,加入了误差拟合项;[43] 则探索把它与对抗损失结合,以鼓励合成图像看起来更真实。最后,受 [72] 启发,[73] 使用深度真值来训练外观匹配项。

3. Method

3. 方法

Here, we describe our depth prediction network that takes a single color input ItI_tIt​ and produces a depth map DtD_tDt​. We first review the key ideas behind self-supervised training for monocular depth estimation, and then describe our depth estimation network and joint training loss.

下面我们介绍深度预测网络:它接受单张彩色输入 ItI_tIt​,并输出深度图 DtD_tDt​。我们先回顾单目深度估计自监督训练的核心思路,再描述深度估计网络和联合训练损失。

3.1. Self-Supervised Training

3.1. 自监督训练

Self-supervised depth estimation frames the learning problem as one of novel view-synthesis, by training a network to predict the appearance of a target image from the viewpoint of another image. By constraining the network to perform image synthesis using an intermediary variable, in our case depth or disparity, we can then extract this interpretable depth from the model. This is an ill-posed problem as there is an extremely large number of possible incorrect depths per pixel which can correctly reconstruct the novel view given the relative pose between those two views. Classical binocular and multi-view stereo methods typically address this ambiguity by enforcing smoothness in the depth maps, and by computing photo-consistency on patches when solving for per-pixel depth via global optimization e.g. [11].

自监督深度估计把学习问题表述成新视角合成:训练网络从另一张图像的视角,去预测目标图像的外观。通过约束网络借助一个中间变量(在我们这里是深度或视差)来做图像合成,就可以从模型中取出这一可解释的深度。这个问题是不适定的,因为在给定两视图相对位姿时,每个像素都有极多错误深度,仍能正确重建出新视角。经典的双目和多视图立体方法通常通过在深度图上施加平滑,并在用全局优化求解逐像素深度时对图像块计算光度一致性,来处理这种歧义,例如 [11]。

Similar to [12, 15, 76], we also formulate our problem as the minimization of a photometric reprojection error at training time. We express the relative pose for each source view It′I_{t'}It′​, with respect to the target image ItI_tIt​'s pose, as Tt→t′T_{t \to t'}Tt→t′​. We predict a dense depth map DtD_tDt​ that minimizes the photometric reprojection error LpL_pLp​, where

与 [12, 15, 76] 类似,我们也把问题表述为在训练时最小化光度重投影误差。对每个源视图 It′I_{t'}It′​,我们把它相对于目标图像 ItI_tIt​ 位姿的相对位姿记为 Tt→t′T_{t \to t'}Tt→t′​。我们预测一张稠密深度图 DtD_tDt​,使光度重投影误差 LpL_pLp​ 最小,其中

Lp=∑t′pe(It,It′→t),(1)L_p = \sum_{t'} pe(I_t, I_{t' \to t}), \qquad (1)Lp​=t′∑​pe(It​,It′→t​),(1)

and

并且

It′→t=It′⟨proj(Dt,Tt→t′,K)⟩.(2)I_{t' \to t} = I_{t'}\big\langle proj(D_t, T_{t \to t'}, K)\big\rangle. \qquad (2)It′→t​=It′​⟨proj(Dt​,Tt→t′​,K)⟩.(2)

Here pepepe is a photometric reconstruction error, e.g. the L1 distance in pixel space; proj()proj()proj() are the resulting 2D coordinates of the projected depths DtD_tDt​ in It′I_{t'}It′​ and ⟨⟩\langle\rangle⟨⟩ is the sampling operator. For simplicity of notation we assume the pre-computed intrinsics KKK of all the views are identical, though they can be different. Following [21] we use bilinear sampling to sample the source images, which is locally sub-differentiable, and we follow [75, 15] in using L1 and SSIM [64] to make our photometric error function pepepe, i.e.

这里 pepepe 是光度重建误差,例如像素空间中的 L1 距离;proj()proj()proj() 是把深度 DtD_tDt​ 投影到 It′I_{t'}It′​ 后得到的二维坐标,⟨⟩\langle\rangle⟨⟩ 是采样算子。为记号简便,我们假定所有视图预先计算好的内参 KKK 相同,尽管它们也可以不同。我们跟随 [21],用双线性采样从源图像中取样,这种采样在局部是次可微的;并跟随 [75, 15],用 L1 和 SSIM [64] 来构造光度误差函数 pepepe,即

pe(Ia,Ib)=α2(1−SSIM(Ia,Ib))+(1−α)∥Ia−Ib∥1,pe(I_a, I_b) = \frac{\alpha}{2}(1 - \mathrm{SSIM}(I_a, I_b)) + (1 - \alpha)\|I_a - I_b\|_1,pe(Ia​,Ib​)=2α​(1−SSIM(Ia​,Ib​))+(1−α)∥Ia​−Ib​∥1​,

where α=0.85\alpha = 0.85α=0.85. As in [15] we use edge-aware smoothness

其中 α=0.85\alpha = 0.85α=0.85。与 [15] 一样,我们使用边缘感知平滑项

Ls=∣∂xdt∗∣e−∣∂xIt∣+∣∂ydt∗∣e−∣∂yIt∣,(3)L_s = |\partial_x d_t^*| e^{-|\partial_x I_t|} + |\partial_y d_t^*| e^{-|\partial_y I_t|}, \qquad (3)Ls​=∣∂x​dt∗​∣e−∣∂x​It​∣+∣∂y​dt∗​∣e−∣∂y​It​∣,(3)

where dt∗=dt/dt‾d_t^* = d_t / \overline{d_t}dt∗​=dt​/dt​​ is the mean-normalized inverse depth from [62] to discourage shrinking of the estimated depth.

其中 dt∗=dt/dt‾d_t^* = d_t / \overline{d_t}dt∗​=dt​/dt​​ 是来自 [62] 的均值归一化逆深度,用来抑制估计深度被整体缩小。

In stereo training, our source image It′I_{t'}It′​ is the second view in the stereo pair to ItI_tIt​, which has known relative pose. While relative poses are not known in advance for monocular sequences, [76] showed that it is possible to train a second pose estimation network to predict the relative poses Tt→t′T_{t \to t'}Tt→t′​ used in the projection function projprojproj. During training, we solve for camera pose and depth simultaneously, to minimize LpL_pLp​. For monocular training, we use the two frames temporally adjacent to ItI_tIt​ as our source frames, i.e. It′∈{It−1,It+1}I_{t'} \in \{I_{t-1}, I_{t+1}\}It′​∈{It−1​,It+1​}. In mixed training (MS), It′I_{t'}It′​ includes the temporally adjacent frames and the opposite stereo view.

在立体训练中,源图像 It′I_{t'}It′​ 是与 ItI_tIt​ 组成立体对的另一视图,其相对位姿已知。对单目序列,相对位姿事先并不知道,但 [76] 表明,可以再训练一个位姿估计网络,来预测投影函数 projprojproj 中用到的相对位姿 Tt→t′T_{t \to t'}Tt→t′​。训练时,我们同时求解相机位姿和深度,以最小化 LpL_pLp​。单目训练中,我们用时间上与 ItI_tIt​ 相邻的两帧作为源帧,即 It′∈{It−1,It+1}I_{t'} \in \{I_{t-1}, I_{t+1}\}It′​∈{It−1​,It+1​}。在混合训练(MS)中,It′I_{t'}It′​ 既包含时间相邻帧,也包含立体对中的另一视图。

Overview of Monodepth2 depth network, pose network, minimum reprojection loss, and full-resolution multi-scale sampling

Figure 3. Overview. (a) Depth network: We use a standard, fully convolutional, U-Net to predict depth. (b) Pose network: Pose between a pair of frames is predicted with a separate pose network. (c) Per-pixel minimum reprojection: When correspondences are good, the reprojection loss should be low. However, occlusions and disocclusions result in pixels from the current time step not appearing in both the previous and next frames. The baseline average loss forces the network to match occluded pixels, whereas our minimum reprojection loss only matches each pixel to the view in which it is visible, leading to sharper results. (d) Full-resolution multi-scale: We upsample depth predictions at intermediate layers and compute all losses at the input resolution, reducing texture-copy artifacts.

图 3. 方法总览。(a) 深度网络:我们用标准的全卷积 U-Net 来预测深度。(b) 位姿网络:两帧之间的位姿由单独的位姿网络预测。(c) 逐像素最小重投影:对应关系良好时,重投影损失应当较低。但遮挡与去遮挡会使当前时刻的像素无法同时出现在前一帧和后一帧中。基线的平均损失会强迫网络去匹配被遮挡的像素,而我们的最小重投影损失只把每个像素匹配到它仍然可见的那个视图,从而得到更锐利的结果。(d) 全分辨率多尺度:我们把中间层的深度预测上采样,并在输入分辨率上计算全部损失,以减少纹理拷贝伪影。

3.2. Improved Self-Supervised Depth Estimation

3.2. 改进的自监督深度估计

Existing monocular methods produce lower quality depths than the best fully-supervised models. To close this gap, we propose several improvements that significantly increase predicted depth quality, without adding additional model components that also require training (see Fig. 3).

现有单目方法给出的深度,质量仍低于最好的全监督模型。为缩小这一差距,我们提出若干改进,在不增加还需另行训练的模型组件的前提下,显著提高预测深度的质量(见图 3)。

Per-Pixel Minimum Reprojection Loss

逐像素最小重投影损失

When computing the reprojection error from multiple source images, existing self-supervised depth estimation methods average together the reprojection error into each of the available source images. This can cause issues with pixels that are visible in the target image, but are not visible in some of the source images (Fig. 3(c)). If the network predicts the correct depth for such a pixel, the corresponding color in an occluded source image will likely not match the target, inducing a high photometric error penalty. Such problematic pixels come from two main categories: out-of-view pixels due to egomotion at image boundaries, and occluded pixels. The effect of out-of-view pixels can be reduced by masking such pixels in the reprojection loss [40, 61], but this does not handle disocclusion, where average reprojection can result in blurred depth discontinuities.

在根据多张源图像计算重投影误差时,现有自监督深度估计方法会把到各可用源图像的重投影误差做平均。这会给那些在目标图像中可见、却在部分源图像中不可见的像素带来问题(图 3(c))。如果网络为这类像素预测了正确深度,被遮挡的源图像中对应位置的颜色往往与目标不匹配,从而产生很高的光度误差惩罚。这类麻烦像素主要来自两类:因自我运动而在图像边界处移出视野的像素,以及被遮挡的像素。移出视野的像素可以通过在重投影损失中做掩码来减轻影响 [40, 61],但这处理不了去遮挡:平均重投影会把深度不连续处弄糊。

We propose an improvement that deals with both issues at once. At each pixel, instead of averaging the photometric error over all source images, we simply use the minimum. Our final per-pixel photometric loss is therefore

我们提出一种可以同时处理这两个问题的改进。在每个像素上,不再对所有源图像的光度误差取平均,而直接取最小值。于是最终的逐像素光度损失为

Lp=min⁡t′pe(It,It′→t).(4)L_p = \min_{t'} pe(I_t, I_{t' \to t}). \qquad (4)Lp​=t′min​pe(It​,It′→t​).(4)

Example of minimum reprojection loss selecting visible source frames during mixed monocular-stereo training

Figure 4. Benefit of min. reprojection loss in MS training. Pixels in the the circled region are occluded in IRI_RIR​ so no loss is applied between (IL,IR)(I_L, I_R)(IL​,IR​). Instead, the pixels are matched to I−1I_{-1}I−1​ where they are visible. Colors in the top right image indicate which of the source images on the bottom are selected for matching by Eqn. 4.

图 4. 混合训练中最小重投影损失的作用。圆圈区域内的像素在 IRI_RIR​ 中被遮挡,因此 (IL,IR)(I_L, I_R)(IL​,IR​) 之间不施加损失。这些像素转而匹配到它们仍然可见的 I−1I_{-1}I−1​。右上角图像中的颜色表示公式 4 为匹配所选中的是底部哪一张源图像。

See Fig. 4 for an example of this loss in practice. Using our minimum reprojection loss significantly reduces artifacts at image borders, improves the sharpness of occlusion boundaries, and leads to better accuracy (see Table 2).

图 4 给出了这一损失在实际中的例子。使用最小重投影损失,可以显著减轻图像边界处的伪影,提高遮挡边界的锐度,并带来更高的精度(见表 2)。

Auto-Masking Stationary Pixels

对静止像素的自动掩码

Self-supervised monocular training often operates under the assumptions of a moving camera and a static scene. When these assumptions break down, for example when the camera is stationary or there is object motion in the scene, performance can suffer greatly. This problem can manifest itself as 'holes' of infinite depth in the predicted test time depth maps, for objects that are typically observed to be moving during training [38] (Fig. 2). This motivates our second contribution: a simple auto-masking method that filters out pixels which do not change appearance from one frame to the next in the sequence. This has the effect of letting the network ignore objects which move at the same velocity as the camera, and even to ignore whole frames in monocular videos when the camera stops moving.

自监督单目训练常常假定相机在运动、场景是静止的。这些假设一旦不成立,例如相机停住,或场景中有物体在动,性能就会严重下降。这一问题会在测试时的深度图上表现为无限深度的「空洞」,出现在训练中通常被观察到正在运动的物体上 [38](图 2)。这促使我们提出第二项改进:一种简单的自动掩码方法,过滤掉在序列中相邻帧之间外观并不改变的像素。它的效果是让网络忽略与相机同速运动的物体,甚至在单目视频里相机停住时忽略整帧。

Like other works [76, 61, 38], we also apply a per-pixel mask μ\muμ to the loss, selectively weighting pixels. However in contrast to prior work, our mask is binary, so μ∈{0,1}\mu \in \{0, 1\}μ∈{0,1}, and is computed automatically on the forward pass of the network, instead of being learned or estimated from object motion. We observe that pixels which remain the same between adjacent frames in the sequence often indicate a static camera, an object moving at equivalent relative translation to the camera, or a low texture region. We therefore set μ\muμ to only include the loss of pixels where the reprojection error of the warped image It′→tI_{t' \to t}It′→t​ is lower than that of the original, unwarped source image It′I_{t'}It′​, i.e.

与其他工作 [76, 61, 38] 一样,我们也对损失施加逐像素掩码 μ\muμ,有选择地给像素加权。但与已有方法不同,我们的掩码是二值的,即 μ∈{0,1}\mu \in \{0, 1\}μ∈{0,1},并且在网络前向计算时自动得到,而不是学习出来,或从物体运动中估计出来。我们观察到,序列中相邻帧之间保持不变的像素,往往对应静止相机、与相机做同等相对平移的物体,或低纹理区域。因此我们这样设置 μ\muμ:只把翘曲后图像 It′→tI_{t' \to t}It′→t​ 的重投影误差低于原始、未翘曲源图像 It′I_{t'}It′​ 的那些像素计入损失,即

μ=[min⁡t′pe(It,It′→t)<min⁡t′pe(It,It′)],(5)\mu = \big[\min_{t'} pe(I_t, I_{t' \to t}) < \min_{t'} pe(I_t, I_{t'})\big], \qquad (5)μ=[t′min​pe(It​,It′→t​)<t′min​pe(It​,It′​)],(5)

where [ ][\,][] is the Iverson bracket. In cases where the camera and another object are both moving at a similar velocity, μ\muμ prevents the pixels which remain stationary in the image from contaminating the loss. Similarly, when the camera is static, the mask can filter out all pixels in the image (Fig. 5). We show experimentally that this simple and inexpensive modification to the loss brings significant improvements.

其中 [ ][\,][] 是艾弗森括号。当相机和另一物体以相近速度运动时,μ\muμ 会阻止图像中保持静止的那些像素污染损失。类似地,当相机静止时,该掩码可以滤掉图像中的全部像素(图 5)。实验表明,对损失做这一简单且代价很小的修改,能带来显著改进。

Auto-masks after one epoch, removing co-moving objects and static-camera frames from the loss

Figure 5. Auto-masking. We show auto-masks computed after one epoch, where black pixels are removed from the loss (i.e. μ=0\mu = 0μ=0). The mask prevents objects moving at similar speeds to the camera (top) and whole frames where the camera is static (bottom) from contaminating the loss. The mask is computed from the input frames and network predictions using Eqn. 5.

图 5. 自动掩码。我们展示训练一个 epoch 后算出的自动掩码,其中黑色像素被移出损失(即 μ=0\mu = 0μ=0)。该掩码防止与相机速度相近的运动物体(上)以及相机静止的整帧(下)污染损失。掩码由输入帧和网络预测按公式 5 计算得到。

Multi-scale Estimation

多尺度估计

Due to the gradient locality of the bilinear sampler [21], and to prevent the training objective getting stuck in local minima, existing models use multi-scale depth prediction and image reconstruction. Here, the total loss is the combination of the individual losses at each scale in the decoder. [12, 15] compute the photometric error on images at the resolution of each decoder layer. We observe that this has the tendency to create 'holes' in large low-texture regions in the intermediate lower resolution depth maps, as well as texture-copy artifacts (details in the depth map incorrectly transferred from the color image). Holes in the depth can occur at low resolution in low-texture regions where the photometric error is ambiguous. This complicates the task for the depth network, now freed to predict incorrect depths.

由于双线性采样器的梯度具有局部性 [21],也为了防止训练目标陷入局部极小,现有模型会使用多尺度深度预测和图像重建。这时,总损失是解码器每个尺度上各分项损失的组合。[12, 15] 在每一层解码器对应的分辨率上计算光度误差。我们观察到,这容易在中间的较低分辨率深度图的大面积低纹理区域造成「空洞」,并产生纹理拷贝伪影(深度图中的细节被错误地从彩色图转移过来)。在低分辨率、低纹理、光度误差含糊的区域,深度中会出现空洞。这会加重深度网络的负担,因为它现在可以更自由地预测错误深度。

Inspired by techniques in stereo reconstruction [56], we propose an improvement to this multi-scale formulation, where we decouple the resolutions of the disparity images and the color images used to compute the reprojection error. Instead of computing the photometric error on the ambiguous low-resolution images, we first upsample the lower resolution depth maps (from the intermediate layers) to the input image resolution, and then reproject, resample, and compute the error pepepe at this higher input resolution (Fig. 3 (d)). This procedure is similar to matching patches, as low-resolution disparity values will be responsible for warping an entire 'patch' of pixels in the high resolution image. This effectively constrains the depth maps at each scale to work toward the same objective i.e. reconstructing the high resolution input target image as accurately as possible.

受立体重建中一些做法的启发 [56],我们对这一多尺度形式提出一项改进:把视差图的分辨率,与用来计算重投影误差的彩色图分辨率解开。不再在含糊的低分辨率图像上计算光度误差,而是先把较低分辨率的深度图(来自中间层)上采样到输入图像分辨率,再在这一更高的输入分辨率上做重投影、重采样并计算误差 pepepe(图 3(d))。这一过程类似于匹配图像块,因为低分辨率的视差值将负责翘曲高分辨率图像中整整一块像素。它实际上约束了每个尺度上的深度图去追求同一个目标,也就是尽可能准确地重建高分辨率的输入目标图像。

Final Training Loss

最终训练损失

We combine our per-pixel smoothness and masked photometric losses as L=μLp+λLsL = \mu L_p + \lambda L_sL=μLp​+λLs​, and average over each pixel, scale, and batch.

我们把逐像素平滑项和带掩码的光度损失组合成 L=μLp+λLsL = \mu L_p + \lambda L_sL=μLp​+λLs​,并在每个像素、每个尺度和每个批次上取平均。

3.3. Additional Considerations

3.3. 其他考虑

Our depth estimation network is based on the general U-Net architecture [53], i.e. an encoder-decoder network, with skip connections, enabling us to represent both deep abstract features as well as local information. We use a ResNet18 [17] as our encoder, which contains 11M parameters, compared to the larger, and slower, DispNet and ResNet50 models used in existing work [15]. Similar to [30, 16], we start with weights pretrained on ImageNet [54], and show that this improves accuracy for our compact model compared to training from scratch (Table 2). Our depth decoder is similar to [15], with sigmoids at the output and ELU nonlinearities [7] elsewhere. We convert the sigmoid output σ\sigmaσ to depth with D=1/(aσ+b)D = 1/(a\sigma + b)D=1/(aσ+b), where aaa and bbb are chosen to constrain DDD between 0.1 and 100 units. We make use of reflection padding, in place of zero padding, in the decoder, returning the value of the closest border pixels in the source image when samples land outside of the image boundaries. We found that this significantly reduces the border artifacts found in existing approaches, e.g. [15].

我们的深度估计网络基于通用的 U-Net 结构 [53],也就是带跳跃连接的编码器–解码器网络,从而既能表示深层的抽象特征,也能保留局部信息。编码器使用 ResNet18 [17],约有 1100 万参数,相比已有工作中使用的更大、也更慢的 DispNet 和 ResNet50 模型要小 [15]。与 [30, 16] 类似,我们从在 ImageNet [54] 上预训练的权重出发,并表明对这一紧凑模型来说,这样比从头训练更能提高精度(表 2)。深度解码器与 [15] 相近,输出用 sigmoid,其余位置用 ELU 非线性 [7]。我们把 sigmoid 输出 σ\sigmaσ 转换成深度 D=1/(aσ+b)D = 1/(a\sigma + b)D=1/(aσ+b),其中 aaa 和 bbb 的选取使 DDD 落在 0.1 到 100 个单位之间。解码器里我们用反射填充代替零填充,当采样点落到图像边界以外时,就返回源图像中最近边界像素的值。我们发现,这能显著减轻已有方法(例如 [15])中出现的边界伪影。

For pose estimation, we follow [62] and predict the rotation using an axis-angle representation, and scale the rotation and translation outputs by 0.01. For monocular training, we use a sequence length of three frames, while our pose network is formed from a ResNet18, modified to accept a pair of color images (or six channels) as input and to predict a single 6-DoF relative pose. We perform horizontal flips and the following training augmentations, with 50% chance: random brightness, contrast, saturation, and hue jitter with respective ranges of ±0.2\pm 0.2±0.2, ±0.2\pm 0.2±0.2, ±0.2\pm 0.2±0.2, and ±0.1\pm 0.1±0.1. Importantly, the color augmentations are only applied to the images which are fed to the networks, not to those used to compute LpL_pLp​. All three images fed to the pose and depth networks are augmented with the same parameters.

在位姿估计上,我们跟随 [62],用轴角表示来预测旋转,并把旋转和平移输出乘以 0.01。单目训练使用长度为三帧的序列;位姿网络由 ResNet18 构成,并改成接受一对彩色图像(即六通道)作为输入,预测一个 6 自由度相对位姿。我们做水平翻转,并以 50% 的概率施加以下训练增强:随机亮度、对比度、饱和度和色调抖动,范围分别为 ±0.2\pm 0.2±0.2、±0.2\pm 0.2±0.2、±0.2\pm 0.2±0.2 和 ±0.1\pm 0.1±0.1。重要的是,颜色增强只施加到送入网络的图像上,而不施加到用来计算 LpL_pLp​ 的图像上。送入位姿网络和深度网络的三张图像,都用同一组参数做增强。

Our models are implemented in PyTorch [46], trained for 20 epochs using Adam [26], with a batch size of 12 and an input/output resolution of 640×192640 \times 192640×192 unless otherwise specified. We use a learning rate of 10−410^{-4}10−4 for the first 15 epochs which is then dropped to 10−510^{-5}10−5 for the remainder. This was chosen using a dedicated validation set of 10% of the data. The smoothness term λ\lambdaλ is set to 0.001. Training takes 8, 12, and 15 hours on a single Titan Xp, for the stereo (S), monocular (M), and monocular plus stereo models (MS).

模型在 PyTorch [46] 中实现,用 Adam [26] 训练 20 个 epoch,批次大小为 12,输入/输出分辨率除非另加说明均为 640×192640 \times 192640×192。前 15 个 epoch 的学习率为 10−410^{-4}10−4,其余时间降为 10−510^{-5}10−5。这一设置是在占数据 10% 的专门验证集上选定的。平滑项系数 λ\lambdaλ 设为 0.001。在一块 Titan Xp 上,立体(S)、单目(M)以及单目加立体(MS)模型的训练分别大约需要 8、12 和 15 小时。

4. Experiments

4. 实验

Here, we validate that (1) our reprojection loss helps with occluded pixels compared to existing pixel-averaging, (2) our auto-masking improves results, especially when training on scenes with static cameras, and (3) our multi-scale appearance matching loss improves accuracy. We evaluate our models, named Monodepth2, on the KITTI 2015 stereo dataset [13], to allow comparison with previously published monocular methods.

下面我们验证:(1) 与现有的像素平均相比,我们的重投影损失更有助于处理遮挡像素;(2) 自动掩码能够改进结果,在含静止相机的场景上训练时尤其如此;(3) 多尺度外观匹配损失能够提高精度。我们将名为 Monodepth2 的模型在 KITTI 2015 立体数据集 [13] 上评估,以便与此前已发表的单目方法比较。

4.1. KITTI Eigen Split

4.1. KITTI Eigen 划分

We use the data split of Eigen et al. [8]. Except in ablation experiments, for training which uses monocular sequences (i.e. monocular and monocular plus stereo) we follow Zhou et al.'s [76] pre-processing to remove static frames. This results in 39,810 monocular triplets for training and 4,424 for validation. We use the same intrinsics for all images, setting the principal point of the camera to the image center and the focal length to the average of all the focal lengths in KITTI. For stereo and mixed training (monocular plus stereo), we set the transformation between the two stereo frames to be a pure horizontal translation of fixed length. During evaluation, we cap depth to 80m per standard practice [15]. For our monocular models, we report results using the per-image median ground truth scaling introduced by [76]. See also supplementary material Section D.2 for results where we apply a single median scaling to the whole test set, instead of scaling each image independently. For results that use any stereo supervision we do not perform median scaling as scale can be inferred from the known camera baseline during training.

我们使用 Eigen 等人的数据划分 [8]。除消融实验外,凡是用到单目序列的训练(即单目,以及单目加立体),都跟随 Zhou 等人 [76] 的预处理去掉静止帧。这样得到 39,810 个单目三元组用于训练,4,424 个用于验证。我们对所有图像使用相同的内参,把相机主点设为图像中心,焦距取 KITTI 中全部焦距的平均值。对于立体训练和混合训练(单目加立体),两帧立体图像之间的变换设为固定长度的纯水平平移。评估时按通行做法把深度截断在 80 米 [15]。对单目模型,我们报告使用 [76] 提出的逐图像中位数真值缩放后的结果。补充材料第 D.2 节还给出了对整个测试集只做一次中位数缩放、而不是对每张图单独缩放的结果。凡是用到任何立体监督的结果,我们都不做中位数缩放,因为尺度可以在训练时从已知的相机基线推断出来。

We compare the results of several variants of our model, trained with different types of self-supervision: monocular video only (M), stereo only (S), and both (MS). The results in Table 1 show that our monocular method outperforms all existing state-of-the-art self-supervised approaches. We also outperform recent methods ([38, 51]) that explicitly compute optical flow as well as motion masks. Qualitative results can be seen in Fig. 7 and supplementary Section E. However, as with all image reconstruction based approaches to depth estimation, our model breaks when the scene contains objects that violate the Lambertian assumptions of our appearance loss (Fig. 8).

我们比较了模型在不同自监督方式下训练的多个变体:仅单目视频(M)、仅立体(S),以及二者同时使用(MS)。表 1 的结果表明,我们的单目方法优于所有现有的顶尖自监督方法。我们也超过了近期那些显式计算光流和运动掩码的方法([38, 51])。定性结果见图 7 和补充材料第 E 节。不过,与所有基于图像重建的深度估计方法一样,当场景中的物体违反我们外观损失的朗伯假设时,模型会失效(图 8)。

As expected, the combination of M and S training data increases accuracy, which is especially noticeable on metrics that are sensitive to large depth errors e.g. RMSE. Despite our contributions being designed around monocular training, we find that the in the stereo-only case we still perform well. We achieve high accuracy despite using a lower resolution than [47]'s 1024×3841024 \times 3841024×384, with substantially less training time (20 vs. 200 epochs) and no use of post-processing.

正如预期,把 M 和 S 训练数据合在一起会提高精度,在对大深度误差敏感的指标(例如 RMSE)上尤其明显。尽管我们的改进是围绕单目训练设计的,但我们发现,在仅用立体的情形下仍然表现很好。我们使用的分辨率低于 [47] 的 1024×3841024 \times 3841024×384,训练时间也短得多(20 对 200 个 epoch),并且没有使用后处理,却仍取得了很高的精度。

Table 1. Quantitative results. Comparison of our method to existing methods on KITTI 2015 [13] using the Eigen split. Best results in each category are in bold; second best are underlined. All results here are presented without post-processing [15]; see supplementary Section F for improved post-processed results. While our contributions are designed for monocular training, we still gain high accuracy in the stereo-only category. We additionally show we can get higher scores at a larger 1024×3201024 \times 3201024×320 resolution, similar to [47] – see supplementary Section G. These high resolution numbers are bolded if they beat all other models, including our low-res versions.

Method Train Abs Rel Sq Rel RMSE RMSE log δ<1.25\delta < 1.25δ<1.25 δ<1.252\delta < 1.25^{2}δ<1.252 δ<1.253\delta < 1.25^{3}δ<1.253
Eigen [9] D 0.203 1.548 6.307 0.282 0.702 0.890 0.890
Liu [36] D 0.201 1.584 6.471 0.273 0.680 0.898 0.967
Klodt [28] D*M 0.166 1.490 5.998 – 0.778 0.919 0.966
AdaDepth [45] D* 0.167 1.257 5.578 0.237 0.771 0.922 0.971
Kuznietsov [30] DS 0.113 0.741 4.621 0.189 0.862 0.960 0.986
DVSO [68] D*S 0.097 0.734 4.442 0.187 0.888 0.958 0.980
SVSM FT [39] DS 0.094 0.626 4.252 0.177 0.891 0.965 0.984
Guo [16] DS 0.096 0.641 4.095 0.168 0.892 0.967 0.986
DORN [10] D 0.072 0.307 2.727 0.120 0.932 0.984 0.994
Zhou [76]† M 0.183 1.595 6.709 0.270 0.734 0.902 0.959
Yang [70] M 0.182 1.481 6.501 0.267 0.725 0.906 0.963
Mahjourian [40] M 0.163 1.240 6.220 0.250 0.762 0.916 0.968
GeoNet [71]† M 0.149 1.060 5.567 0.226 0.796 0.935 0.975
DDVO [62] M 0.151 1.257 5.583 0.228 0.810 0.936 0.974
DF-Net [78] M 0.150 1.124 5.507 0.223 0.806 0.933 0.973
LEGO [69] M 0.162 1.352 6.276 0.252 – – –
Ranjan [51] M 0.148 1.149 5.464 0.226 0.815 0.935 0.973
EPC++ [38] M 0.141 1.029 5.350 0.216 0.816 0.941 0.976
Struct2depth '(M)' [5] M 0.141 1.026 5.291 0.215 0.816 0.945 0.979
Monodepth2 w/o pretraining M 0.132 1.044 5.142 0.210 0.845 0.948 0.977
Monodepth2 M 0.115 0.903 4.863 0.193 0.877 0.959 0.981
Monodepth2 (1024×3201024 \times 3201024×320) M 0.115 0.882 4.701 0.190 0.879 0.961 0.982
Garg [12]† S 0.152 1.226 5.849 0.246 0.784 0.921 0.967
Monodepth R50 [15]† S 0.133 1.142 5.533 0.230 0.830 0.936 0.970
StrAT [43] S 0.128 1.019 5.403 0.227 0.827 0.935 0.971
3Net (R50) [50] S 0.129 0.996 5.281 0.223 0.831 0.939 0.974
3Net (VGG) [50] S 0.119 1.201 5.888 0.208 0.844 0.941 0.978
SuperDepth + pp [47] (1024×3821024 \times 3821024×382) S 0.112 0.875 4.958 0.207 0.852 0.947 0.977
Monodepth2 w/o pretraining S 0.130 1.144 5.485 0.232 0.831 0.932 0.968
Monodepth2 S 0.109 0.873 4.960 0.209 0.864 0.948 0.975
Monodepth2 (1024×3201024 \times 3201024×320) S 0.107 0.849 4.764 0.201 0.874 0.953 0.977
UnDeepVO [33] MS 0.183 1.730 6.57 0.268 – – –
Zhan FullNYU [73] D*MS 0.135 1.132 5.585 0.229 0.820 0.933 0.971
EPC++ [38] MS 0.128 0.935 5.011 0.209 0.831 0.945 0.979
Monodepth2 w/o pretraining MS 0.127 1.031 5.266 0.221 0.836 0.943 0.974
Monodepth2 MS 0.106 0.818 4.750 0.196 0.874 0.957 0.979
Monodepth2 (1024×3201024 \times 3201024×320) MS 0.106 0.806 4.630 0.193 0.876 0.958 0.980

Legend: D – Depth supervision; D* – Auxiliary depth supervision; S – Self-supervised stereo supervision; M – Self-supervised mono supervision; † – Newer results from github; + pp – With post-processing.

表 1. 定量结果。在 KITTI 2015 [13] 的 Eigen 划分上,将我们的方法与已有方法进行比较。各类别中最好的结果用粗体,次好的结果以下划线标出。这里的全部结果都没有使用后处理 [15];经过后处理、有所提高的结果见补充材料第 F 节。尽管我们的改进是为单目训练设计的,在仅用立体的类别中仍然取得了很高的精度。我们还表明,在更大的 1024×3201024 \times 3201024×320 分辨率上可以得到更高的分数,这与 [47] 类似——见补充材料第 G 节。这些高分辨率数字仅在超过所有其他模型(包括我们的低分辨率版本)时才加粗。

Method Train Abs Rel Sq Rel RMSE RMSE log δ<1.25\delta < 1.25δ<1.25 δ<1.252\delta < 1.25^{2}δ<1.252 δ<1.253\delta < 1.25^{3}δ<1.253
Eigen [9] D 0.203 1.548 6.307 0.282 0.702 0.890 0.890
Liu [36] D 0.201 1.584 6.471 0.273 0.680 0.898 0.967
Klodt [28] D*M 0.166 1.490 5.998 – 0.778 0.919 0.966
AdaDepth [45] D* 0.167 1.257 5.578 0.237 0.771 0.922 0.971
Kuznietsov [30] DS 0.113 0.741 4.621 0.189 0.862 0.960 0.986
DVSO [68] D*S 0.097 0.734 4.442 0.187 0.888 0.958 0.980
SVSM FT [39] DS 0.094 0.626 4.252 0.177 0.891 0.965 0.984
Guo [16] DS 0.096 0.641 4.095 0.168 0.892 0.967 0.986
DORN [10] D 0.072 0.307 2.727 0.120 0.932 0.984 0.994
Zhou [76]† M 0.183 1.595 6.709 0.270 0.734 0.902 0.959
Yang [70] M 0.182 1.481 6.501 0.267 0.725 0.906 0.963
Mahjourian [40] M 0.163 1.240 6.220 0.250 0.762 0.916 0.968
GeoNet [71]† M 0.149 1.060 5.567 0.226 0.796 0.935 0.975
DDVO [62] M 0.151 1.257 5.583 0.228 0.810 0.936 0.974
DF-Net [78] M 0.150 1.124 5.507 0.223 0.806 0.933 0.973
LEGO [69] M 0.162 1.352 6.276 0.252 – – –
Ranjan [51] M 0.148 1.149 5.464 0.226 0.815 0.935 0.973
EPC++ [38] M 0.141 1.029 5.350 0.216 0.816 0.941 0.976
Struct2depth '(M)' [5] M 0.141 1.026 5.291 0.215 0.816 0.945 0.979
Monodepth2 w/o pretraining M 0.132 1.044 5.142 0.210 0.845 0.948 0.977
Monodepth2 M 0.115 0.903 4.863 0.193 0.877 0.959 0.981
Monodepth2 (1024×3201024 \times 3201024×320) M 0.115 0.882 4.701 0.190 0.879 0.961 0.982
Garg [12]† S 0.152 1.226 5.849 0.246 0.784 0.921 0.967
Monodepth R50 [15]† S 0.133 1.142 5.533 0.230 0.830 0.936 0.970
StrAT [43] S 0.128 1.019 5.403 0.227 0.827 0.935 0.971
3Net (R50) [50] S 0.129 0.996 5.281 0.223 0.831 0.939 0.974
3Net (VGG) [50] S 0.119 1.201 5.888 0.208 0.844 0.941 0.978
SuperDepth + pp [47] (1024×3821024 \times 3821024×382) S 0.112 0.875 4.958 0.207 0.852 0.947 0.977
Monodepth2 w/o pretraining S 0.130 1.144 5.485 0.232 0.831 0.932 0.968
Monodepth2 S 0.109 0.873 4.960 0.209 0.864 0.948 0.975
Monodepth2 (1024×3201024 \times 3201024×320) S 0.107 0.849 4.764 0.201 0.874 0.953 0.977
UnDeepVO [33] MS 0.183 1.730 6.57 0.268 – – –
Zhan FullNYU [73] D*MS 0.135 1.132 5.585 0.229 0.820 0.933 0.971
EPC++ [38] MS 0.128 0.935 5.011 0.209 0.831 0.945 0.979
Monodepth2 w/o pretraining MS 0.127 1.031 5.266 0.221 0.836 0.943 0.974
Monodepth2 MS 0.106 0.818 4.750 0.196 0.874 0.957 0.979
Monodepth2 (1024×3201024 \times 3201024×320) MS 0.106 0.806 4.630 0.193 0.876 0.958 0.980

图例:D – 深度监督;D* – 辅助深度监督;S – 自监督立体监督;M – 自监督单目监督;† – 来自 github 的较新结果;+ pp – 使用后处理。

4.1.1 KITTI Ablation Study

4.1.1 KITTI 消融实验

To better understand how the components of our model contribute to the overall performance in monocular training, in Table 2(a) we perform an ablation study by changing various components of our model. We see that the baseline model, without any of our contributions, performs the worst. When combined together, all our components lead to a significant improvement (Monodepth2 (full)). More experiments turning parts of our full model off in turn are shown in supplementary material Section C.

为更好地理解模型各部分对单目训练总体性能的贡献,我们在表 2(a) 中通过改动模型的不同组件做了消融实验。可以看到,不含我们任何改进的基线模型表现最差。所有组件合在一起后,会带来显著提升(Monodepth2 (full))。把完整模型的各部分再逐一关掉的更多实验,见补充材料第 C 节。

Table 2. Ablation. Results for different variants of our model (Monodepth2) with monocular training on KITTI 2015 [13] using the Eigen split. (a) The baseline model, with none of our contributions, performs poorly. The addition of our minimum reprojection, auto-masking and full-res multi-scale components, significantly improves performance. (b) Even without ImageNet pretrained weights, our much simpler model brings large improvements above the baseline – see also Table 1. (c) If we train with the full Eigen dataset (instead of the subset introduced for monocular training by [76]) our improvement over the baseline increases.

Auto-masking Min. reproj. Full-res multi-scale Pretrained Full Eigen split Abs Rel Sq Rel RMSE RMSE log δ<1.25\delta < 1.25δ<1.25 δ<1.252\delta < 1.25^{2}δ<1.252 δ<1.253\delta < 1.25^{3}δ<1.253
(a) Baseline ✓ 0.140 1.610 5.512 0.223 0.852 0.946 0.973
Baseline + min reproj. ✓ ✓ 0.122 1.081 5.116 0.199 0.866 0.957 0.980
Baseline + automasking ✓ 0.124 0.936 5.010 0.206 0.858 0.952 0.977
Baseline + full-res m.s. ✓ ✓ 0.124 1.170 5.249 0.203 0.865 0.953 0.978
Monodepth2 w/o min reprojection ✓ ✓ ✓ 0.117 0.878 4.846 0.196 0.870 0.957 0.980
Monodepth2 w/o auto-masking ✓ ✓ ✓ 0.120 1.097 5.074 0.197 0.872 0.956 0.979
Monodepth2 w/o full-res m.s. ✓ ✓ ✓ 0.117 0.866 4.864 0.196 0.871 0.957 0.981
Monodepth2 with [76]'s mask ✓ ✓ ✓ 0.123 1.177 5.210 0.200 0.869 0.955 0.978
Monodepth2 smaller (416×128416 \times 128416×128) ✓ ✓ ✓ ✓ 0.128 1.087 5.171 0.204 0.855 0.953 0.978
Monodepth2 (full) ✓ ✓ ✓ ✓ 0.115 0.903 4.863 0.193 0.877 0.959 0.981
(b) Baseline w/o pt 0.150 1.585 5.671 0.234 0.827 0.938 0.971
Monodepth2 w/o pt ✓ ✓ ✓ 0.132 1.044 5.142 0.210 0.845 0.948 0.977
(c) Baseline (full Eigen dataset) ✓ ✓ 0.146 1.876 5.666 0.230 0.848 0.945 0.972
Monodepth2 (full Eigen dataset) ✓ ✓ ✓ ✓ ✓ 0.116 0.918 4.872 0.193 0.874 0.959 0.981

表 2. 消融。我们的模型(Monodepth2)在 KITTI 2015 [13] 上用 Eigen 划分做单目训练时,不同变体的结果。(a) 不含我们任何改进的基线模型表现较差。加入最小重投影、自动掩码和全分辨率多尺度后,性能显著提高。(b) 即便不用 ImageNet 预训练权重,我们这个简单得多的模型相对基线仍有很大提升——也见表 1。(c) 若用完整的 Eigen 数据集训练(而不是 [76] 为单目训练引入的子集),我们相对基线的提升会进一步加大。

Auto-masking Min. reproj. Full-res multi-scale Pretrained Full Eigen split Abs Rel Sq Rel RMSE RMSE log δ<1.25\delta < 1.25δ<1.25 δ<1.252\delta < 1.25^{2}δ<1.252 δ<1.253\delta < 1.25^{3}δ<1.253
(a) Baseline ✓ 0.140 1.610 5.512 0.223 0.852 0.946 0.973
Baseline + min reproj. ✓ ✓ 0.122 1.081 5.116 0.199 0.866 0.957 0.980
Baseline + automasking ✓ 0.124 0.936 5.010 0.206 0.858 0.952 0.977
Baseline + full-res m.s. ✓ ✓ 0.124 1.170 5.249 0.203 0.865 0.953 0.978
Monodepth2 w/o min reprojection ✓ ✓ ✓ 0.117 0.878 4.846 0.196 0.870 0.957 0.980
Monodepth2 w/o auto-masking ✓ ✓ ✓ 0.120 1.097 5.074 0.197 0.872 0.956 0.979
Monodepth2 w/o full-res m.s. ✓ ✓ ✓ 0.117 0.866 4.864 0.196 0.871 0.957 0.981
Monodepth2 with [76]'s mask ✓ ✓ ✓ 0.123 1.177 5.210 0.200 0.869 0.955 0.978
Monodepth2 smaller (416×128416 \times 128416×128) ✓ ✓ ✓ ✓ 0.128 1.087 5.171 0.204 0.855 0.953 0.978
Monodepth2 (full) ✓ ✓ ✓ ✓ 0.115 0.903 4.863 0.193 0.877 0.959 0.981
(b) Baseline w/o pt 0.150 1.585 5.671 0.234 0.827 0.938 0.971
Monodepth2 w/o pt ✓ ✓ ✓ 0.132 1.044 5.142 0.210 0.845 0.948 0.977
(c) Baseline (full Eigen dataset) ✓ ✓ 0.146 1.876 5.666 0.230 0.848 0.945 0.972
Monodepth2 (full Eigen dataset) ✓ ✓ ✓ ✓ ✓ 0.116 0.918 4.872 0.193 0.874 0.959 0.981

Benefits of auto-masking

自动掩码的好处

The full Eigen [8] KITTI split contains several sequences where the camera does not move between frames e.g. where the data capture car was stopped at traffic lights. These 'no camera motion' sequences can cause problems for self-supervised monocular training, and as a result, they are typically excluded at training time using expensive to compute optical flow [76]. We report monocular results trained on the full Eigen data split in Table 2(c), i.e. without removing frames. The baseline model trained on the full KITTI split performs worse than our full model.

完整的 Eigen [8] KITTI 划分中,有若干序列的相机在帧间并不移动,例如采集车停在红绿灯前。这些「无相机运动」序列会给自监督单目训练带来麻烦,因此训练时通常会用计算代价很高的光流把它们剔除 [76]。我们在表 2(c) 中报告了在完整 Eigen 数据划分上训练的单目结果,也就是不剔除帧。在完整 KITTI 划分上训练的基线模型,表现差于我们的完整模型。

Qualitative Make3D depth maps from models trained on KITTI with monocular supervision

Figure 6. Qualitative Make3D results. All methods were trained on KITTI using monocular supervision.

图 6. Make3D 定性结果。所有方法都在 KITTI 上用单目监督训练。

Further, in Table 2(a), we replace our auto-masking loss with a re-implementation of the predictive mask from [76]. We find that this ablated model is worse than using no masking at all, while our auto-masking improves results in all cases. We see an example of how auto-masking works in practice in Fig. 5.

此外,在表 2(a) 中,我们把自动掩码损失替换成对 [76] 中预测掩码的复现。我们发现,这一消融模型比完全不用掩码还差,而我们的自动掩码在所有情形下都能改进结果。图 5 给出了自动掩码在实际中如何起作用的例子。

Effect of ImageNet pretraining

ImageNet 预训练的作用

We follow previous work [14, 30, 16] in initializing our encoders with weights pretrained on ImageNet [54]. While some other monocular depth prediction works have elected not to use ImageNet pretraining, we show in Table 1 that even without pretraining, we still achieve state-of-the-art results. We train these 'w/o pretraining' models for 30 epochs to ensure convergence. Table 2 shows the benefit our contributions bring both to pretrained networks and those trained from scratch; see supplementary material Section C for more ablations.

我们跟随已有工作 [14, 30, 16],用在 ImageNet [54] 上预训练的权重初始化编码器。尽管其他一些单目深度预测工作选择不使用 ImageNet 预训练,我们在表 1 中表明,即便不做预训练,仍然能取得当时最好的结果。这些「不预训练」模型我们训练 30 个 epoch,以确保收敛。表 2 显示,无论是对预训练网络还是对从头训练的网络,我们的改进都有帮助;更多消融见补充材料第 C 节。

4.2. Additional Datasets

4.2. 其他数据集

KITTI Odometry

KITTI 里程计

In Section A of the supplementary material we show odometry evaluation on KITTI. While our focus is better depth estimation, our pose network performs on par with competing methods. Competing methods typically feed more frames to their pose network which may improve their ability to generalize.

在补充材料第 A 节,我们给出了 KITTI 上的里程计评估。尽管我们的重点是更好的深度估计,位姿网络的表现与竞争方法相当。竞争方法通常会向位姿网络输入更多帧,这可能有助于它们的泛化。

KITTI Depth Prediction Benchmark

KITTI 深度预测基准

We also perform experiments on the recently introduced KITTI Depth Prediction Evaluation dataset [59], which features more accurate ground truth depth, addressing quality issues with the standard split. We train models using this new benchmark split, and evaluate it using the online server [27], and provide results in supplementary Section D.3. Additionally, 93% of the Eigen split test frames have higher quality ground truth depths provided by [59]. Like [1], we use these instead of the reprojected LIDAR scans to compare our method against several existing baseline algorithms, still showing superior performance.

我们还在当时新推出的 KITTI 深度预测评估数据集 [59] 上做了实验。该数据集提供更准确的深度真值,用来应对标准划分中的质量问题。我们用这一新的基准划分训练模型,并在在线服务器 [27] 上评估,结果见补充材料第 D.3 节。此外,Eigen 划分中 93% 的测试帧,都有 [59] 提供的更高质量深度真值。与 [1] 一样,我们用这些真值,而不是重投影的激光雷达扫描,来把我们的方法与若干已有基线算法比较,结果仍然更优。

Make3D

In Table 3 we report performance on the Make3D dataset [55] using our models trained on KITTI. We outperform all methods that do not use depth supervision, with the evaluation criteria from [15]. However, caution should be taken with Make3D, as its ground truth depth and input images are not well aligned, causing potential evaluation issues. We evaluate on a center crop of 2×12 \times 12×1 ratio, and apply median scaling for our M model. Qualitative results can be seen in Fig. 6 and in supplementary Section E.

在表 3 中,我们报告了在 KITTI 上训练的模型在 Make3D 数据集 [55] 上的表现。按 [15] 的评估标准,我们超过了所有不使用深度监督的方法。不过对 Make3D 需要谨慎,因为它的深度真值与输入图像对齐并不好,可能给评估带来问题。我们在比例为 2×12 \times 12×1 的中心裁剪上评估,并对 M 模型做中位数缩放。定性结果见图 6 和补充材料第 E 节。

Table 3. Make3D results. All M results benefit from median scaling, while MS uses the unmodified network prediction.

Type Abs Rel Sq Rel RMSE log10\mathrm{log}_{10}log10​
Karsch [24] D 0.428 5.079 8.389 0.149
Liu [37] D 0.475 6.562 10.05 0.165
Laina [31] D 0.204 1.840 5.683 0.084
Monodepth [15] S 0.544 10.94 11.760 0.193
Zhou [76] M 0.383 5.321 10.470 0.478
DDVO [62] M 0.387 4.720 8.090 0.204
Monodepth2 M 0.322 3.589 7.417 0.163
Monodepth2 MS 0.374 3.792 8.238 0.201

表 3. Make3D 结果。所有 M 的结果都使用了中位数缩放,MS 则使用未经修改的网络预测。

Type Abs Rel Sq Rel RMSE log10\mathrm{log}_{10}log10​
Karsch [24] D 0.428 5.079 8.389 0.149
Liu [37] D 0.475 6.562 10.05 0.165
Laina [31] D 0.204 1.840 5.683 0.084
Monodepth [15] S 0.544 10.94 11.760 0.193
Zhou [76] M 0.383 5.321 10.470 0.478
DDVO [62] M 0.387 4.720 8.090 0.204
Monodepth2 M 0.322 3.589 7.417 0.163
Monodepth2 MS 0.374 3.792 8.238 0.201

Qualitative KITTI Eigen split depth maps comparing Monodepth2 with prior self-supervised methods

Figure 7. Qualitative results on the KITTI Eigen split. Our models (MD2) in the last four rows produce the sharpest depth maps, which are reflected in the superior quantitative results in Table 1. Additional results can be seen in the supplementary materiale Section E.

图 7. KITTI Eigen 划分上的定性结果。最后四行中我们的模型(MD2)给出了最锐利的深度图,这也反映在表 1 更好的定量结果上。更多结果见补充材料第 E 节。

Failure cases on reflective surfaces and objects with ambiguous or intricate boundaries

Figure 8. Failure cases. Top: Our self-supervised loss fails to learn good depths for distorted, reflective and color-saturated regions. Bottom: We can fail to accurately delineate objects where boundaries are ambiguous (left) or shapes are intricate (right).

图 8. 失败情形。上:我们的自监督损失难以在扭曲、反光和颜色过饱和的区域学到良好的深度。下:在边界含糊(左)或形状复杂(右)时,我们也可能无法准确勾勒物体。

5. Conclusion

5. 结论

We have presented a versatile model for self-supervised monocular depth estimation, achieving state-of-the-art depth predictions. We introduced three contributions: (i) a minimum reprojection loss, computed for each pixel, to deal with occlusions between frames in monocular video, (ii) an auto-masking loss to ignore confusing, stationary pixels, and (iii) a full-resolution multi-scale sampling method. We showed how together they give a simple and efficient model for depth estimation, which can be trained with monocular video data, stereo data, or mixed monocular and stereo data.

我们提出了一个用于自监督单目深度估计的通用模型,取得了当时最好的深度预测。我们引入了三项改进:(i) 逐像素计算的最小重投影损失,用来处理单目视频中帧间的遮挡;(ii) 自动掩码损失,用来忽略造成干扰的静止像素;(iii) 全分辨率多尺度采样方法。我们表明,这三项合在一起,可以得到一个简单而高效的深度估计模型,并且可以用单目视频、立体数据,或二者的混合来训练。

Acknowledgements

致谢

Thanks to the authors who shared their results, and Peter Hedman, Daniyar Turmukhambetov, and Aron Monszpart for their helpful discussions.

感谢分享结果的各位作者,以及 Peter Hedman、Daniyar Turmukhambetov 和 Aron Monszpart 的讨论。

References

参考文献

[1] Filippo Aleotti, Fabio Tosi, Matteo Poggi, and Stefano Mattoccia. Generative adversarial networks for unsupervised monocular depth prediction. In ECCV Workshops, 2018.

[2] Amir Atapour-Abarghouei and Toby Breckon. Real-time monocular depth estimation using synthetic data with domain adaptation via image style transfer. In CVPR, 2018.

[3] V Madhu Babu, Kaushik Das, Anima Majumdar, and Swagat Kumar. Undemon: Unsupervised deep network for depth and ego-motion estimation. In IROS, 2018.

[4] Arunkumar Byravan and Dieter Fox. Se3-nets: Learning rigid body motion using deep neural networks. In ICRA, 2017.

[5] Vincent Casser, Soeren Pirk, Reza Mahjourian, and Anelia Angelova. Depth prediction without the sensors: Leveraging structure for unsupervised learning from monocular videos. In AAAI, 2019.

[6] Weifeng Chen, Zhao Fu, Dawei Yang, and Jia Deng. Single-image depth perception in the wild. In NeurIPS, 2016.

[7] Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). arXiv, 2015.

[8] David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In ICCV, 2015.

[9] David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In NeurIPS, 2014.

[10] Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In CVPR, 2018.

[11] Yasutaka Furukawa and Carlos Hernández. Multi-view stereo: A tutorial. Foundations and Trends in Computer Graphics and Vision, 2015.

[12] Ravi Garg, Vijay Kumar BG, and Ian Reid. Unsupervised CNN for single view depth estimation: Geometry to the rescue. In ECCV, 2016.

[13] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for Autonomous Driving? The KITTI Vision Benchmark Suite. In CVPR, 2012.

[14] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014.

[15] Clément Godard, Oisin Mac Aodha, and Gabriel J Brostow. Unsupervised monocular depth estimation with left-right consistency. In CVPR, 2017.

[16] Xiaoyang Guo, Hongsheng Li, Shuai Yi, Jimmy Ren, and Xiaogang Wang. Learning monocular depth by distilling cross-domain stereo networks. In ECCV, 2018.

[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.

[18] Carol Barnes Hochberg and Julian E Hochberg. Familiar size and the perception of depth. The Journal of Psychology, 1952.

[19] Derek Hoiem, Alexei A Efros, and Martial Hebert. Automatic photo pop-up. TOG, 2005.

[20] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. FlowNet2: Evolution of optical flow estimation with deep networks. In CVPR, 2017.

[21] Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. In NeurIPS, 2015.

[22] Joel Janai, Fatma Güney, Anurag Ranjan, Michael Black, and Andreas Geiger. Unsupervised learning of multi-frame optical flow with occlusions. In ECCV, 2018.

[23] Huaizu Jiang, Erik Learned-Miller, Gustav Larsson, Michael Maire, and Greg Shakhnarovich. Self-supervised relative depth learning for urban scene understanding. In ECCV, 2018.

[24] Kevin Karsch, Ce Liu, and Sing Bing Kang. Depth transfer: Depth extraction from video using non-parametric sampling. PAMI, 2014.

[25] Alex Kendall, Hayk Martirosyan, Saumitro Dasgupta, Peter Henry, Ryan Kennedy, Abraham Bachrach, and Adam Bry. End-to-end learning of geometry and context for deep stereo regression. In ICCV, 2017.

[26] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv, 2014.

[27] KITTI Single Depth Evaluation Server. http://www.cvlibs.net/datasets/kitti/eval_depth.php?benchmark=depth_prediction. 2017.

[28] Maria Klodt and Andrea Vedaldi. Supervising the new with the old: learning SFM from SFM. In ECCV, 2018.

[29] Shu Kong and Charless Fowlkes. Pixel-wise attentional gating for parsimonious pixel labeling. arXiv, 2018.

[30] Yevhen Kuznietsov, Jörg Stückler, and Bastian Leibe. Semi-supervised deep learning for monocular depth map prediction. In CVPR, 2017.

[31] Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 3DV, 2016.

[32] Bo Li, Yuchao Dai, and Mingyi He. Monocular depth estimation with hierarchical fusion of dilated cnns and softweighted-sum inference. Pattern Recognition, 2018.

[33] Ruihao Li, Sen Wang, Zhiqiang Long, and Dongbing Gu. UnDeepVO: Monocular visual odometry through unsupervised deep learning. arXiv, 2017.

[34] Ruibo Li, Ke Xian, Chunhua Shen, Zhiguo Cao, Hao Lu, and Lingxiao Hang. Deep attention-based classification network for robust depth prediction. ACCV, 2018.

[35] Zhengqi Li and Noah Snavely. Megadepth: Learning single-view depth prediction from internet photos. In CVPR, 2018.

[36] Fayao Liu, Chunhua Shen, Guosheng Lin, and Ian Reid. Learning depth from single monocular images using deep convolutional neural fields. PAMI, 2015.

[37] Miaomiao Liu, Mathieu Salzmann, and Xuming He. Discrete-continuous depth estimation from a single image. In CVPR, 2014.

[38] Chenxu Luo, Zhenheng Yang, Peng Wang, Yang Wang, Wei Xu, Ram Nevatia, and Alan Yuille. Every pixel counts++: Joint learning of geometry and motion with 3D holistic understanding. arXiv, 2018.

[39] Yue Luo, Jimmy Ren, Mude Lin, Jiahao Pang, Wenxiu Sun, Hongsheng Li, and Liang Lin. Single view stereo matching. In CVPR, 2018.

[40] Reza Mahjourian, Martin Wicke, and Anelia Angelova. Unsupervised learning of depth and ego-motion from monocular video using 3D geometric constraints. In CVPR, 2018.

[41] Nikolaus Mayer, Eddy Ilg, Philipp Fischer, Caner Hazirbas, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. What makes good synthetic training data for learning disparity and optical flow estimation? IJCV, 2018.

[42] Nikolaus Mayer, Eddy Ilg, Philip Häusser, Philipp Fischer, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In CVPR, 2016.

[43] Ishit Mehta, Parikshit Sakurikar, and PJ Narayanan. Structured adversarial training for unsupervised monocular depth estimation. In 3DV, 2018.

[44] Raul Mur-Artal, Jose Maria Martinez Montiel, and Juan D Tardos. ORB-SLAM: a versatile and accurate monocular SLAM system. Transactions on Robotics, 2015.

[45] Jogendra Nath Kundu, Phani Krishna Uppala, Anuj Pahuja, and R. Venkatesh Babu. AdaDepth: Unsupervised content congruent adaptation for depth estimation. In CVPR, 2018.

[46] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In NeurIPS-W, 2017.

[47] Sudeep Pillai, Rares Ambrus, and Adrien Gaidon. Superdepth: Self-supervised, super-resolved monocular depth estimation. In ICRA, 2019.

[48] Andrea Pilzer, Dan Xu, Mihai Marian Puscas, Elisa Ricci, and Nicu Sebe. Unsupervised adversarial depth estimation using cycled generative networks. In 3DV, 2018.

[49] Matteo Poggi, Filippo Aleotti, Fabio Tosi, and Stefano Mattoccia. Towards real-time unsupervised monocular depth estimation on cpu. In IROS, 2018.

[50] Matteo Poggi, Fabio Tosi, and Stefano Mattoccia. Learning monocular depth estimation with unsupervised trinocular assumptions. In 3DV, 2018.

[51] Anurag Ranjan, Varun Jampani, Kihwan Kim, Deqing Sun, Jonas Wulff, and Michael J Black. Competitive collaboration: Joint unsupervised learning of depth, camera motion, optical flow and motion segmentation. In CVPR, 2019.

[52] Zhe Ren, Junchi Yan, Bingbing Ni, Bin Liu, Xiaokang Yang, and Hongyuan Zha. Unsupervised deep learning for optical flow estimation. In AAAI, 2017.

[53] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015.

[54] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 2015.

[55] Ashutosh Saxena, Min Sun, and Andrew Ng. Make3d: Learning 3d scene structure from a single still image. PAMI, 2009.

[56] Daniel Scharstein and Richard Szeliski. A taxonomy and evaluation of dense two-frame stereo correspondence algorithms. IJCV, 2002.

[57] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.

[58] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. PWC-Net: CNNs for optical flow using pyramid, warping, and cost volume. In CVPR, 2018.

[59] Jonas Uhrig, Nick Schneider, Lukas Schneider, Uwe Franke, Thomas Brox, and Andreas Geiger. Sparsity invariant CNNs. In 3DV, 2017.

[60] Benjamin Ummenhofer, Huizhong Zhou, Jonas Uhrig, Nikolaus Mayer, Eddy Ilg, Alexey Dosovitskiy, and Thomas Brox. DeMoN: Depth and motion network for learning monocular stereo. In CVPR, 2017.

[61] Sudheendra Vijayanarasimhan, Susanna Ricco, Cordelia Schmid, Rahul Sukthankar, and Katerina Fragkiadaki. SfM-Net: Learning of structure and motion from video. arXiv, 2017.

[62] Chaoyang Wang, Jose Miguel Buenaposada, Rui Zhu, and Simon Lucey. Learning depth from monocular videos using direct methods. In CVPR, 2018.

[63] Yang Wang, Yi Yang, Zhenheng Yang, Liang Zhao, and Wei Xu. Occlusion aware unsupervised learning of optical flow. In CVPR, 2018.

[64] Zhou Wang, Alan Conrad Bovik, Hamid Rahim Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. TIP, 2004.

[65] Jamie Watson, Michael Firman, Gabriel J Brostow, and Daniyar Turmukhambetov. Self-supervised monocular depth hints. In ICCV, 2019.

[66] Yiran Wu, Sihao Ying, and Lianmin Zheng. Size-to-depth: A new perspective for single image depth estimation. arXiv, 2018.

[67] Junyuan Xie, Ross Girshick, and Ali Farhadi. Deep3D: Fully automatic 2D-to-3D video conversion with deep convolutional neural networks. In ECCV, 2016.

[68] Nan Yang, Rui Wang, Jörg Stückler, and Daniel Cremers. Deep virtual stereo odometry: Leveraging deep depth prediction for monocular direct sparse odometry. In ECCV, 2018.

[69] Zhenheng Yang, Peng Wang, Yang Wang, Wei Xu, and Ram Nevatia. LEGO: Learning edge with geometry all at once by watching videos. In CVPR, 2018.

[70] Zhenheng Yang, Peng Wang, Wei Xu, Liang Zhao, and Ramakant Nevatia. Unsupervised learning of geometry with edge-aware depth-normal consistency. In AAAI, 2018.

[71] Zhichao Yin and Jianping Shi. GeoNet: Unsupervised learning of dense depth, optical flow and camera pose. In CVPR, 2018.

[72] Jure Žbontar and Yann LeCun. Stereo matching by training a convolutional neural network to compare image patches. JMLR, 2016.

[73] Huangying Zhan, Ravi Garg, Chamara Saroj Weerasekera, Kejie Li, Harsh Agarwal, and Ian Reid. Unsupervised learning of monocular depth estimation and visual odometry with deep feature reconstruction. In CVPR, 2018.

[74] Zhenyu Zhang, Chunyan Xu, Jian Yang, Ying Tai, and Liang Chen. Deep hierarchical guidance and regularization learning for end-to-end depth estimation. Pattern Recognition, 2018.

[75] Hang Zhao, Orazio Gallo, Iuri Frosio, and Jan Kautz. Loss functions for image restoration with neural networks. Transactions on Computational Imaging, 2017.

[76] Tinghui Zhou, Matthew Brown, Noah Snavely, and David Lowe. Unsupervised learning of depth and ego-motion from video. In CVPR, 2017.

[77] Daniel Zoran, Phillip Isola, Dilip Krishnan, and William T Freeman. Learning ordinal relationships for mid-level vision. In ICCV, 2015.

[78] Yuliang Zou, Zelun Luo, and Jia-Bin Huang. DF-Net: Unsupervised joint learning of depth and flow using cross-task consistency. In ECCV, 2018.