TL;DR
This paper introduces Marigold-DC, a novel zero-shot depth completion method that leverages a pre-trained diffusion model (Marigold) and guides its inference with sparse depth measurements at test time. This approach achieves state-of-the-art performance across diverse datasets without requiring any task-specific fine-tuning, demonstrating the power of strong visual priors for generalization.
What Problem Does This Paper Address?
Depth completion aims to transform sparse depth measurements into dense, high-resolution depth maps, typically using a corresponding RGB image as guidance. Traditional methods often struggle with generalization to new domains or varying sparsity levels of depth data, leading to performance degradation. This is problematic because depth sensors are not standardized, and real-world applications often involve diverse and unpredictable depth input. The authors propose that this lack of generalization stems from a reliance on task-specific training rather than leveraging the rich visual understanding already present in powerful pre-trained models.
Methods
Marigold-DC builds upon the Marigold model, a latent diffusion model (LDM) pre-trained for monocular depth estimation. The core innovation lies in how Marigold-DC integrates sparse depth guidance during the inference phase, without any architectural changes or retraining of the base Marigold model.
Here's a breakdown of their approach:
- Guided Diffusion: The method treats depth completion as a guided monocular depth estimation task. It starts with a pre-trained Marigold model and injects sparse depth measurements as a "guidance signal" during the diffusion process.
- Test-Time Optimization: Instead of training, Marigold-DC uses test-time optimization. At each denoising step, it generates a "preview" of the depth map, scales and shifts it using learnable affine parameters, and then computes a loss between this preview and the sparse ground truth depth.
- Backpropagation: Gradients from this loss are backpropagated to update not only the learnable scale and shift parameters but also the latent representation of the depth map itself. This allows the model to dynamically refine its predictions based on the sparse guidance.
- Affine-Invariant Prior: Marigold's inherent affine-invariant nature is leveraged, meaning it learns depth relative to the image, and Marigold-DC then anchors this relative depth to metric space using the sparse measurements.
- Ensembling: To further improve robustness and reduce variability inherent in generative models, Marigold-DC employs an ensembling procedure, generating multiple depth maps with different initial noise seeds and taking the pixel-wise median.
Datasets
The paper evaluates Marigold-DC on six real-world datasets:
- NYU-Depth V2: Indoor scenes captured with an RGB-D sensor.
- ScanNet: Indoor room scans from a commodity RGB-D sensor.
- VOID: Indoor and outdoor scenes from an active stereo sensor.
- iBims-1: High-quality indoor RGB-D dataset from a laser scanner.
- KITTI DC: Driving scenes with paired RGB images and sparse LiDAR depth.
- DDAD: Autonomous driving dataset with a 360° multi-camera setup and long-range LiDAR.
The base Marigold model was trained exclusively on synthetic data from Hypersim and Virtual KITTI.
Key Insights and Ideas
- Depth Completion as Guided Monocular Depth Estimation: The paper reframes depth completion not as inpainting sparse depth, but as a constrained form of monocular depth estimation. This perspective allows leveraging the powerful generalization capabilities of pre-trained monocular depth models.
- The Power of Visual Priors for Generalization: The success of Marigold-DC highlights that strong, pre-trained visual priors (like those in diffusion models) are crucial for robust generalization, outperforming methods that rely solely on task-specific training.
- Test-Time Guidance is Sufficient: The method demonstrates that injecting sparse depth information as guidance during inference, without any fine-tuning, is highly effective. This significantly reduces the need for extensive training data and domain-specific adaptation.
- Affine-Invariant Models are Key: Marigold's affine-invariant nature, which predicts depth relative to the image, is well-suited for this approach. Marigold-DC then anchors this relative prediction to metric space using the sparse guidance.
Key Results
Marigold-DC achieves state-of-the-art performance on all tested zero-shot benchmarks, significantly outperforming existing methods.
- Quantitative: On datasets like NYU-Depth V2 and ScanNet, Marigold-DC shows substantial improvements in Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) compared to baselines. For instance, on NYU-Depth V2, it achieves an MAE of 0.017 and RMSE of 0.057 with ensembling.
- Qualitative: The method produces visually plausible and accurate depth maps, preserving fine details and correctly inferring scene layout, even in challenging scenarios with sparse guidance. It handles variations in sparsity and density much better than previous approaches.
- Zero-Shot Performance: The most impressive result is its strong performance in zero-shot settings, meaning it generalizes to datasets it was never trained on, without any task-specific fine-tuning.
Limitations and Future Work
- Computational Overhead: The iterative nature of diffusion models and the ensembling process introduce computational overhead, leading to longer inference times.
- Initialization Sensitivity: While the min-max initialization works well, the paper acknowledges that it might struggle with highly unrepresentative sparse depth distributions. Future work could explore more robust initialization strategies or adaptive switching between methods.
- Future Directions: The authors suggest reducing inference time and exploring alternative guidance cues as promising avenues for future research. They also aim to inspire further work on methods that prioritize generalization and robustness for depth completion.
Summary updated