Guiding Monocular Depth Estimation Using Depth-Attention Volume

Lam Huynh, Phong Nguyen-Ha, Jiri Matas, Esa Rahtu, Janne HeikkiläECCV 2020

Abstract

Monocular depth estimation is a fundamental yet ill-posed challenge in computer vision. This paper presents the Depth-Attention Volume (DAV), a novel non-local attention mechanism that leverages the geometric prior of coplanarity to enhance depth prediction. By implicitly modeling the relationship between pixels on the same plane, the proposed architecture achieves state-of-the-art performance on indoor benchmarks like NYU-Depth-v2 and ScanNet. Notably, the model maintains high efficiency, utilizing up to 8x fewer parameters than competing methods and achieving real-time inference speeds of 218 FPS.

Introduction

Predicting 3D structure from a single 2D image is inherently ambiguous, as infinitely many 3D scenes can project to the same 2D representation. Current deep learning solutions typically address this through "brute-force" learning on large datasets, often resulting in massive, parameter-heavy models. These models frequently struggle in textureless regions—such as plain white walls—where local visual cues are insufficient for accurate depth estimation.

The authors of this work observe that indoor environments are largely composed of planar surfaces (e.g., walls, floors, ceilings). If a neural network can recognize that two distant pixels belong to the same plane, it can use the depth information from a feature-rich area to accurately predict the depth in a featureless area. This geometric insight forms the basis of the Depth-Attention Volume.

The Depth-Attention Volume (DAV)

The core innovation is the Depth-Attention Volume (DAV), a 4D tensor that functions as a non-local attention mechanism. Unlike standard self-attention which focuses on semantic or appearance similarity, the DAV is designed to capture geometric relationships. Specifically, for every pixel in an image, the DAV identifies other pixels that are likely to be coplanar.

Visualizing predicted vs ground-truth attention maps for coplanar regions.

To train this module, the authors derive ground-truth attention maps using coplanarity constraints. They consider both "fronto-parallel" planes (those parallel to the camera sensor) and "non-fronto-parallel" (slanted) planes. This allows the network to learn a wide variety of indoor geometries.

Architecture and Implementation

The proposed framework follows an encoder-decoder structure with the DAV module integrated at the bottleneck.

  1. Encoder: A simplified Dilated Residual Network (DRN-D-22) is used to extract high-resolution feature maps.
  2. DAV Module: This module predicts the attention volume from the encoder features. It employs a "cross-denormalization" technique to implicitly learn the planar relationships without requiring explicit plane segmentation during inference.
  3. Decoder: A lightweight up-scaling network produces the final high-resolution depth map.
Detailed architecture of the DAV-predictor module.

The model is trained using a dual-headed loss function. The depth loss ($\mathcal{L}_{depth}$) minimizes the error between predicted and ground-truth distances, while the attention loss ($\mathcal{L}_{attention}$) ensures the predicted DAV aligns with the geometric planes of the scene.

Experimental Results

The model was rigorously evaluated on several indoor datasets, including NYU-Depth-v2, ScanNet, and SUN-RGBD.

  • Accuracy and Efficiency: On the NYU-Depth-v2 benchmark, the model achieved a Mean Absolute Relative Error (REL) of 0.108. This performance matches or exceeds heavy-weight models while being significantly more efficient. For instance, it uses 25.1M parameters compared to over 200M in some competing architectures.
  • Real-time Performance: The model achieves a throughput of 218 FPS on a standard GTX-1080 GPU, making it suitable for latency-sensitive applications like robotics and augmented reality.
  • Generalization: Cross-dataset evaluations demonstrated that the DAV-equipped model generalizes better than baseline versions. This suggests that the coplanarity prior is a robust geometric property that holds across different environments and camera types.
  • Handling Textureless Areas: Analysis on the iBims-1 dataset showed that the DAV significantly reduces "planarity errors," confirming its ability to "borrow" depth information from textured corners to fill in blank walls.

Conclusion

By embedding geometric priors directly into the network architecture via the Depth-Attention Volume, the authors demonstrate that "smarter" models can outperform "larger" ones. The DAV provides a flexible, implicit way to enforce coplanarity, leading to improved accuracy in challenging indoor scenes and superior computational efficiency. Future work may explore extending this geometric attention to more complex outdoor environments or higher-resolution volumes.

Summary updated

BibTeX
@inproceedings{huynh2020guiding,
  author = {Lam Huynh and Phong Nguyen-Ha and Jiri Matas and Esa Rahtu and Janne Heikkilä},
  title = {{Guiding Monocular Depth Estimation Using Depth-Attention Volume}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58574-7\_35},
}
Figure