Real-Time Monocular Depth Estimation With Sparse Supervision on Mobile

Mehmet Kerim Yücel, Valia Dimaridou, Anastasios Drosou, Albert Saà-GarrigaWorkshops @ CVPR 2021

Abstract

This paper presents a method for achieving state-of-the-art monocular depth estimation on mobile devices by optimizing the training pipeline rather than increasing model complexity. By integrating knowledge distillation, intermediate supervision, and automatic loss rebalancing, the authors developed a model that is up to 50x smaller than previous leading architectures while maintaining high accuracy and running at over 40 FPS on mobile GPUs.

Introduction

Monocular depth estimation—predicting 3D depth from a single 2D image—is critical for mobile applications such as Augmented Reality (AR), portrait mode effects, and 3D photo editing. However, the field has hit a "complexity wall": top-performing models typically rely on massive backbones like ResNet-101, which are too slow and power-hungry for mobile hardware. While lightweight models exist, they often suffer from significant accuracy drops. This research explores how to improve performance without adding parameters to the final inference architecture.

Proposed Method

The researchers focused on a systematic design space exploration, combining an efficient architecture with a sophisticated training strategy.

Efficient Architecture and Training Pipeline

The final model utilizes a MobileNetV2 encoder paired with a decoder inspired by FBNet. This U-Net style structure employs skip connections to preserve high-resolution details. To boost performance without increasing inference cost, the authors employed several advanced training techniques:

  1. Knowledge Distillation (KD): A high-capacity "Teacher" model provides soft labels to guide the smaller "Student" model. A pixel-wise RMSE regression loss was found to be most effective for this task.
  2. Intermediate Predictions: The model generates depth predictions at multiple stages of the decoder during training. These act as deep supervision for the encoder and are discarded at inference time.
  3. Automatic Loss Rebalancing: To manage multiple loss terms (ranking, RMSE, pairwise), the authors implemented an algorithm that automatically scales weights during training, prioritizing harder losses early on.
The training pipeline featuring MobileNetV2, teacher-student distillation, and automatic loss rebalancing.

Experimental Setup

The model was evaluated on several diverse datasets to ensure robustness:

  • NYUv2: Standard indoor depth benchmark.
  • DIW (Depth-in-the-Wild): A massive dataset of 495K images with relative depth annotations, serving as the primary benchmark.
  • RedWeb & Mannequin Challenge (MC): Used for baseline training and testing generalization.

Key Results

The proposed model demonstrates a significant breakthrough in the efficiency-accuracy trade-off for monocular depth estimation.

  • Efficiency: The base model contains only 2.6M parameters, a ~40x reduction compared to some 105M parameter competitors.
  • Accuracy: On the DIW benchmark, the model achieved a 0.1156 WHDR (Weighted Human Disagreement Rate). As shown in the figure below, this outperforms many models with 20x more parameters.
  • Mobile Performance: On a Samsung Galaxy S21 GPU, the base model runs at 37 FPS with a latency of just 27ms. A pruned version (1M parameters) reaches 44 FPS while maintaining a competitive 0.1208 WHDR.
Comparison of DIW WHDR vs. Parameter Count, showing the proposed models (Ours) achieving superior accuracy with significantly fewer parameters.

Conclusion and Future Work

This work proves that a 2.6M parameter model can outperform 50M+ parameter models through a sophisticated training pipeline. While the model excels at relative depth estimation for "in-the-wild" scenarios, a gap remains in absolute metric depth performance compared to models optimized specifically for indoor datasets like NYUv2. Future work may involve exploring more powerful teacher ensembles or hardware-specific optimizations such as INT8 quantization to further enhance mobile performance.

Summary updated

BibTeX
@inproceedings{yucel2021real,
  author = {Mehmet Kerim Yücel and Valia Dimaridou and Anastasios Drosou and Albert Saà-Garriga},
  title = {{Real-Time Monocular Depth Estimation With Sparse Supervision on Mobile}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00275},
}
Figure