GasMono: Geometry-Aided Self-Supervised Monocular Depth Estimation for Indoor Scenes

Chaoqiang Zhao, Matteo Poggi, Fabio Tosi, Lei Zhou, Qiyu Sun, Yang Tang, Stefano Mattoccia

Abstract

Self-supervised monocular depth estimation has achieved significant success in outdoor environments, yet indoor scenes remain a challenge due to complex handheld camera motions and large textureless regions. We present GasMono, a framework that integrates classical geometry with modern deep learning. By leveraging Structure-from-Motion (SfM) for pose initialization, a Transformer-based architecture for global reasoning, and an iterative self-distillation process, GasMono establishes a new state-of-the-art for indoor depth estimation.

Introduction

Estimating depth from a single image without manual labels is a cornerstone of computer vision, particularly for autonomous navigation and augmented reality. While models like Monodepth2 excel in outdoor driving scenarios, they often fail indoors. Indoor environments present two primary hurdles:

  1. Complex Ego-Motion: Handheld cameras undergo erratic rotations that standard PoseNets cannot accurately model, leading to geometric inconsistencies.
  2. Low Texture: Featureless surfaces like white walls provide no gradients for the photometric loss functions used in self-supervised learning, causing models to get stuck in local minima.

GasMono addresses these issues by bridging the gap between classical geometric priors and the representational power of Vision Transformers.

Methodology

The GasMono framework consists of three main components designed to stabilize training and improve accuracy in challenging indoor settings.

Overview of the GasMono framework, illustrating the integration of COLMAP for coarse poses, AlignNet for scale refinement, and the iterative self-distillation (ISD) loop.

Geometry-Aided Pose Estimation

Rather than training a PoseNet from scratch, GasMono utilizes COLMAP, a classical SfM tool, to generate coarse camera poses from monocular sequences. To resolve the scale inconsistency inherent in SfM across different videos, the authors introduce AlignNet, which learns a scaling factor, and a residual PoseNet to fine-tune rotations. This hybrid approach provides a more stable geometric foundation than purely neural methods.

Transformer-based Architecture

To combat the "low texture" problem, GasMono employs a Multi-Path Vision Transformer (MPViT) encoder. Unlike traditional Convolutional Neural Networks (CNNs) that focus on local patches, Transformers utilize global self-attention. This allows the model to infer the depth of a featureless wall by attending to distant, textured regions like room corners or furniture.

Iterative Self-Distillation (ISD)

The framework incorporates an "overfitting-aware" mechanism. The model generates pseudo-depth labels, filters them based on reconstruction error to select high-quality pixels, and iteratively retrains on this distilled data. This process allows the network to self-correct and refine its predictions over multiple training passes.

Handling Textureless Regions

The shift from CNNs to Transformers is critical for indoor scenes. CNNs are often "blind" in the middle of a white wall because local 3x3 kernels cannot distinguish between different parts of a uniform surface.

Comparison between ResNet (CNN) and MPViT (Transformer) encoders. The Transformer-based MPViT correctly identifies depth in featureless wall regions (circled), whereas the CNN produces artifacts or incorrect gradients.

As shown in the figure above, the global receptive field of the Transformer allows it to maintain structural coherence where local methods fail, effectively "reasoning" about the distance of a blank wall based on its surroundings.

Experimental Results

GasMono was evaluated on several benchmarks, including NYUv2, ScanNet, and 7scenes, establishing a new state-of-the-art for indoor self-supervised depth:

  • NYUv2 Performance: GasMono achieved a significant reduction in Absolute Relative (Abs Rel) error, moving from the previous best of 0.130 down to 0.113.
  • Generalization: In zero-shot testing on ScanNet, the model outperformed several supervised competitors, indicating it learns robust geometric principles rather than dataset-specific textures.
  • Qualitative Improvements: Visual results show much sharper boundaries for thin objects (like chair legs) and more consistent depth maps for large planar surfaces compared to previous methods.

Conclusion and Future Work

GasMono demonstrates that combining classical geometry with modern Transformer architectures can overcome the long-standing difficulties of indoor self-supervised depth estimation. While the reliance on COLMAP introduces a pre-processing step and the ISD mechanism increases training time, the resulting gains in accuracy and robustness are substantial. Future research may focus on integrating these geometric priors more tightly into the end-to-end training pipeline to reduce computational overhead and enable real-time applications.

Summary updated

BibTeX
@inproceedings{zhao2023gasmono,
  author = {Chaoqiang Zhao and Matteo Poggi and Fabio Tosi and Lei Zhou and Qiyu Sun and Yang Tang and Stefano Mattoccia},
  title = {{GasMono: Geometry-Aided Self-Supervised Monocular Depth Estimation for Indoor Scenes}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.01485},
}
Figure