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.
Introduction
Estimating 3D depth from a single 2D image is a fundamental challenge in computer vision, essential for autonomous navigation and augmented reality. Traditionally, this required supervised learning with expensive LiDAR ground-truth data. To scale, researchers turned to self-supervised learning, where a model learns by reconstructing one frame of a video from another. If the model can predict the depth of a scene and the movement of the camera, it can mathematically warp adjacent frames to match. The error in this reconstruction serves as the training signal.
However, this approach faces three major hurdles: occlusions (where objects disappear behind others), the "static scene" assumption (where moving objects confuse the model), and texture copying (where depth maps incorrectly inherit visual patterns from the input image).
Proposed Methods
Monodepth2 addresses these challenges through three key algorithmic shifts rather than increased architectural complexity:
1. Per-Pixel Minimum Reprojection Loss
Standard models often average reconstruction errors across multiple frames. This penalizes the network for pixels that are occluded in one frame but visible in another, leading to blurry edges. Monodepth2 considers only the minimum error at each pixel, allowing the network to ignore frames where a pixel is occluded, resulting in much sharper object boundaries.
2. Auto-Masking Stationary Pixels
Self-supervision assumes the world is still and only the camera moves. When other objects move at the same speed as the camera, models often predict them at "infinite" depth. The authors introduced a binary mask: if the reconstruction error is higher than the difference between raw, unwarped frames, the model assumes the pixel is stationary relative to the camera and ignores it during training.
3. Full-Resolution Multi-Scale Sampling
To maintain stability, most models compute losses at multiple lower resolutions. Monodepth2 upsamples these low-res depth maps to the original input resolution before computing the loss. This ensures the network reconstructs high-frequency details and reduces "texture-copy" artifacts.
Key Results and Evaluation
The primary benchmark used is KITTI, specifically the Eigen split for depth and the Odometry split for camera pose. Monodepth2 set new records for monocular (M), stereo (S), and mixed (MS) training. On the KITTI Eigen split, the model achieved an Absolute Relative (Abs Rel) error of 0.115 for monocular training, a significant improvement over previous leaders.
Visually, the depth maps are noticeably cleaner. The "holes" previously seen on moving cars are eliminated by the auto-masking loss, and the boundaries around thin objects like poles are much more distinct. One of the most striking findings is that a relatively small ResNet-18 backbone, when paired with these improved loss functions, outperforms much larger and more complex models.
Conclusion
Monodepth2 demonstrates that rethinking loss functions and sampling strategies can yield better results than simply building more complex architectures. While it still struggles with non-Lambertian surfaces (like mirrors or glass) where brightness constancy fails, it significantly closes the gap between self-supervised and fully supervised monocular depth estimation.
Summary updated