Depth Map Decomposition for Monocular Depth Estimation

Jinyoung Jun, Jae-Han Lee, Chul Lee, Chang-Su Kim

Abstract

We propose a novel algorithm for monocular depth estimation that decomposes a metric depth map into a normalized depth map and scale features. The proposed network is composed of a shared encoder and three decoders, called G-Net, N-Net, and M-Net, which estimate gradient maps, a normalized depth map, and a metric depth map, respectively. M-Net learns to estimate metric depths more accurately using relative depth features extracted by G-Net and N-Net. The proposed algorithm has the advantage that it can use datasets without metric depth labels to improve the performance of metric depth estimation. Experimental results on various datasets demonstrate that the proposed algorithm not only provides competitive performance to state-of-the-art algorithms but also yields acceptable results even when only a small amount of metric depth data is available for its training.

Introduction

Monocular depth estimation (MDE)—predicting the distance of every pixel from a single 2D image—is a classic ill-posed problem in computer vision. A single image could represent many different 3D configurations depending on the camera's focal length and the scene's actual scale. Current deep learning models usually fall into two categories: relative depth estimators, which are robust but lack absolute measurements, and metric depth estimators, which provide absolute distances but require massive, precisely labeled datasets.

This paper introduces a "divide and conquer" approach to MDE by decomposing a metric depth map into a normalized depth map and scale features. By training a network to first master relative depth and surface gradients, the authors demonstrate that models can achieve state-of-the-art metric accuracy even when trained on significantly smaller datasets.

Methodology: Metric Depth Decomposition

The core innovation is the representation of a metric depth map ($M$) as a combination of a normalized depth map ($N$), a standard deviation ($\sigma_M$), and a mean depth ($\mu_M$). To implement this, the authors designed a multi-decoder architecture:

  • Shared Encoder: Uses an EfficientNet-B5 backbone to extract general image features.
  • G-Net (Gradient Decoder): Predicts horizontal and vertical depth gradients, forcing the model to learn sharp edges and local geometry.
  • N-Net (Normalized Decoder): Predicts a z-score normalized depth map. This scale-invariant representation allows the network to learn geometric structures regardless of specific camera parameters.
  • M-Net (Metric Decoder): The final stage that fuses features from G-Net and N-Net to produce the final metric depth. It includes a Mean Depth Residual (MDR) block that utilizes a Transformer encoder to capture global context for estimating the mean depth ($\mu_M$).
The overall network architecture (a) and detailed structure of decoders (b), illustrating the feature fusion between G-Net, N-Net, and M-Net.

To handle distant objects and improve training stability, the authors utilize an inverted depth representation ($1/(d+1)$). The training occurs in two phases: first, the model learns to predict gradients and normalized depth; then, the entire system is fine-tuned to output metric depth.

Experimental Results

The researchers evaluated their method across several major benchmarks, including NYUv2, HR-WSI, DIML-Indoor, and SUN RGB-D. The decomposition approach proved remarkably efficient; the model trained on only 795 images from NYUv2 (plus relative data) performed as well as traditional models trained on 50,000 images.

Qualitative comparison of input images with their corresponding metric and normalized depth maps across various indoor environments.

On the NYUv2 dataset, the proposed model achieved a state-of-the-art Relative Error (REL) of 0.100, surpassing previous leaders like AdaBins. Despite the three-decoder setup, the model is efficient, containing 102M parameters and running at 34.7 FPS—nearly 2.5x faster than other high-performing Vision Transformer-based models. Furthermore, the model showed superior cross-dataset robustness, proving that normalized depth features help it adapt to different camera geometries.

Conclusion

By decomposing the complex task of metric depth estimation into simpler sub-tasks—gradient and normalized depth prediction—this framework achieves high accuracy with significantly less labeled data. While currently focused on indoor scenes, the principles of this decomposition could extend to outdoor environments and zero-shot camera adaptation in future work.

Summary updated

BibTeX
@inproceedings{jun2022depth,
  author = {Jinyoung Jun and Jae-Han Lee and Chul Lee and Chang-Su Kim},
  title = {{Depth Map Decomposition for Monocular Depth Estimation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=EvcO7KwAYi},
}
Figure