---
id: "marigold-monocular-depth"
title: "Marigold: Diffusion-Based Monocular Depth Estimation"
aliases: [Marigold]
domain: "capture"
stage: "capture"
realtime: "offline"
platforms: [cuda, desktop-gpu]
year_introduced: 2023
inputs: [photos]
outputs: [depth]
style: "both"
dynamic: "static"
cost: "heavy"
authority: "Ke et al., 2023"
url: "https://texelatlas.vercel.app/t/marigold-monocular-depth/"
sources_verified_at: "2026-12-02"
---
# Marigold: Diffusion-Based Monocular Depth Estimation (Ke et al., 2023)

> 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.

## 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 use 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](https://texelatlas.vercel.app/t/depth-anything-v2.md) when real-time video throughput is required.

## Cost

heavy — Multi-step latent diffusion inference (~0.5–4s per image on desktop GPU); 1-step distilled LCM variants run faster.

## Failure modes

- 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

## Dataflow

- Inputs: photos
- Outputs: depth
- Platforms: cuda, desktop-gpu

## Sources

1. [primary] Bingxin Ke, Anton Obukhov, Shengyu Huang, Nando Metzger, Rodrigo Caye Daudt, Konrad Schindler (2023) Repurposing Diffusion-Based Image Generators for Monocular Depth Estimation. arXiv preprint. https://arxiv.org/abs/2312.02145 (verified via datacite-arxiv on 2026-12-02)
2. [implementation] prs-eth (2023) prs-eth/Marigold. https://github.com/prs-eth/Marigold License: Apache-2.0. (verified via github on 2026-12-02)

## Cite this entry

Texel. "Marigold: Diffusion-Based Monocular Depth Estimation." https://texelatlas.vercel.app/t/marigold-monocular-depth/ (accessed 2026-12-02).
