Introduction
Estimating 3D depth from a single 2D image is a fundamental yet "ill-posed" problem in computer vision, as infinitely many 3D scenes can project to the same 2D image. While deep learning has significantly advanced this field, most existing models rely on local, pixel-wise regression losses such as $L_1$ or $L_2$ distance. These standard losses treat each pixel as independent, effectively ignoring the higher-order structural relationships between neighboring pixels that define object boundaries. Consequently, standard models often produce "blurry" depth maps that fail to capture sharp transitions at object edges.
This paper proposes a shift toward Adversarial Training to learn a non-local, context-aware loss function. By replacing or augmenting standard regression losses with a conditional GAN (cGAN) framework, the authors enable networks to produce sharper and more structurally accurate depth maps.
Methodology
The proposed system utilizes a conditional GAN architecture consisting of two competing networks:
- The Generator ($G$): A network (tested with both U-Net and joint CNN-CRF architectures) that transforms an RGB image into a predicted depth map.
- The Discriminator ($D$): A network that evaluates pairs of RGB images and depth maps, attempting to distinguish between "real" ground-truth pairs and "fake" pairs generated by $G$.
By attempting to fool the discriminator, the generator is forced to produce depth maps that are not only numerically close to the ground truth but also structurally realistic. To ensure stability and performance, the authors implemented several technical refinements:
- Patch-level Loss: The discriminator classifies $70 \times 70$ patches rather than the whole image, encouraging local consistency and fine-grained detail.
- Spectral Normalization: This technique bounds the Lipschitz constant of the networks, stabilizing the notoriously volatile GAN training process and preventing mode collapse.
- Hybrid Loss: The final objective function combines adversarial loss with a standard $L_1$ loss to maintain global numerical accuracy.
Key Results and Discussion
The authors evaluated their approach on three major benchmarks: NYUv2 (indoor), Make3D (outdoor), and KITTI (driving). The "Adversarial U-Net" (U-Net-Adv) demonstrated significant improvements over standard regression-based versions.
Quantitative Performance
- NYUv2: The relative error was reduced from 0.327 (standard U-Net) to 0.114 (Adversarial).
- Make3D: Achieved a relative error of 0.0646, setting a new state-of-the-art at the time of publication.
- KITTI: Achieved a relative error of 0.061.
Qualitative Improvements
Visually, the adversarial models produced much sharper object boundaries. As seen in the comparison figures, the "halo" effect commonly found around objects in standard regression models is significantly mitigated in the adversarial versions, leading to more distinct geometric textures.
An interesting finding was the Architecture Sensitivity: adversarial training benefited the U-Net architecture far more than the CNN-CRF. While the CNN-CRF already incorporates mathematical constraints for spatial consistency, the U-Net is more flexible but prone to blurriness. The GAN provides the structural guidance the U-Net lacks, resulting in a massive performance jump.
Conclusion and Future Work
Adversarial training effectively acts as a trainable loss function that captures geometric nuances static formulas cannot. While the results are promising, challenges remain regarding the computational cost of GAN training and the marginal improvements seen in already-constrained architectures like CNN-CRFs. Future research may explore unsupervised or self-supervised adversarial training to leverage larger, unlabeled datasets and further improve generalization across diverse environments.
Summary updated