Weakly-Supervised Monocular Depth Estimationwith Resolution-Mismatched Data

Jialei Xu, Yuanchao Bai, Xianming Liu, Junjun Jiang, Xiangyang JiarXiv 2021

Abstract

Monocular depth estimation typically requires large-scale datasets of paired high-resolution (HR) RGB images and HR depth maps. However, hardware constraints often result in a resolution mismatch, where active depth sensors provide significantly lower resolution (LR) data than standard color cameras. Training on such mismatched data leads to a "resolution-mismatched effect," causing performance degradation during HR inference. This paper introduces a weakly-supervised framework that leverages HR color images and LR depth ground truth. By employing a dual-resolution consistency strategy and an auxiliary depth reconstruction network for structural distillation, the proposed method achieves results competitive with fully supervised models without requiring HR depth labels.

Introduction

Monocular depth estimation is a fundamental task in computer vision, essential for applications in robotics, autonomous driving, and augmented reality. While deep learning has significantly advanced this field, the most successful models rely on full supervision with high-resolution (HR) depth maps. In practice, acquiring such data is difficult; while RGB sensors capture millions of pixels, LiDAR and Time-of-Flight sensors often produce sparse or low-resolution (LR) depth maps. Simply downsampling RGB images to match LR depth during training creates a domain gap—the "resolution-mismatched effect"—which hinders the model's ability to generalize to HR images at inference time.

Proposed Method

The core of the proposed approach is a weakly-supervised framework designed to bridge the resolution gap. It consists of two primary networks: the Monocular Depth Estimation Network (MDEN) and the Depth Reconstruction Network (DRN).

The proposed weakly-supervised framework architecture, featuring the MDEN and DRN with associated consistency and distillation losses.

The MDEN serves as the main predictor, utilizing an EfficientNet B5 backbone and a Vision Transformer (ViT)-based Ordinal Regression Module. To handle the resolution mismatch, the framework processes both HR and LR versions of the input image through shared weights. The DRN, an autoencoder trained to reconstruct LR depth maps, acts as a teacher network. It provides structural guidance to the MDEN through an Affinity Space Distillation loss, ensuring that the predicted HR depth maps maintain sharp boundaries and correct spatial relationships.

The training process is governed by a multi-faceted loss function:

  • LR and HR Reconstruction Losses: These ensure the predicted depth maps align with the available LR ground truth.
  • Consistency Loss: This forces the downsampled HR prediction to match the LR prediction, encouraging the network to learn scale-invariant features.
  • Affinity Space Distillation: This transfers structural knowledge from the DRN to the MDEN, refining the depth map details.

Experiments and Results

The framework was evaluated on the NYU Depth-v2 (indoor) and KITTI (outdoor) datasets. To simulate real-world constraints, the ground truth depth maps were treated as LR targets.

Quantitative comparison on the NYU Depth-v2 dataset. The proposed method (Ours) is highly competitive with state-of-the-art fully supervised models.

As shown in the results for NYU Depth-v2, the proposed weakly-supervised method achieves an Absolute Relative Error (REL) of 0.129 and a threshold accuracy ($\delta < 1.25$) of 81.5%. These metrics are remarkably close to fully supervised methods like DORN and EGCV, despite our model never seeing HR depth ground truth. On the KITTI dataset, the model achieved an REL of 0.071, even surpassing several fully supervised baselines. Ablation studies confirmed that the combination of HR reconstruction loss and affinity distillation is critical for producing high-quality, artifact-free depth maps.

Conclusion

This work demonstrates that high-resolution monocular depth estimation is achievable using only low-resolution depth supervision. By addressing the resolution-mismatched effect through dual-resolution consistency and structural distillation, the proposed framework offers a cost-effective alternative to traditional fully supervised training. While the current model relies on fixed downsampling ratios during training, it sets a strong foundation for future research into unconstrained resolution-mismatched depth estimation.

Summary updated

BibTeX
@misc{xu2021weakly,
  author = {Jialei Xu and Yuanchao Bai and Xianming Liu and Junjun Jiang and Xiangyang Ji},
  title = {{Weakly-Supervised Monocular Depth Estimationwith Resolution-Mismatched Data}},
  year = {2021},
  eprint = {2109.11573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.11573},
}
Figure