Abstract
Metric depth estimation from consumer-grade sensors often suffers from noise, holes, and edge distortions. We present a novel two-stage framework that leverages the stochastic nature of diffusion models to identify unreliable sensor data through uncertainty maps. By combining generative stochastic estimation with deterministic refinement, our method produces dense, high-fidelity metric depth maps, significantly outperforming existing baselines on real-world datasets like DIODE and NYUv2.
Introduction
Depth sensors such as LiDAR and Time-of-Flight (ToF) cameras are increasingly integrated into mobile devices and robotics. However, these sensors frequently fail on reflective surfaces, transparent objects, or at long ranges, resulting in incomplete and noisy depth maps. Current approaches typically fall into monocular depth estimation, which lacks absolute scale, or depth completion, which struggles with high input noise. This paper addresses the gap by automatically distinguishing between reliable and unreliable sensor pixels to reconstruct clean, metric-accurate scenes.
Methodology
The proposed framework consists of a two-stage pipeline: Stochastic Estimation followed by Deterministic Refinement.
1. Stochastic Estimation
The first stage employs a Latent Diffusion Model (LDM) trained on clean, synthetic data. During inference, the model is applied to raw, noisy real-world data. By executing the denoising process multiple times (e.g., $N=10$), the system calculates pixel-wise mean and variance. High variance indicates regions where the sensor data is unreliable, forcing the model to rely on its learned priors. This variance serves as a robust uncertainty map.
2. Deterministic Refinement
The uncertainty map is converted into a certainty mask. High-confidence pixels are preserved, while low-confidence regions are treated as missing data. A refinement network, based on the MSPN architecture, then propagates reliable depth values into these regions, ensuring global structural consistency and sharp object boundaries.
Experimental Results
The framework was evaluated on several datasets, including DIODE-Indoor, NYUv2, and ScanNet, after being trained exclusively on the synthetic Hypersim dataset.
Key quantitative findings include:
- Noise Robustness: On the DIODE dataset, the proposed method improved the Root Mean Square Error (RMSE) by 21.2% over raw sensor data.
- Generalization: Despite the synthetic-to-real domain gap, the model outperformed state-of-the-art methods on real-world benchmarks.
- High-Noise Performance: In simulated noise tests on NYUv2, the framework improved MSPN performance by 289% at a 20% noise ratio.
Discussion and Conclusion
A key insight of this work is that the domain gap between synthetic training data and real-world inference can be utilized as a feature to detect noise. By normalizing depth and using least-squares fitting, the model maintains metric scale without memorizing specific distances.
Limitations include computational overhead due to multiple diffusion runs and challenges with "infinite" depth regions like the sky in outdoor environments. Future work will explore faster inference techniques and adaptive regression for finer texture details.
Summary updated