·★ MEMBER·PAPER·9 min read

Paper Walkthrough: Marigold V2 — Turning an Image Editor Into a State-of-the-Art Depth Estimator on One 32GB GPU

How Marigold V2 repurposes an image-editing diffusion transformer (Qwen-Image-Edit) into a state-of-the-art monocular depth estimator using QLoRA and two new losses — explained from first principles through normalization, single-step inference, iREPA, and SinkLoss.

Key points

  • Monocular depth estimation has no unique answer, because infinitely many 3D scenes are consistent with the same 2D image.
  • Marigold V2 extracts single-step inference from pretrained multi-step flow-matching DiT models, with quantization where needed, to stay cheap to run.
  • It improves AbsRel by 16–26% over the previous best on KITTI and ETH3D, resolving fur, foliage, and hair-thin edges.
  • Depth is normalized by taking the log, clipping the top and bottom 2% as outliers, and stretching onto [-1,1]; an L1 penalty on log depth coincides with AbsRel to first order.
  • Training is latent regression with the timestep fixed at t=0.5, and inference is a single subtraction of the predicted vector from the RGB latent.
ModalityimageTaskgeneration

Marigold V2: Revisiting Diffusion Transformers for Monocular Depth Estimation

Primary source — what this article is built on

undefined2026-09-08→undefined2026-09-11same month

Marigold V2: Revisiting Diffusion Transformers for Monocular Depth EstimationIgor Pavlovic, Thiemo Wandel, Anton Obukhov et al. · 2026-09-08 · v1arXiv:2609.08084Paper page·PDF
undefined

Monocular depth estimation is a ubiquitous yet highly ill-posed computer vision task, with downstream applications in scene reconstruction, computational photography, and robotics, among others. Despite the field's maturity, recent models still struggle to generalize to out-of-distribution inputs and to produce sharp and detailed depth maps. In this paper, we revisit Marigold, a set of techniques for repurposing modern image generation and editing models, powered by the diffusion transformer (DiT) architecture, into state-of-the-art monocular depth estimators. Our recipes target single-step inference from pretrained multi-step flow-matching models, with quantization where needed, preserving model capacity while remaining cheap to run. We analyze the artifacts of naive training and identify two effective remedies: aligning the model's internal representations with semantic features extracted from ground-truth, and adopting a 2-stage fine-tuning protocol built around a novel Sinkhorn-based loss. The results are crisper, cleaner depth maps that generalize well out-of-distribution, with 16-26% improvement in AbsRel over the previous best on KITTI and ETH3D. Qualitatively, our model resolves fur, foliage, and hair-thin edges that have eluded prior models. Furthermore, Marigold V2 achieves state-of-the-art results when applied to other dense regression tasks, such as surface normals estimation and intrinsic image decomposition. Project website: https://hf.co/spaces/huawei-bayerlab/marigold-v2-web


What This Paper Claims

Guessing depth from a single photograph is a problem with no unique answer: infinitely many 3D scenes are consistent with the same 2D image. Get it right anyway and a lot opens up — single-image 3D reconstruction, synthetic bokeh, AR compositing, obstacle awareness for robots.

The paper we read here is "Marigold V2: Revisiting Diffusion Transformers for Monocular Depth Estimation" (arXiv:2609.08084, SIGGRAPH Asia 2026 / ACM TOG).

The abstract runs roughly as follows. Recent models still fail to generalize to out-of-distribution inputs and cannot produce sharp, detailed depth maps. So the authors revisit Marigold, a set of techniques for repurposing modern image generation and editing models built on the diffusion transformer (DiT) architecture into state-of-the-art monocular depth estimators. Their recipes target single-step inference from pretrained multi-step flow-matching models, with quantization where needed, preserving model capacity while staying cheap to run. They analyze the artifacts of naïve training and identify two effective remedies — aligning the model's internal representations with semantic features extracted from ground-truth depth, and a 2-stage fine-tuning protocol built around a novel Sinkhorn-based loss. The result is crisper, cleaner depth maps that generalize well, with a 16–26% improvement in AbsRel over the previous best on KITTI and ETH3D, resolving fur, foliage, and hair-thin edges. The same recipe reaches state of the art on other dense regression tasks such as surface normals and intrinsic image decomposition.

The Analogy: Asking a Skilled Painter to Do Surveying

Depth estimation has two lineages. One trains a regressor on sensor-captured ground truth. The other — this paper's — reassigns a model that already knows how to paint into a surveying role. That works because a generative model, in order to produce plausible images, has implicitly learned occlusion, materials, and lighting. That world knowledge comes from billion-scale data; depth annotations only exist at million scale (§2.1).

The lineage has a chronic ailment, though: boundaries blur, thin structures vanish, and projecting to a point cloud leaves flying pixels floating around silhouettes. V2 is the paper that goes after that ailment directly (§2.4).

Prep Work: Normalize Depth in the Log Domain

Ground-truth metric depth DD is first converted into an affine-invariant normalized log-depth target dd (§3.1).

d=2(log⁡(D+ϵ)−d2d98−d2−12)d=2\left(\frac{\log(D+\epsilon)-d_{2}}{d_{98}-d_{2}}-\frac{1}{2}\right)
(1)

Here d2d_2 and d98d_{98} are the 2nd and 98th percentiles of log⁡(D+ϵ)\log(D+\epsilon). In plain words: take the log, clip the top and bottom 2% as outliers, and stretch what remains onto [−1,1][-1,1]. That throws away the "how many times larger" and "shifted by how many meters" ambiguity and keeps only the shape.

Why the log? In the representation comparison (Tab. 4), linear depth scores AbsRel 5.04 and disparity 5.28, while log depth wins at 4.72. The paper gives the reason as a one-liner: for small relative error ϵ\epsilon, log⁡xpred−log⁡xgt≈ϵ\log x_{\mathrm{pred}}-\log x_{\mathrm{gt}}\approx\epsilon, which means an L1L_1 penalty on log depth coincides with the AbsRel metric to first order. The ruler you train against and the ruler you are measured with are now the same ruler.

Adapting the DiT: Collapsing Multi-Step Diffusion Into One Subtraction

The backbone is the image-editing model Qwen-Image-Edit-2509. Its weights are quantized to 4 bits, and only rank-128 QLoRA adapters are trained (§3.2).

FIG 1QLoRA never touches the original weights — it trains two thin rank-r factors (ΔW = BA). Raise r and fidelity improves, but so does parameter count. This paper picks r = 128

The training objective is startlingly plain. The VAE encoder maps the RGB image and the normalized depth target into latents zIz_I and zdz_d; the target velocity is defined as v=zI−zdv=z_I-z_d; and the DiT fθf_\theta, conditioned on zIz_I with the timestep fixed at t=0.5t=0.5, is trained to regress it via Llatent=∥fθ(zI,t)−v∥22\mathcal{L}_{\mathrm{latent}}=\|f_\theta(z_I,t)-v\|_2^2. In words: predict, in one shot, the vector that points from the RGB latent to the depth latent. Because tt is fixed, the rectified-flow parameterization has no trajectory left to integrate and degenerates into plain latent regression. Inference is a single pass:

z^d=zI−fθ(zI,t)\hat{z}_{d}=z_{I}-f_{\theta}(z_{I},t)
(2)

Subtract the predicted vector from the RGB latent, run the VAE decoder, done. One subtraction instead of a sampling loop — that is what "cheap to run" actually means here. For background, see Flow Matching from scratch and the LoRA paper explained.

On top of latent supervision, the model is also supervised in pixel space, with an L1L_1 reconstruction loss and an L1L_1 spatial-gradient loss. The latter matches how sharply values step between neighboring pixels, which is exactly what edges are made of.

Per-pixel losses can pin down local values but cannot enforce consistency one level up — "this is a bush," "this is a railing." Detail therefore dissolves in cluttered regions (§3.3).…

What's behind this

§

Members-only from here

449 walkthroughs, 42 textbook chapters, 48 student units and 6 close readings — all included for $4.99/mo, with about three new explainers a day on average. Cancel any time; access runs to the end of the period.

Already a member? Sign in to keep reading

References

  1. Igor Pavlovic, Thiemo Wandel, Anton Obukhov, Luca Bartolomei et al.. (2026-09-08) Marigold V2: Revisiting Diffusion Transformers for Monocular Depth Estimation. arXiv:2609.08084Paper page·PDF

This article is written from the source paper above. Where they differ, the original is authoritative.

Published by TechAthletes · Editorial policy · How we cite · Corrections

Comments

Sign in to comment