Marigold: Diffusion-Based Monocular Depth Estimation
Repurposes a pretrained latent diffusion image generator via affine-invariant synthetic depth fine-tuning to predict crisp, zero-shot monocular depth maps with fine edge preservation.
Also known as Marigold
In the family Capture, reconstruction & splatting, depth
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
| Babylon.js 9.x | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
| Godot 4.7 | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
| Unity 6.0 | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
| Unreal 5.7 | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
| Blender 5.0 | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
| WebGPU W3C | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
| Metal | None found | Offline PyTorch/Diffusers monocular depth estimation; import resulting depth textures. |
How it works
Pretrained text-to-image diffusion models encode rich visual priors about object geometry, perspective, and occlusion. Marigold fine-tunes Stable Diffusion's U-Net exclusively on clean synthetic RGB-depth pairs (Hypersim, Virtual KITTI) using an affine-invariant depth parameterization encoded through the frozen VAE. At inference, concatenating the input RGB latent with Gaussian noise and running multi-step denoising (plus multi-sample test-time ensembling) recovers sharp, high-frequency depth boundaries on unseen real and stylized scenes.
When to choose it
Use for single-image 3D lifting, parallax/relighting pipelines, and depth-guided compositing when fine geometric silhouettes matter more than metric scale or millisecond speed. Prefer Depth Anything V2 when real-time video throughput is required.
Field marks
- Outputs affine-invariant relative depth (unknown global scale and shift)
- Multi-step stochastic sampling can flicker across video frames without temporal consistency
- Mirrors and transparent glass can confuse monocular priors
Sources
- primaryBingxin Ke, Anton Obukhov, Shengyu Huang, Nando Metzger, Rodrigo Caye Daudt, Konrad Schindler (2023). Repurposing Diffusion-Based Image Generators for Monocular Depth Estimation. arXiv preprint.Verified via datacite-arxiv · 2026-12-02doi:10.48550/arxiv.2312.02145 · arXiv:2312.02145