Unsupervised Monocular Depth Estimation with Left-Right Consistency

Clément Godard, Oisin Mac Aodha, Gabriel J. Brostow

Abstract

Learning based methods have shown very promising results for the task of depth estimation in single images. However, most existing approaches treat depth prediction as a supervised regression problem and as a result, require vast quantities of corresponding ground truth depth data for training. Just recording quality depth data in a range of environments is a challenging problem. In this paper, we innovate beyond existing approaches, replacing the use of explicit depth data during training with easier-to-obtain binocular stereo footage. We propose a novel training objective that enables our convolutional neural network to learn to perform single image depth estimation, despite the absence of ground truth depth data. Exploiting epipolar geometry constraints, we generate disparity images by training our network with an image reconstruction loss. We show that solving for image reconstruction alone results in poor quality depth images. To overcome this problem, we propose a novel training loss that enforces consistency between the disparities produced relative to both the left and right images, leading to improved performance and robustness compared to existing approaches. Our method produces state of the art results for monocular depth estimation on the KITTI driving dataset, even outperforming supervised methods that have been trained with ground truth depth.

Introduction

Estimating the 3D structure of a scene from a single 2D image—monocular depth estimation—is a fundamental challenge in computer vision with critical applications in autonomous driving and robotics. Traditionally, the most effective models have relied on supervised learning, requiring massive datasets of images paired with precise "ground truth" depth measurements, typically from LiDAR. However, acquiring high-quality ground truth is difficult; LiDAR sensors are expensive, and the resulting data is often sparse and difficult to align with camera pixels.

This research explores an alternative: learning depth by observing the world through stereo vision. By leveraging the geometric relationship between two side-by-side cameras during training, the model can learn to predict depth from a single camera at test time, bypassing the need for explicit depth labels.

Methods

The core of the approach is treating depth estimation as an image reconstruction problem. During training, the network receives the left image of a stereo pair and predicts a disparity map. This disparity is then used to "warp" the right image to reconstruct the left view.

Comparison of training paradigms: Naïve, No LR, and the proposed 'Ours' with left-right consistency.

While previous unsupervised methods often produced blurry edges or artifacts, this paper introduces a Left-Right Disparity Consistency Loss. The network is tasked with predicting disparities for both the left and right images simultaneously. The consistency loss penalizes discrepancies between these two predicted views, forcing the model to learn a more robust underlying geometry. The total training objective includes:

  • Appearance Matching Loss: Combines $L1$ distance and SSIM to ensure visual fidelity of the reconstruction.
  • Disparity Smoothness Loss: An edge-aware term that encourages smooth depth transitions except at object boundaries.
  • LR Consistency Loss: The novel term ensuring agreement between the left and right disparity maps.

Results and Discussion

The model was evaluated on the KITTI (2015) dataset and Cityscapes, with generalization tests on Make3D. Quantitatively, the method achieved state-of-the-art performance for unsupervised monocular depth estimation, even surpassing some supervised models trained on ground truth LiDAR data.

Qualitative comparison of depth estimation results against ground truth and other state-of-the-art methods.

Qualitatively, the model excels at capturing fine details, such as street signs and poles, which are often lost in other methods. It operates in real-time, processing images in approximately 35ms on a modern GPU. However, limitations remain in occlusion zones—where pixels are only visible to one camera—and on specular or transparent surfaces like glass, which violate the Lambertian assumption of the reconstruction loss.

Conclusion

By replacing ground truth depth with stereo consistency, this work demonstrates that internal geometric constraints can be a more powerful signal than noisy, sparse supervision. The proposed left-right consistency loss significantly improves the accuracy and robustness of monocular depth estimation, providing a scalable path for training depth-aware models in diverse environments without expensive sensors.

Summary updated

BibTeX
@inproceedings{godard2017unsupervised,
  author = {Clément Godard and Oisin Mac Aodha and Gabriel J. Brostow},
  title = {{Unsupervised Monocular Depth Estimation with Left-Right Consistency}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=B14fR1MOZB},
}
Figure