High Quality Monocular Depth Estimation via Transfer Learning

Ibraheem Alhashim, Peter WonkaarXiv 2018

Introduction: The Challenge of Monocular Depth

Monocular depth estimation—the task of predicting a 3D depth map from a single 2D RGB image—is a fundamental yet "ill-posed" problem in computer vision. Because a single 2D projection can correspond to infinitely many 3D configurations, models must learn sophisticated priors about object geometry and scene layout. While deep learning has advanced the field, many state-of-the-art models suffer from two primary drawbacks: low output resolution and blurry object boundaries. These limitations hinder applications like augmented reality (AR) occlusion and 3D reconstruction, where sharp depth discontinuities are essential.

Proposed Architecture: Simplicity and Transfer Learning

This research advocates for a "back-to-basics" approach, demonstrating that architectural complexity is not a prerequisite for high-quality depth maps. The authors propose a straightforward encoder-decoder network with skip connections, leveraging the power of transfer learning.

The proposed architecture utilizes a pre-trained DenseNet-169 encoder and a simple upsampling decoder with skip connections to produce high-resolution depth maps.

The core of the system is a DenseNet-169 encoder, pre-trained on ImageNet. By using a pre-trained backbone, the model inherits high-level features learned from millions of images, which proves highly effective for geometric tasks. The decoder is intentionally simple, consisting of bilinear upsampling blocks followed by standard convolutional layers. Skip connections from the encoder help preserve spatial details that are often lost during downsampling.

Training and Loss Functions

To ensure both numerical accuracy and visual quality, the authors employ a multi-component loss function consisting of a weighted sum of three parts:

  1. Point-wise L1 loss: Ensures the predicted depth values are close to the ground truth.
  2. Gradient loss: Specifically penalizes errors in high-frequency details, forcing the model to respect sharp object boundaries.
  3. Structural Similarity (SSIM) loss: Maintains the structural integrity of the scene, a metric commonly used in image reconstruction.

Additionally, the authors found that simple data augmentation, such as swapping color channels (e.g., red and green), significantly improved generalization and prevented overfitting.

Results and Qualitative Analysis

The proposed method is remarkably efficient, utilizing approximately 42.6 million parameters—less than half of the 110 million parameters used by competing models like DORN. Furthermore, it requires roughly three times fewer training iterations to reach peak performance.

Qualitative comparison on the NYU Depth v2 dataset. The proposed method (Ours) produces significantly sharper object boundaries and fewer artifacts compared to the previous state-of-the-art (DORN).

Quantitatively, the model achieved state-of-the-art results on the NYU Depth v2 dataset across nearly all metrics, including lower Root Mean Squared Error (RMSE). Qualitatively, the difference is even more pronounced. As shown in the comparison above, the model captures sharp edges and fine details that previous methods often blur into the background. This is further validated on the authors' new Unreal-1k dataset, which uses synthetic imagery to provide noise-free ground truth for rigorous evaluation.

Conclusion and Future Directions

While the model excels in dense indoor environments, it faced challenges with the sparse ground truth data of the KITTI dataset, suggesting that the edge-focused loss function may require dense supervision to converge optimally. Future work could explore more compact encoders (e.g., MobileNet) for real-time mobile applications and further investigate the gap between synthetic and real-world data generalization. Ultimately, this work proves that combining a strong pre-trained backbone with a simple, well-regularized decoder can outperform significantly more complex architectures.

Summary updated

BibTeX
@misc{alhashim2018high,
  author = {Ibraheem Alhashim and Peter Wonka},
  title = {{High Quality Monocular Depth Estimation via Transfer Learning}},
  year = {2018},
  eprint = {1812.11941},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.11941},
}
Figure