Semi-Supervised Adversarial Monocular Depth Estimation

Rongrong Ji, Ke Li, Yan Wang, Xiaoshuai Sun, Feng Guo, Xiaowei Guo, Yongjian Wu, Feiyue Huang, Jiebo Luo

TL;DR

This paper introduces a semi-supervised adversarial framework for monocular depth estimation that significantly reduces the need for expensive ground-truth depth data. By using a "three-player" GAN setup—one generator and two distinct discriminators—the model leverages vast amounts of unlabeled monocular images to achieve state-of-the-art accuracy, especially in data-scarce scenarios.

What Problem Does This Paper Address?

Monocular depth estimation (predicting 3D distance from a single 2D image) is a cornerstone of computer vision, but it suffers from a "data curse." State-of-the-art deep learning models typically require tens of thousands of image-depth pairs to train effectively. However, high-quality depth maps are notoriously difficult and expensive to acquire; sensors like LIDAR have limited resolution, and indoor sensors like the Kinect have fixed ranges and struggle with certain materials.

While unsupervised methods exist (using stereo pairs or video sequences), they introduce their own complexities, such as the need for perfect camera alignment. This paper tackles the middle ground: How can we train high-performing depth estimators using only a tiny fraction of labeled data supplemented by easily available, unlabeled "wild" images?

Methods

The authors propose a semi-supervised adversarial learning paradigm. The architecture consists of three main components:

  1. The Generator ($G$): A standard encoder-decoder CNN (the authors tested several backbones like U-Net and FCRN) that takes an RGB image and regresses a continuous depth map.
  2. The Pair Discriminator ($PD$): Based on the PatchGAN architecture, this network inspects the combination of the RGB image and the predicted depth map. Its job is to determine if the depth map "fits" the image content.
  3. The Depth Discriminator ($DD$): This network looks only at the predicted depth map. It learns the statistical "prior" of what a natural depth map should look like (e.g., smooth surfaces, sharp edges at object boundaries), regardless of the specific image content.

The "Aha!" Moment in the Math: The authors frame this as a Bayesian process. The Depth Discriminator ($DD$) accounts for the prior probability of depth $p(d)$, while the Pair Discriminator ($PD$) accounts for the joint distribution $p(d, I)$. Together, they provide a unified loss that forces the generator to produce depth maps that are both "natural-looking" and "contextually accurate."

Training alternates between supervised iterations (using L1 regression loss on labeled pairs) and semi-supervised iterations (using only the GAN feedback on unlabeled images).

Datasets

The framework was evaluated on three major benchmarks:

  • NYU Depth v2: Indoor scenes captured via Kinect. The authors specifically tested performance using a limited subset (e.g., only 500 images).
  • Make3D: A smaller outdoor dataset used to test the model's performance in data-constrained environments.
  • KITTI: A large-scale driving dataset.
  • Cityscapes: Used as a source of unlabeled monocular images to boost the performance of models trained on KITTI.

Key Insights and Ideas

  • The Power of Priors: The dual-discriminator approach is more effective than a single discriminator. The $DD$ prevents the model from generating "noisy" or "impossible" depth maps, while the $PD$ ensures the depth aligns with visual cues like perspective lines and object edges.
  • Diminishing Returns of Supervision: The authors found a "saturation point." Semi-supervised learning provides a massive boost when you have fewer than 1,000 labeled samples. However, if you already have 3,500+ high-quality labeled pairs, the benefit of adding unlabeled images starts to plateau.
  • Sharper Edges: Traditional regression losses (like L2) tend to produce blurry depth maps because they average out uncertainties. The adversarial loss encourages "high-frequency" details, resulting in much crisper object boundaries.

Key Results

  • Efficiency: On the NYU v2 dataset with only 500 labeled samples, the proposed method reduced the Relative (Rel) error by 28% and the RMSE by 43% compared to a purely supervised baseline.
  • State-of-the-Art: The model achieved SOTA results on the Make3D dataset with a Rel error of 0.153, outperforming models trained with significantly more data.
  • Domain Adaptation: The framework excels at "unseen" data. A model trained on KITTI (labeled) and Make3D (unlabeled) performed significantly better on Make3D tests than a model trained only on KITTI, proving the framework helps the model adapt to new environments without new labels.

Limitations and Future Work

  • Specular Surfaces: The model fails in regions with glass or mirrors. This is largely due to "flaws" in the training data; sensors like the Kinect provide incorrect depth readings for reflective surfaces, and the model learns these errors.
  • Computational Overhead: Training three networks simultaneously (one generator, two discriminators) is more computationally intensive than standard supervised learning.
  • Future Directions: The authors suggest exploring how to handle translucency and high reflectivity, perhaps by incorporating physics-based constraints into the discriminator's feedback.

Summary updated

BibTeX
@article{ji2020semi,
  author = {Rongrong Ji and Ke Li and Yan Wang and Xiaoshuai Sun and Feng Guo and Xiaowei Guo and Yongjian Wu and Feiyue Huang and Jiebo Luo},
  title = {{Semi-Supervised Adversarial Monocular Depth Estimation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2020},
  url = {https://openreview.net/forum?id=8trfRy1Bpfz},
}
Figure