A Two-Stage Masked Autoencoder Based Network for Indoor Depth Completion

Kailai Sun, Zhou Yang, Qianchuan Zhao · DOI · OpenReview

Introduction

Depth sensing is a fundamental component of 3D reconstruction, robotics, and augmented reality. However, commodity-grade RGB-D cameras, such as the Kinect or RealSense, frequently produce incomplete depth maps. These "holes" or missing values occur when sensors encounter surfaces that are overly bright, glossy, transparent, or beyond their effective range. While numerous depth completion algorithms exist, many are tailored for sparse LiDAR data and struggle with the specific missing-data patterns and complex lighting of indoor environments.

To address these challenges, researchers have proposed a novel two-stage Transformer-based network. This approach treats missing depth data as "masks" and leverages a self-supervised Masked Autoencoder (MAE) framework combined with a multi-modal token fusion strategy to achieve high-fidelity depth completion.

Methodology: A Two-Stage Approach

The proposed architecture utilizes the Vision Transformer (ViT) as its backbone, structured into two distinct operational phases.

The two-stage framework: (a) MAE-based self-supervised pre-training and (b) supervised fine-tuning with multi-modal token fusion.

Stage 1: MAE-based Self-supervised Pre-training

In the first stage, the model undergoes self-supervised pre-training inspired by Masked Autoencoders. The researchers utilize "true" depth maps and corresponding RGB images, dividing them into patches and randomly masking 75% of the data. The encoder is tasked with processing only the unmasked patches, which are concatenated as a 4-channel RGB-D input. This forces the model to learn a robust latent representation of indoor scene geometry to accurately "hallucinate" the missing segments. This masking process serves as an effective proxy for the natural gaps found in real-world sensor data.

Stage 2: Supervised Fine-tuning with Token Fusion

The pre-trained model is subsequently fine-tuned using raw, incomplete depth data. To maximize the synergy between visual and geometric information, a Token Fusion mechanism is implemented at two levels:

  1. Input Level: RGB and depth patches are concatenated before entering the encoder.
  2. Token Level: The encoder’s output tokens are merged with depth tokens.

Additionally, a residual connection from the raw depth image to the intermediate tokens ensures the model retains original, accurate measurements while filling gaps. This dual-level fusion allows the model to better align visual textures from the RGB stream with the geometric structures of the depth stream.

Experimental Results

The model was primarily benchmarked on the Matterport3D dataset, consisting of over 100,000 indoor images. The results demonstrate a significant advancement over previous state-of-the-art (SOTA) methods.

  • Accuracy Metrics: The model achieved a Root Mean Square Error (RMSE) of 0.690m, a substantial improvement over existing methods like Struct-MDC (1.060m). It also reached a $\delta_{1.25}$ score of 0.852, indicating high precision.
  • Downstream Application: To validate its utility, the model was integrated into an ORB-SLAM3 pipeline for 3D reconstruction on the ICL-NUIM dataset. The completed depth maps reduced the Mean Error of the reconstruction from 0.138m to 0.086m, proving that enhanced depth completion directly improves the quality of digital twins.

Conclusion and Future Work

By reframing depth completion as a masked reconstruction task, this two-stage network provides a robust solution for indoor scene understanding. While the model achieves SOTA performance, the authors noted a tendency for the generated depth images to exhibit "blocky" or unsmooth grid patterns—a common artifact of patch-based Transformer processing. Future research will focus on refining these transitions to improve structural similarity (SSIM) and extending the model's robustness to more dynamic or poorly lit environments.

Summary updated

BibTeX
@misc{sun2024two,
  author = {Kailai Sun and Zhou Yang and Qianchuan Zhao},
  title = {{A Two-Stage Masked Autoencoder Based Network for Indoor Depth Completion}},
  year = {2024},
  eprint = {2406.09792},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09792},
}
Figure