Monocular Depth Estimation with Affinity, Vertical Pooling, and Label Enhancement

Yukang Gan, Xiangyu Xu, Wenxiu Sun, Liang Lin

Abstract

Monocular depth estimation is a fundamental yet challenging task in computer vision due to its inherent ambiguity. This paper presents a novel framework that incorporates architectural priors reflecting the physical structure of the world. By introducing an Affinity Layer for local pixel relationships and Vertical Pooling for spatial context, the model better captures scene geometry. Furthermore, we address the sparsity of training labels through a Label Enhancement technique leveraging stereo-vision matching. Our method demonstrates significant improvements on the KITTI benchmark, achieving state-of-the-art performance in both accuracy and detail preservation.

Introduction

Predicting a 3D depth map from a single 2D image is an "ill-posed" problem, as a single projection can correspond to infinitely many 3D configurations. While deep learning has significantly advanced this field, existing methods often struggle with three key issues:

  1. Neglect of Relative Features: Standard CNNs focus on absolute features like edges but often overlook the relationships between neighboring pixels.
  2. Suboptimal Spatial Aggregation: Conventional square pooling does not account for the vertical depth gradients typical in real-world driving scenes.
  3. Sparse Training Labels: LiDAR-based ground truth is often extremely sparse, covering only about 5% of pixels, which hinders the learning of fine-grained details.

Proposed Methods

The proposed architecture utilizes a multi-scale encoder-decoder structure enhanced by three primary innovations: the Affinity Layer, Task-Specific Vertical Pooling, and Label Enhancement.

Affinity Layer and Vertical Pooling

The Affinity Layer explicitly models the correlation between a pixel and its neighbors within a local window. This "relative feature" allows the network to enforce smoothness in regions of similar appearance while accurately identifying depth discontinuities at object boundaries. To exploit the geometric prior that depth typically changes along the vertical axis, the authors introduce vertical pooling with $H \times 1$ kernels, capturing long-range vertical context more effectively than standard square pooling.

Figure 1: The proposed pipeline featuring the Context Network (with Affinity Layer) and the multi-scale Refinement Module (incorporating Vertical Pooling).

Label Enhancement and Residual Learning

To overcome label sparsity, the authors utilize left-right image pairs from the KITTI dataset. An off-the-shelf stereo matching algorithm generates dense depth maps used as auxiliary supervision. Additionally, the network employs a multi-scale residual learning strategy, predicting a coarse map at low resolution and iteratively refining it at higher scales.

Experimental Results

The model was evaluated on several benchmarks, including KITTI Raw, NYU Depth v2, and Make3D. On the KITTI dataset, the proposed method achieved a 20.3% reduction in Root Mean Square Error (RMSE) compared to leading unsupervised methods. Ablation studies confirmed that the Affinity Layer and Vertical Pooling independently contribute to performance gains, with their combination yielding the best results.

Figure 2: Qualitative results on the KITTI dataset, showing the input image, the model's dense depth prediction, and the sparse LiDAR ground truth.

Conclusion

By integrating domain-specific geometric priors and leveraging stereo-vision for label densification, this work significantly advances monocular depth estimation. While the Affinity Layer introduces some computational overhead, the resulting improvements in edge preservation and global scene understanding represent a substantial step forward for autonomous navigation and 3D reconstruction tasks.

Summary updated

BibTeX
@inproceedings{gan2018monocular,
  author = {Yukang Gan and Xiangyu Xu and Wenxiu Sun and Liang Lin},
  title = {{Monocular Depth Estimation with Affinity, Vertical Pooling, and Label Enhancement}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01219-9\_14},
}
Figure