RealMonoDepth: Self-Supervised Monocular Depth Estimation for General Scenes

Mertalp Ocal, Armin MustafaarXiv 2020

Abstract

Monocular Depth Estimation (MDE) is a fundamental task in computer vision, yet existing self-supervised methods often struggle to generalize across diverse environments due to fixed camera baselines and inconsistent depth ranges. We present RealMonoDepth, a self-supervised framework that learns from both stereo pairs and "in-the-wild" videos. By utilizing a novel Scale Transform module and predicting scaled real depth rather than disparity, RealMonoDepth achieves state-of-the-art performance on both indoor and outdoor benchmarks, demonstrating robust zero-shot generalization.

Introduction

Predicting 3D structure from a single 2D image is an ill-posed problem. Traditional supervised methods rely on expensive ground-truth data, while self-supervised methods are typically constrained to specific domains (e.g., outdoor driving) because they assume a fixed camera geometry. A model trained on the KITTI dataset (0–500m range) typically fails in indoor settings (0–10m range). RealMonoDepth addresses this by moving away from disparity-based learning toward a scale-invariant depth representation.

Methodology

The core of RealMonoDepth is a U-Net architecture with a ResNet50 encoder that predicts a relative depth map $D_{rel}$. To anchor these predictions to metric scale, we introduce a Scale Transform:

$$D = \mu e^{D_{rel}}$$

where $\mu$ represents the median scene depth. During training, $\mu$ is estimated using Structure-from-Motion (SfM) techniques like COLMAP on video sequences. This approach stabilizes the output space, allowing the network to focus on scene structure rather than absolute magnitude.

Example depth map output demonstrating the model's ability to capture fine-grained scene structure in outdoor environments.

The model is trained using a combination of photometric consistency, geometric consistency across viewpoints, and adaptive smoothness losses. This multi-task loss ensures that the predicted depth is not only accurate for image reconstruction but also consistent in 3D space.

Experiments and Results

We trained the model on a diverse mix of datasets, including KITTI (outdoor) and the Mannequin Challenge (indoor). Evaluation across five benchmarks (KITTI, Make3D, NYUDv2, TUM-RGBD, and DIW) confirms the model's versatility.

On the KITTI benchmark, RealMonoDepth achieved an Absolute Relative Error (Abs Rel) of 0.108, outperforming domain-specific models like Monodepth2. More impressively, it significantly improved indoor performance on NYUDv2, reducing Abs Rel from 0.342 (Monodepth2) to 0.193. The model also showed strong zero-shot generalization on the Make3D and DIW datasets, proving it learns general geometric principles.

Histogram of depth values for a typical outdoor scene, illustrating the wide range of depths (up to 100m) the model must manage.

Conclusion

RealMonoDepth demonstrates that self-supervised monocular depth estimation can be generalized across vastly different environments. By predicting relative depth and applying a scale transform based on median scene depth, the model avoids the pitfalls of fixed-baseline disparity estimation. Future work will focus on improving robustness in dynamic scenes where the static-world assumption of SfM is violated.

Summary updated

BibTeX
@misc{ocal2020realmonodepth,
  author = {Mertalp Ocal and Armin Mustafa},
  title = {{RealMonoDepth: Self-Supervised Monocular Depth Estimation for General Scenes}},
  year = {2020},
  eprint = {2004.06267},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.06267},
}
Figure