TL;DR
This paper introduces MaskingDepth, a novel semi-supervised framework for monocular depth estimation that significantly reduces reliance on large amounts of ground-truth depth data. By enforcing consistency between differently augmented views of an image and using an uncertainty-aware approach, MaskingDepth achieves state-of-the-art performance, especially in low-data regimes.
What Problem Does This Paper Address?
Estimating depth from a single monocular image is a crucial task for applications like augmented reality, virtual reality, and autonomous driving. Traditional supervised methods require vast amounts of paired image-depth data, which are expensive and difficult to acquire. While self-supervised methods exist, they often rely on stereo pairs or video sequences, which aren't always available, and can produce blurry depth maps at object boundaries. This paper tackles the challenge of achieving accurate monocular depth estimation with minimal labeled data by proposing a semi-supervised approach that leverages abundant unlabeled data.
Methods
MaskingDepth introduces a novel semi-supervised learning framework that enforces consistency between two branches: one processing a weakly-augmented image and the other a strongly-augmented image. The core innovations are:
- K-way Disjoint Masking: Inspired by masked image modeling in vision Transformers, this technique masks out portions of an image and reconstructs them. Unlike naive masking, K-way disjoint masking divides the image into K non-overlapping subsets, encodes them independently, and then reassembles them. This approach preserves geometric consistency and avoids scale ambiguity and the omission of small objects, which are issues with simpler masking strategies.
- Uncertainty-Aware Consistency Regularization: To ensure that only reliable depth predictions from the weakly-augmented branch are used as pseudo-labels for the strongly-augmented branch, the framework incorporates an uncertainty estimation module. This module helps filter out noisy pseudo-labels, leading to more robust training.
- Feature Consistency Loss: In addition to depth consistency, a feature consistency loss is applied to encourage similarity between encoded features from both branches, further aiding convergence.
The overall loss function combines a sparse supervised loss (for initial learning from limited labeled data), depth consistency loss, uncertainty loss, and feature consistency loss.
Datasets
The proposed MaskingDepth framework was evaluated on two standard datasets:
- KITTI dataset [20]: Primarily used for outdoor scenes.
- NYU-Depth-v2 dataset [54]: Used for indoor scenes.
The experiments involved training with varying numbers of labeled frames (100, 1,000, 10,000, and the full dataset) and utilizing unlabeled data from these datasets.
Key Insights and Ideas
- Masking for Depth Estimation: The paper demonstrates that masked image modeling techniques, when adapted carefully (like K-way disjoint masking), can serve as effective data augmentation for depth estimation, going beyond their typical use in classification tasks.
- Uncertainty is Key for Pseudo-Labels: Leveraging uncertainty estimation is crucial for making semi-supervised learning robust. By only trusting high-confidence pseudo-labels, the model avoids propagating errors from noisy predictions.
- Geometric Consistency Matters: Unlike tasks like image classification, depth estimation is highly sensitive to geometric distortions. The K-way disjoint masking approach is designed to maintain this geometric integrity while still providing strong augmentation.
- Performance Gains with Sparsity: The method shows remarkable robustness and superior performance when the amount of labeled data is significantly reduced, highlighting its practical value in real-world scenarios where data annotation is a bottleneck.
Key Results
- State-of-the-Art Performance: MaskingDepth achieves superior performance compared to other state-of-the-art semi-supervised methods on both KITTI and NYU-Depth-v2 datasets.
- Robustness to Sparse Labels: The framework demonstrates significant performance improvements even with as few as 100 labeled frames, outperforming baselines that experience a rapid decline in accuracy. For instance, on KITTI with 100 labeled frames, MaskingDepth achieves an AbsRel of 0.135, while a baseline struggles at 0.458.
- Effectiveness of Components: Ablation studies confirm the effectiveness of each proposed component (K-way disjoint masking, uncertainty estimation, and feature consistency loss).
- Domain Adaptation: The method shows promise for domain adaptation tasks, achieving reasonable performance when transferring from synthetic to real-world data.
Limitations and Future Work
- Limitations:
- The method may struggle to predict depth in sparse annotations like sky regions.
- While performing well on KITTI, the performance improvement is relatively less on images with a higher variety of content, such as those in the NYU-Depth-v2 dataset.
- Future Work:
- The authors plan to extend their method to other dense prediction tasks.
- They aim to apply the framework to various data domains and leverage newly studied data augmentation techniques.
- The ultimate goal is to free methods from data dependence and potentially replace existing self-supervised approaches that require specific datasets like stereo pairs or video sequences.
Summary updated