import{s as ol,n as pl,o as rl}from"../chunks/scheduler.182ea377.js";import{S as dl,i as cl,g as n,s as a,r,A as ml,h as o,f as l,c as i,j as nl,u as d,x as p,k as g,l as jt,y as hl,a as s,v as c,d as m,t as h,w as u}from"../chunks/index.abf12888.js";import{C as T}from"../chunks/CodeBlock.57fe6e13.js";import{H as J,E as ul}from"../chunks/EditOnGithub.9b8e78e4.js";function gl(vt){let y,we,ye,be,I,Ze,W,Ut='<a href="../api/pipelines/marigold">Marigold</a> is a novel diffusion-based dense prediction approach, and a set of pipelines for various computer vision tasks, such as monocular depth estimation.',je,G,Bt="This guide will show you how to use Marigold to obtain fast and high-quality predictions for images and videos.",ve,x,It=`Each pipeline supports one Computer Vision task, which takes an input RGB image as input and produces a <em>prediction</em> of the modality of interest, such as a depth map of the input image.
Currently, the following tasks are implemented:`,Ue,k,Wt='<thead><tr><th>Pipeline</th> <th>Predicted Modalities</th> <th align="center">Demos</th></tr></thead> <tbody><tr><td><a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/marigold/pipeline_marigold_depth.py" rel="nofollow">MarigoldDepthPipeline</a></td> <td><a href="https://en.wikipedia.org/wiki/Depth_map" rel="nofollow">Depth</a>, <a href="https://en.wikipedia.org/wiki/Binocular_disparity" rel="nofollow">Disparity</a></td> <td align="center"><a href="https://huggingface.co/spaces/prs-eth/marigold-lcm" rel="nofollow">Fast Demo (LCM)</a>, <a href="https://huggingface.co/spaces/prs-eth/marigold" rel="nofollow">Slow Original Demo (DDIM)</a></td></tr> <tr><td><a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/marigold/pipeline_marigold_normals.py" rel="nofollow">MarigoldNormalsPipeline</a></td> <td><a href="https://en.wikipedia.org/wiki/Normal_mapping" rel="nofollow">Surface normals</a></td> <td align="center"><a href="https://huggingface.co/spaces/prs-eth/marigold-normals-lcm" rel="nofollow">Fast Demo (LCM)</a></td></tr></tbody>',Be,_,Gt=`The original checkpoints can be found under the <a href="https://huggingface.co/prs-eth/" rel="nofollow">PRS-ETH</a> Hugging Face organization.
These checkpoints are meant to work with diffusers pipelines and the <a href="https://github.com/prs-eth/marigold" rel="nofollow">original codebase</a>.
The original code can also be used to train new checkpoints.`,Ie,R,xt='<thead><tr><th>Checkpoint</th> <th>Modality</th> <th>Comment</th></tr></thead> <tbody><tr><td><a href="https://huggingface.co/prs-eth/marigold-v1-0" rel="nofollow">prs-eth/marigold-v1-0</a></td> <td>Depth</td> <td>The first Marigold Depth checkpoint, which predicts <em>affine-invariant depth</em> maps. The performance of this checkpoint in benchmarks was studied in the original <a href="https://huggingface.co/papers/2312.02145" rel="nofollow">paper</a>. Designed to be used with the <code>DDIMScheduler</code> at inference, it requires at least 10 steps to get reliable predictions. Affine-invariant depth prediction has a range of values in each pixel between 0 (near plane) and 1 (far plane); both planes are chosen by the model as part of the inference process. See the <code>MarigoldImageProcessor</code> reference for visualization utilities.</td></tr> <tr><td><a href="https://huggingface.co/prs-eth/marigold-depth-lcm-v1-0" rel="nofollow">prs-eth/marigold-depth-lcm-v1-0</a></td> <td>Depth</td> <td>The fast Marigold Depth checkpoint, fine-tuned from <code>prs-eth/marigold-v1-0</code>. Designed to be used with the <code>LCMScheduler</code> at inference, it requires as little as 1 step to get reliable predictions. The prediction reliability saturates at 4 steps and declines after that.</td></tr> <tr><td><a href="https://huggingface.co/prs-eth/marigold-normals-v0-1" rel="nofollow">prs-eth/marigold-normals-v0-1</a></td> <td>Normals</td> <td>A preview checkpoint for the Marigold Normals pipeline. Designed to be used with the <code>DDIMScheduler</code> at inference, it requires at least 10 steps to get reliable predictions. The surface normals predictions are unit-length 3D vectors with values in the range from -1 to 1. <em>This checkpoint will be phased out after the release of <code>v1-0</code> version.</em></td></tr> <tr><td><a href="https://huggingface.co/prs-eth/marigold-normals-lcm-v0-1" rel="nofollow">prs-eth/marigold-normals-lcm-v0-1</a></td> <td>Normals</td> <td>The fast Marigold Normals checkpoint, fine-tuned from <code>prs-eth/marigold-normals-v0-1</code>. Designed to be used with the <code>LCMScheduler</code> at inference, it requires as little as 1 step to get reliable predictions. The prediction reliability saturates at 4 steps and declines after that. <em>This checkpoint will be phased out after the release of <code>v1-0</code> version.</em></td></tr></tbody>',We,X,kt=`The examples below are mostly given for depth prediction, but they can be universally applied with other supported modalities.
We showcase the predictions using the same input image of Albert Einstein generated by Midjourney.
This makes it easier to compare visualizations of the predictions across various modalities and checkpoints.`,Ge,M,_t='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://marigoldmonodepth.github.io/images/einstein.jpg"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Example input image for all Marigold pipelines</figcaption></div>',xe,C,ke,V,Rt="To get the first depth prediction, load <code>prs-eth/marigold-depth-lcm-v1-0</code> checkpoint into <code>MarigoldDepthPipeline</code> pipeline, put the image through the pipeline, and save the predictions:",_e,z,Re,E,Xt=`The visualization function for depth <code>visualize_depth()</code> applies one of <a href="https://matplotlib.org/stable/users/explain/colors/colormaps.html" rel="nofollow">matplotlib’s colormaps</a> (<code>Spectral</code> by default) to map the predicted pixel values from a single-channel <code>[0, 1]</code> depth range into an RGB image.
With the <code>Spectral</code> colormap, pixels with near depth are painted red, and far pixels are assigned blue color.
The 16-bit PNG file stores the single channel values mapped linearly from the <code>[0, 1]</code> range into <code>[0, 65535]</code>.
Below are the raw and the visualized predictions; as can be seen, dark areas (mustache) are easier to distinguish in the visualization:`,Xe,w,Ct='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_lcm_depth_16bit.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Predicted depth (16-bit PNG)</figcaption></div> <div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_lcm_depth.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Predicted depth visualization (Spectral)</figcaption></div>',Ce,N,Ve,H,Vt="Load <code>prs-eth/marigold-normals-lcm-v0-1</code> checkpoint into <code>MarigoldNormalsPipeline</code> pipeline, put the image through the pipeline, and save the predictions:",ze,Y,Ee,q,zt=`The visualization function for normals <code>visualize_normals()</code> maps the three-dimensional prediction with pixel values in the range <code>[-1, 1]</code> into an RGB image.
The visualization function supports flipping surface normals axes to make the visualization compatible with other choices of the frame of reference.
Conceptually, each pixel is painted according to the surface normal vector in the frame of reference, where <code>X</code> axis points right, <code>Y</code> axis points up, and <code>Z</code> axis points at the viewer.
Below is the visualized prediction:`,Ne,f,Et='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_lcm_normals.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Predicted surface normals visualization</figcaption></div>',He,S,Nt=`In this example, the nose tip almost certainly has a point on the surface, in which the surface normal vector points straight at the viewer, meaning that its coordinates are <code>[0, 0, 1]</code>.
This vector maps to the RGB <code>[128, 128, 255]</code>, which corresponds to the violet-blue color.
Similarly, a surface normal on the cheek in the right part of the image has a large <code>X</code> component, which increases the red hue.
Points on the shoulders pointing up with a large <code>Y</code> promote green color.`,Ye,$,qe,L,Ht=`The above quick start snippets are already optimized for speed: they load the LCM checkpoint, use the <code>fp16</code> variant of weights and computation, and perform just one denoising diffusion step.
The <code>pipe(image)</code> call completes in 280ms on RTX 3090 GPU.
Internally, the input image is encoded with the Stable Diffusion VAE encoder, then the U-Net performs one denoising step, and finally, the prediction latent is decoded with the VAE decoder into pixel space.
In this case, two out of three module calls are dedicated to converting between pixel and latent space of LDM.
Because Marigold’s latent space is compatible with the base Stable Diffusion, it is possible to speed up the pipeline call by more than 3x (85ms on RTX 3090) by using a <a href="../api/models/autoencoder_tiny">lightweight replacement of the SD VAE</a>:`,Se,Q,$e,F,Yt='As suggested in <a href="../optimization/torch2.0#torch.compile">Optimizations</a>, adding <code>torch.compile</code> may squeeze extra performance depending on the target hardware:',Le,A,Qe,D,Fe,P,qt='With the above speed optimizations, Marigold delivers predictions with more details and faster than <a href="https://huggingface.co/docs/transformers/main/en/model_doc/depth_anything" rel="nofollow">Depth Anything</a> with the largest checkpoint <a href="https://huggingface.co/LiheYoung/depth-anything-large-hf" rel="nofollow">LiheYoung/depth-anything-large-hf</a>:',Ae,b,St='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_lcm_depth.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Marigold LCM fp16 with Tiny AutoEncoder</figcaption></div> <div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/einstein_depthanything_large.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Depth Anything Large</figcaption></div>',De,K,Pe,O,$t=`Marigold pipelines have a built-in ensembling mechanism combining multiple predictions from different random latents.
This is a brute-force way of improving the precision of predictions, capitalizing on the generative nature of diffusion.
The ensembling path is activated automatically when the <code>ensemble_size</code> argument is set greater than <code>1</code>.
When aiming for maximum precision, it makes sense to adjust <code>num_inference_steps</code> simultaneously with <code>ensemble_size</code>.
The recommended values vary across checkpoints but primarily depend on the scheduler type.
The effect of ensembling is particularly well-seen with surface normals:`,Ke,ee,Oe,Z,Lt='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_lcm_normals.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Surface normals, no ensembling</figcaption></div> <div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_normals.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Surface normals, with ensembling</figcaption></div>',et,te,Qt=`As can be seen, all areas with fine-grained structurers, such as hair, got more conservative and on average more correct predictions.
Such a result is more suitable for precision-sensitive downstream tasks, such as 3D reconstruction.`,tt,le,lt,se,Ft=`To evaluate Marigold quantitatively in standard leaderboards and benchmarks (such as NYU, KITTI, and other datasets), follow the evaluation protocol outlined in the paper: load the full precision fp32 model and use appropriate values for <code>num_inference_steps</code> and <code>ensemble_size</code>.
Optionally seed randomness to ensure reproducibility. Maximizing <code>batch_size</code> will deliver maximum device utilization.`,st,ae,at,ie,it,ne,At=`The ensembling mechanism built into Marigold pipelines combines multiple predictions obtained from different random latents.
As a side effect, it can be used to quantify epistemic (model) uncertainty; simply specify <code>ensemble_size</code> greater than 1 and set <code>output_uncertainty=True</code>.
The resulting uncertainty will be available in the <code>uncertainty</code> field of the output.
It can be visualized as follows:`,nt,oe,ot,j,Dt='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_depth_uncertainty.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Depth uncertainty</figcaption></div> <div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_einstein_normals_uncertainty.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Surface normals uncertainty</figcaption></div>',pt,pe,Pt=`The interpretation of uncertainty is easy: higher values (white) correspond to pixels, where the model struggles to make consistent predictions.
Evidently, the depth model is the least confident around edges with discontinuity, where the object depth changes drastically.
The surface normals model is the least confident in fine-grained structures, such as hair, and dark areas, such as the collar.`,rt,re,dt,de,Kt=`Due to Marigold’s generative nature, each prediction is unique and defined by the random noise sampled for the latent initialization.
This becomes an obvious drawback compared to traditional end-to-end dense regression networks, as exemplified in the following videos:`,ct,v,Ot='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_obama.gif"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Input video</figcaption></div> <div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_obama_depth_independent.gif"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Marigold Depth applied to input video frames independently</figcaption></div>',mt,ce,el=`To address this issue, it is possible to pass <code>latents</code> argument to the pipelines, which defines the starting point of diffusion.
Empirically, we found that a convex combination of the very same starting point noise latent and the latent corresponding to the previous frame prediction give sufficiently smooth results, as implemented in the snippet below:`,ht,me,ut,he,tl=`Here, the diffusion process starts from the given computed latent.
The pipeline sets <code>output_latent=True</code> to access <code>out.latent</code> and computes its contribution to the next frame’s latent initialization.
The result is much more stable now:`,gt,U,ll='<div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_obama_depth_independent.gif"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Marigold Depth applied to input video frames independently</figcaption></div> <div style="flex: 1 1 50%; max-width: 50%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/marigold_obama_depth_consistent.gif"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Marigold Depth with forced latents initialization</figcaption></div>',Mt,ue,ft,ge,sl=`A very common application for depth prediction with diffusion models comes in conjunction with ControlNet.
Depth crispness plays a crucial role in obtaining high-quality results from ControlNet.
As seen in comparisons with other methods above, Marigold excels at that task.
The snippet below demonstrates how to load an image, compute depth, and pass it into ControlNet in a compatible format:`,Jt,Me,yt,B,al='<div style="flex: 1 1 33%; max-width: 33%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/controlnet_depth_source.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Input image</figcaption></div> <div style="flex: 1 1 33%; max-width: 33%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/motorcycle_controlnet_depth.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">Depth in the format compatible with ControlNet</figcaption></div> <div style="flex: 1 1 33%; max-width: 33%;"><img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/marigold/motorcycle_controlnet_out.png"/> <figcaption class="mt-1 text-center text-sm text-gray-500">ControlNet generation, conditioned on depth and prompt: &quot;high quality photo of a sports bike, city&quot;</figcaption></div>',Tt,fe,il="Hopefully, you will find Marigold useful for solving your downstream tasks, be it a part of a more broad generative workflow, or a perception task, such as 3D reconstruction.",wt,Je,bt,Te,Zt;return I=new J({props:{title:"Marigold Pipelines for Computer Vision Tasks",local:"marigold-pipelines-for-computer-vision-tasks",headingTag:"h1"}}),C=new J({props:{title:"Depth Prediction Quick Start",local:"depth-prediction-quick-start",headingTag:"h3"}}),z=new T({props:{code:"aW1wb3J0JTIwZGlmZnVzZXJzJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwZGlmZnVzZXJzLk1hcmlnb2xkRGVwdGhQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIycHJzLWV0aCUyRm1hcmlnb2xkLWRlcHRoLWxjbS12MS0wJTIyJTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpLnRvKCUyMmN1ZGElMjIpJTBBJTBBaW1hZ2UlMjAlM0QlMjBkaWZmdXNlcnMudXRpbHMubG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRm1hcmlnb2xkbW9ub2RlcHRoLmdpdGh1Yi5pbyUyRmltYWdlcyUyRmVpbnN0ZWluLmpwZyUyMiklMEFkZXB0aCUyMCUzRCUyMHBpcGUoaW1hZ2UpJTBBJTBBdmlzJTIwJTNEJTIwcGlwZS5pbWFnZV9wcm9jZXNzb3IudmlzdWFsaXplX2RlcHRoKGRlcHRoLnByZWRpY3Rpb24pJTBBdmlzJTVCMCU1RC5zYXZlKCUyMmVpbnN0ZWluX2RlcHRoLnBuZyUyMiklMEElMEFkZXB0aF8xNmJpdCUyMCUzRCUyMHBpcGUuaW1hZ2VfcHJvY2Vzc29yLmV4cG9ydF9kZXB0aF90b18xNmJpdF9wbmcoZGVwdGgucHJlZGljdGlvbiklMEFkZXB0aF8xNmJpdCU1QjAlNUQuc2F2ZSglMjJlaW5zdGVpbl9kZXB0aF8xNmJpdC5wbmclMjIp",highlighted:`<span class="hljs-keyword">import</span> diffusers
<span class="hljs-keyword">import</span> torch

pipe = diffusers.MarigoldDepthPipeline.from_pretrained(
    <span class="hljs-string">&quot;prs-eth/marigold-depth-lcm-v1-0&quot;</span>, variant=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)

image = diffusers.utils.load_image(<span class="hljs-string">&quot;https://marigoldmonodepth.github.io/images/einstein.jpg&quot;</span>)
depth = pipe(image)

vis = pipe.image_processor.visualize_depth(depth.prediction)
vis[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;einstein_depth.png&quot;</span>)

depth_16bit = pipe.image_processor.export_depth_to_16bit_png(depth.prediction)
depth_16bit[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;einstein_depth_16bit.png&quot;</span>)`,wrap:!1}}),N=new J({props:{title:"Surface Normals Prediction Quick Start",local:"surface-normals-prediction-quick-start",headingTag:"h3"}}),Y=new T({props:{code:"aW1wb3J0JTIwZGlmZnVzZXJzJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwZGlmZnVzZXJzLk1hcmlnb2xkTm9ybWFsc1BpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJwcnMtZXRoJTJGbWFyaWdvbGQtbm9ybWFscy1sY20tdjAtMSUyMiUyQyUyMHZhcmlhbnQlM0QlMjJmcDE2JTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQSUwQWltYWdlJTIwJTNEJTIwZGlmZnVzZXJzLnV0aWxzLmxvYWRfaW1hZ2UoJTIyaHR0cHMlM0ElMkYlMkZtYXJpZ29sZG1vbm9kZXB0aC5naXRodWIuaW8lMkZpbWFnZXMlMkZlaW5zdGVpbi5qcGclMjIpJTBBbm9ybWFscyUyMCUzRCUyMHBpcGUoaW1hZ2UpJTBBJTBBdmlzJTIwJTNEJTIwcGlwZS5pbWFnZV9wcm9jZXNzb3IudmlzdWFsaXplX25vcm1hbHMobm9ybWFscy5wcmVkaWN0aW9uKSUwQXZpcyU1QjAlNUQuc2F2ZSglMjJlaW5zdGVpbl9ub3JtYWxzLnBuZyUyMik=",highlighted:`<span class="hljs-keyword">import</span> diffusers
<span class="hljs-keyword">import</span> torch

pipe = diffusers.MarigoldNormalsPipeline.from_pretrained(
    <span class="hljs-string">&quot;prs-eth/marigold-normals-lcm-v0-1&quot;</span>, variant=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)

image = diffusers.utils.load_image(<span class="hljs-string">&quot;https://marigoldmonodepth.github.io/images/einstein.jpg&quot;</span>)
normals = pipe(image)

vis = pipe.image_processor.visualize_normals(normals.prediction)
vis[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;einstein_normals.png&quot;</span>)`,wrap:!1}}),$=new J({props:{title:"Speeding up inference",local:"speeding-up-inference",headingTag:"h3"}}),Q=new T({props:{code:"JTIwJTIwaW1wb3J0JTIwZGlmZnVzZXJzJTBBJTIwJTIwaW1wb3J0JTIwdG9yY2glMEElMjAlMjAlMEElMjAlMjBwaXBlJTIwJTNEJTIwZGlmZnVzZXJzLk1hcmlnb2xkRGVwdGhQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIycHJzLWV0aCUyRm1hcmlnb2xkLWRlcHRoLWxjbS12MS0wJTIyJTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEElMjAlMjApLnRvKCUyMmN1ZGElMjIpJTBBJTIwJTIwJTBBJTJCJTIwcGlwZS52YWUlMjAlM0QlMjBkaWZmdXNlcnMuQXV0b2VuY29kZXJUaW55LmZyb21fcHJldHJhaW5lZCglMEElMkIlMjAlMDklMjJtYWRlYnlvbGxpbiUyRnRhZXNkJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBJTJCJTIwKS5jdWRhKCklMEElMjAlMjAlMEElMjAlMjBpbWFnZSUyMCUzRCUyMGRpZmZ1c2Vycy51dGlscy5sb2FkX2ltYWdlKCUyMmh0dHBzJTNBJTJGJTJGbWFyaWdvbGRtb25vZGVwdGguZ2l0aHViLmlvJTJGaW1hZ2VzJTJGZWluc3RlaW4uanBnJTIyKSUwQSUyMCUyMGRlcHRoJTIwJTNEJTIwcGlwZShpbWFnZSk=",highlighted:`  import diffusers
  import torch
  
  pipe = diffusers.MarigoldDepthPipeline.from_pretrained(
      &quot;prs-eth/marigold-depth-lcm-v1-0&quot;, variant=&quot;fp16&quot;, torch_dtype=torch.float16
  ).to(&quot;cuda&quot;)
  
<span class="hljs-addition">+ pipe.vae = diffusers.AutoencoderTiny.from_pretrained(</span>
<span class="hljs-addition">+ 	&quot;madebyollin/taesd&quot;, torch_dtype=torch.float16</span>
<span class="hljs-addition">+ ).cuda()</span>
  
  image = diffusers.utils.load_image(&quot;https://marigoldmonodepth.github.io/images/einstein.jpg&quot;)
  depth = pipe(image)`,wrap:!1}}),A=new T({props:{code:"JTIwJTIwaW1wb3J0JTIwZGlmZnVzZXJzJTBBJTIwJTIwaW1wb3J0JTIwdG9yY2glMEElMjAlMjAlMEElMjAlMjBwaXBlJTIwJTNEJTIwZGlmZnVzZXJzLk1hcmlnb2xkRGVwdGhQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIycHJzLWV0aCUyRm1hcmlnb2xkLWRlcHRoLWxjbS12MS0wJTIyJTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEElMjAlMjApLnRvKCUyMmN1ZGElMjIpJTBBJTIwJTIwJTBBJTJCJTIwcGlwZS51bmV0JTIwJTNEJTIwdG9yY2guY29tcGlsZShwaXBlLnVuZXQlMkMlMjBtb2RlJTNEJTIycmVkdWNlLW92ZXJoZWFkJTIyJTJDJTIwZnVsbGdyYXBoJTNEVHJ1ZSklMEElMjAlMjAlMEElMjAlMjBpbWFnZSUyMCUzRCUyMGRpZmZ1c2Vycy51dGlscy5sb2FkX2ltYWdlKCUyMmh0dHBzJTNBJTJGJTJGbWFyaWdvbGRtb25vZGVwdGguZ2l0aHViLmlvJTJGaW1hZ2VzJTJGZWluc3RlaW4uanBnJTIyKSUwQSUyMCUyMGRlcHRoJTIwJTNEJTIwcGlwZShpbWFnZSk=",highlighted:`  import diffusers
  import torch
  
  pipe = diffusers.MarigoldDepthPipeline.from_pretrained(
      &quot;prs-eth/marigold-depth-lcm-v1-0&quot;, variant=&quot;fp16&quot;, torch_dtype=torch.float16
  ).to(&quot;cuda&quot;)
  
<span class="hljs-addition">+ pipe.unet = torch.compile(pipe.unet, mode=&quot;reduce-overhead&quot;, fullgraph=True)</span>
  
  image = diffusers.utils.load_image(&quot;https://marigoldmonodepth.github.io/images/einstein.jpg&quot;)
  depth = pipe(image)`,wrap:!1}}),D=new J({props:{title:"Qualitative Comparison with Depth Anything",local:"qualitative-comparison-with-depth-anything",headingTag:"h2"}}),K=new J({props:{title:"Maximizing Precision and Ensembling",local:"maximizing-precision-and-ensembling",headingTag:"h2"}}),ee=new T({props:{code:"aW1wb3J0JTIwZGlmZnVzZXJzJTBBJTBBbW9kZWxfcGF0aCUyMCUzRCUyMCUyMnBycy1ldGgl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GVpbl9ub3JtYWxzLnBuZyUyMik=",highlighted:`<span class="hljs-keyword">import</span> diffusers

model_path = <span class="hljs-string">&quot;prs-eth/marigold-normals-v1-0&quot;</span>

model_paper_kwargs = {
	diffusers.schedulers.DDIMScheduler: {
		<span class="hljs-string">&quot;num_inference_steps&quot;</span>: <span class="hljs-number">10</span>,
		<span class="hljs-string">&quot;ensemble_size&quot;</span>: <span class="hljs-number">10</span>,
	},
	diffusers.schedulers.LCMScheduler: {
		<span class="hljs-string">&quot;num_inference_steps&quot;</span>: <span class="hljs-number">4</span>,
		<span class="hljs-string">&quot;ensemble_size&quot;</span>: <span class="hljs-number">5</span>,
	},	
}

image = diffusers.utils.load_image(<span class="hljs-string">&quot;https://marigoldmonodepth.github.io/images/einstein.jpg&quot;</span>)

pipe = diffusers.MarigoldNormalsPipeline.from_pretrained(model_path).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe_kwargs = model_paper_kwargs[<span class="hljs-built_in">type</span>(pipe.scheduler)]

depth = pipe(image, **pipe_kwargs)

vis = pipe.image_processor.visualize_normals(depth.prediction)
vis[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;einstein_normals.png&quot;</span>)`,wrap:!1}}),le=new J({props:{title:"Quantitative Evaluation",local:"quantitative-evaluation",headingTag:"h2"}}),ae=new T({props:{code:"aW1wb3J0JTIwZGlmZnVzZXJzJTBBaW1wb3J0JTIwdG9yY2glMEElMEFkZXZpY2UlMjAlM0QlMjAlMjJjdWRhJTIyJTBBc2VlZCUyMCUzRCUyMDIwMjQlMEFtb2RlbF9wYXRoJTIwJTNEJTIwJTIycHJzLWV0aCUyRm1hcmlnb2xkLXYxLTAlMjIlMEElMEFtb2RlbF9wYXBlcl9rd2FyZ3MlMjAlM0QlMjAlN0IlMEElMDlkaWZmdXNlcnMuc2NoZWR1bGVycy5ERElNU2NoZWR1bGVyJTNBJTIwJTdCJTBBJTA5JTA5JTIybnVtX2luZmVyZW5jZV9zdGVwcyUyMiUzQSUyMDUwJTJDJTBBJTA5JTA5JTIyZW5zZW1ibGVfc2l6ZSUyMiUzQSUyMDEwJTJDJTBBJTA5JTdEJTJDJTBBJTA5ZGlmZnVzZXJzLnNjaGVkdWxlcnMuTENNU2NoZWR1bGVyJTNBJTIwJTdCJTBBJTA5JTA5JTIybnVtX2luZmVyZW5jZV9zdGVwcyUyMiUzQSUyMDQlMkMlMEElMDklMDklMjJlbnNlbWJsZV9zaXplJTIyJTNBJTIwMTAlMkMlMEElMDklN0QlMkMlMDklMEElN0QlMEElMEFpbWFnZSUyMCUzRCUyMGRpZmZ1c2Vycy51dGlscy5sb2FkX2ltYWdlKCUyMmh0dHBzJTNBJTJGJTJGbWFyaWdvbGRtb25vZGVwdGguZ2l0aHViLmlvJTJGaW1hZ2VzJTJGZWluc3RlaW4uanBnJTIyKSUwQSUwQWdlbmVyYXRvciUyMCUzRCUyMHRvcmNoLkdlbmVyYXRvcihkZXZpY2UlM0RkZXZpY2UpLm1hbnVhbF9zZWVkKHNlZWQpJTBBcGlwZSUyMCUzRCUyMGRpZmZ1c2Vycy5NYXJpZ29sZERlcHRoUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKG1vZGVsX3BhdGgpLnRvKGRldmljZSklMEFwaXBlX2t3YXJncyUyMCUzRCUyMG1vZGVsX3BhcGVyX2t3YXJncyU1QnR5cGUocGlwZS5zY2hlZHVsZXIpJTVEJTBBJTBBZGVwdGglMjAlM0QlMjBwaXBlKGltYWdlJTJDJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTIwKipwaXBlX2t3YXJncyklMEElMEElMjMlMjBldmFsdWF0ZSUyMG1ldHJpY3M=",highlighted:`<span class="hljs-keyword">import</span> diffusers
<span class="hljs-keyword">import</span> torch

device = <span class="hljs-string">&quot;cuda&quot;</span>
seed = <span class="hljs-number">2024</span>
model_path = <span class="hljs-string">&quot;prs-eth/marigold-v1-0&quot;</span>

model_paper_kwargs = {
	diffusers.schedulers.DDIMScheduler: {
		<span class="hljs-string">&quot;num_inference_steps&quot;</span>: <span class="hljs-number">50</span>,
		<span class="hljs-string">&quot;ensemble_size&quot;</span>: <span class="hljs-number">10</span>,
	},
	diffusers.schedulers.LCMScheduler: {
		<span class="hljs-string">&quot;num_inference_steps&quot;</span>: <span class="hljs-number">4</span>,
		<span class="hljs-string">&quot;ensemble_size&quot;</span>: <span class="hljs-number">10</span>,
	},	
}

image = diffusers.utils.load_image(<span class="hljs-string">&quot;https://marigoldmonodepth.github.io/images/einstein.jpg&quot;</span>)

generator = torch.Generator(device=device).manual_seed(seed)
pipe = diffusers.MarigoldDepthPipeline.from_pretrained(model_path).to(device)
pipe_kwargs = model_paper_kwargs[<span class="hljs-built_in">type</span>(pipe.scheduler)]

depth = pipe(image, generator=generator, **pipe_kwargs)

<span class="hljs-comment"># evaluate metrics</span>`,wrap:!1}}),ie=new J({props:{title:"Using Predictive Uncertainty",local:"using-predictive-uncertainty",headingTag:"h2"}}),oe=new T({props:{code:"aW1wb3J0JTIwZGlmZnVzZXJzJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwZGlmZnVzZXJzLk1hcmlnb2xkRGVwdGhQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIycHJzLWV0aCUyRm1hcmlnb2xkLWRlcHRoLWxjbS12MS0wJTIyJTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpLnRvKCUyMmN1ZGElMjIpJTBBJTBBaW1hZ2UlMjAlM0QlMjBkaWZmdXNlcnMudXRpbHMubG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRm1hcmlnb2xkbW9ub2RlcHRoLmdpdGh1Yi5pbyUyRmltYWdlcyUyRmVpbnN0ZWluLmpwZyUyMiklMEFkZXB0aCUyMCUzRCUyMHBpcGUoJTBBJTA5aW1hZ2UlMkMlMEElMDllbnNlbWJsZV9zaXplJTNEMTAlMkMlMjAlMjAlMjMlMjBhbnklMjBudW1iZXIlMjBncmVhdGVyJTIwdGhhbiUyMDElM0IlMjBoaWdoZXIlMjB2YWx1ZXMlMjB5aWVsZCUyMGhpZ2hlciUyMHByZWNpc2lvbiUwQSUwOW91dHB1dF91bmNlcnRhaW50eSUzRFRydWUlMkMlMEEpJTBBJTBBdW5jZXJ0YWludHklMjAlM0QlMjBwaXBlLmltYWdlX3Byb2Nlc3Nvci52aXN1YWxpemVfdW5jZXJ0YWludHkoZGVwdGgudW5jZXJ0YWludHkpJTBBdW5jZXJ0YWludHklNUIwJTVELnNhdmUoJTIyZWluc3RlaW5fZGVwdGhfdW5jZXJ0YWludHkucG5nJTIyKQ==",highlighted:`<span class="hljs-keyword">import</span> diffusers
<span class="hljs-keyword">import</span> torch

pipe = diffusers.MarigoldDepthPipeline.from_pretrained(
    <span class="hljs-string">&quot;prs-eth/marigold-depth-lcm-v1-0&quot;</span>, variant=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)

image = diffusers.utils.load_image(<span class="hljs-string">&quot;https://marigoldmonodepth.github.io/images/einstein.jpg&quot;</span>)
depth = pipe(
	image,
	ensemble_size=<span class="hljs-number">10</span>,  <span class="hljs-comment"># any number greater than 1; higher values yield higher precision</span>
	output_uncertainty=<span class="hljs-literal">True</span>,
)

uncertainty = pipe.image_processor.visualize_uncertainty(depth.uncertainty)
uncertainty[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;einstein_depth_uncertainty.png&quot;</span>)`,wrap:!1}}),re=new J({props:{title:"Frame-by-frame Video Processing with Temporal Consistency",local:"frame-by-frame-video-processing-with-temporal-consistency",headingTag:"h2"}}),me=new T({props:{code:"aW1wb3J0JTIwaW1hZ2VpbyUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWZyb20lMjB0cWRtJTIwaW1wb3J0JTIwdHFkbSUwQW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MCUyMCUyMCUyMCUyMCklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBsYXN0X2ZyYW1lX2xhdGVudCUyMCUzRCUyMGRlcHRoLmxhdGVudCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG91dC5hcHBlbmQocGlwZS5pbWFnZV9wcm9jZXNzb3IudmlzdWFsaXplX2RlcHRoKGRlcHRoLnByZWRpY3Rpb24pJTVCMCU1RCklMEElMEElMjAlMjAlMjAlMjBkaWZmdXNlcnMudXRpbHMuZXhwb3J0X3RvX2dpZihvdXQlMkMlMjBwYXRoX291dCUyQyUyMGZwcyUzRHJlYWRlci5nZXRfbWV0YV9kYXRhKCklNUInZnBzJyU1RCk=",highlighted:`<span class="hljs-keyword">import</span> imageio
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-keyword">from</span> tqdm <span class="hljs-keyword">import</span> tqdm
<span class="hljs-keyword">import</span> diffusers
<span class="hljs-keyword">import</span> torch

device = <span class="hljs-string">&quot;cuda&quot;</span>
path_in = <span class="hljs-string">&quot;obama.mp4&quot;</span>
path_out = <span class="hljs-string">&quot;obama_depth.gif&quot;</span>

pipe = diffusers.MarigoldDepthPipeline.from_pretrained(
    <span class="hljs-string">&quot;prs-eth/marigold-depth-lcm-v1-0&quot;</span>, variant=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
).to(device)
pipe.vae = diffusers.AutoencoderTiny.from_pretrained(
    <span class="hljs-string">&quot;madebyollin/taesd&quot;</span>, torch_dtype=torch.float16
).to(device)
pipe.set_progress_bar_config(disable=<span class="hljs-literal">True</span>)

<span class="hljs-keyword">with</span> imageio.get_reader(path_in) <span class="hljs-keyword">as</span> reader:
    size = reader.get_meta_data()[<span class="hljs-string">&#x27;size&#x27;</span>]
    last_frame_latent = <span class="hljs-literal">None</span>
    latent_common = torch.randn(
        (<span class="hljs-number">1</span>, <span class="hljs-number">4</span>, <span class="hljs-number">768</span> * size[<span class="hljs-number">1</span>] // (<span class="hljs-number">8</span> * <span class="hljs-built_in">max</span>(size)), <span class="hljs-number">768</span> * size[<span class="hljs-number">0</span>] // (<span class="hljs-number">8</span> * <span class="hljs-built_in">max</span>(size)))
    ).to(device=device, dtype=torch.float16)

    out = []
    <span class="hljs-keyword">for</span> frame_id, frame <span class="hljs-keyword">in</span> tqdm(<span class="hljs-built_in">enumerate</span>(reader), desc=<span class="hljs-string">&quot;Processing Video&quot;</span>):
        frame = Image.fromarray(frame)
        latents = latent_common
        <span class="hljs-keyword">if</span> last_frame_latent <span class="hljs-keyword">is</span> <span class="hljs-keyword">not</span> <span class="hljs-literal">None</span>:
            latents = <span class="hljs-number">0.9</span> * latents + <span class="hljs-number">0.1</span> * last_frame_latent

        depth = pipe(
			frame, match_input_resolution=<span class="hljs-literal">False</span>, latents=latents, output_latent=<span class="hljs-literal">True</span>,
        )
        last_frame_latent = depth.latent
        out.append(pipe.image_processor.visualize_depth(depth.prediction)[<span class="hljs-number">0</span>])

    diffusers.utils.export_to_gif(out, path_out, fps=reader.get_meta_data()[<span class="hljs-string">&#x27;fps&#x27;</span>])`,wrap:!1}}),ue=new J({props:{title:"Marigold for ControlNet",local:"marigold-for-controlnet",headingTag:"h2"}}),Me=new T({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjBkaWZmdXNlcnMlMEElMEFkZXZpY2UlMjAlM0QlMjAlMjJjdWRhJTIyJTBBZ2VuZXJhdG9yJTIwJTNEJTIwdG9yY2guR2VuZXJhdG9yKGRldmljZSUzRGRldmljZSkubWFudWFsX3NlZWQoMjAyNCklMEFpbWFnZSUyMCUzRCUyMGRpZmZ1c2Vycy51dGlscy5sb2FkX2ltYWdlKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRmh1Z2dpbmdmYWNlJTJGZG9jdW1lbnRhdGlvbi1pbWFnZXMlMkZyZXNvbHZl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span class="hljs-keyword">import</span> diffusers

device = <span class="hljs-string">&quot;cuda&quot;</span>
generator = torch.Generator(device=device).manual_seed(<span class="hljs-number">2024</span>)
image = diffusers.utils.load_image(
    <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/controlnet_depth_source.png&quot;</span>
)

pipe = diffusers.MarigoldDepthPipeline.from_pretrained(
    <span class="hljs-string">&quot;prs-eth/marigold-depth-lcm-v1-0&quot;</span>, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>
).to(<span class="hljs-string">&quot;cuda&quot;</span>)

depth_image = pipe(image, generator=generator).prediction
depth_image = pipe.image_processor.visualize_depth(depth_image, color_map=<span class="hljs-string">&quot;binary&quot;</span>)
depth_image[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;motorcycle_controlnet_depth.png&quot;</span>)

controlnet = diffusers.ControlNetModel.from_pretrained(
    <span class="hljs-string">&quot;diffusers/controlnet-depth-sdxl-1.0&quot;</span>, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe = diffusers.StableDiffusionXLControlNetPipeline.from_pretrained(
    <span class="hljs-string">&quot;SG161222/RealVisXL_V4.0&quot;</span>, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>, controlnet=controlnet
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe.scheduler = diffusers.DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=<span class="hljs-literal">True</span>)

controlnet_out = pipe(
    prompt=<span class="hljs-string">&quot;high quality photo of a sports bike, city&quot;</span>,
    negative_prompt=<span class="hljs-string">&quot;&quot;</span>,
    guidance_scale=<span class="hljs-number">6.5</span>,
    num_inference_steps=<span class="hljs-number">25</span>,
    image=depth_image,
    controlnet_conditioning_scale=<span class="hljs-number">0.7</span>,
    control_guidance_end=<span class="hljs-number">0.7</span>,
    generator=generator,
).images
controlnet_out[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;motorcycle_controlnet_out.png&quot;</span>)`,wrap:!1}}),Je=new ul({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/using-diffusers/marigold_usage.md"}}),{c(){y=n("meta"),we=a(),ye=n("p"),be=a(),r(I.$$.fragment),Ze=a(),W=n("p"),W.innerHTML=Ut,je=a(),G=n("p"),G.textContent=Bt,ve=a(),x=n("p"),x.innerHTML=It,Ue=a(),k=n("table"),k.innerHTML=Wt,Be=a(),_=n("p"),_.innerHTML=Gt,Ie=a(),R=n("table"),R.innerHTML=xt,We=a(),X=n("p"),X.textContent=kt,Ge=a(),M=n("div"),M.innerHTML=_t,xe=a(),r(C.$$.fragment),ke=a(),V=n("p"),V.innerHTML=Rt,_e=a(),r(z.$$.fragment),Re=a(),E=n("p"),E.innerHTML=Xt,Xe=a(),w=n("div"),w.innerHTML=Ct,Ce=a(),r(N.$$.fragment),Ve=a(),H=n("p"),H.innerHTML=Vt,ze=a(),r(Y.$$.fragment),Ee=a(),q=n("p"),q.innerHTML=zt,Ne=a(),f=n("div"),f.innerHTML=Et,He=a(),S=n("p"),S.innerHTML=Nt,Ye=a(),r($.$$.fragment),qe=a(),L=n("p"),L.innerHTML=Ht,Se=a(),r(Q.$$.fragment),$e=a(),F=n("p"),F.innerHTML=Yt,Le=a(),r(A.$$.fragment),Qe=a(),r(D.$$.fragment),Fe=a(),P=n("p"),P.innerHTML=qt,Ae=a(),b=n("div"),b.innerHTML=St,De=a(),r(K.$$.fragment),Pe=a(),O=n("p"),O.innerHTML=$t,Ke=a(),r(ee.$$.fragment),Oe=a(),Z=n("div"),Z.innerHTML=Lt,et=a(),te=n("p"),te.textContent=Qt,tt=a(),r(le.$$.fragment),lt=a(),se=n("p"),se.innerHTML=Ft,st=a(),r(ae.$$.fragment),at=a(),r(ie.$$.fragment),it=a(),ne=n("p"),ne.innerHTML=At,nt=a(),r(oe.$$.fragment),ot=a(),j=n("div"),j.innerHTML=Dt,pt=a(),pe=n("p"),pe.textContent=Pt,rt=a(),r(re.$$.fragment),dt=a(),de=n("p"),de.textContent=Kt,ct=a(),v=n("div"),v.innerHTML=Ot,mt=a(),ce=n("p"),ce.innerHTML=el,ht=a(),r(me.$$.fragment),ut=a(),he=n("p"),he.innerHTML=tl,gt=a(),U=n("div"),U.innerHTML=ll,Mt=a(),r(ue.$$.fragment),ft=a(),ge=n("p"),ge.textContent=sl,Jt=a(),r(Me.$$.fragment),yt=a(),B=n("div"),B.innerHTML=al,Tt=a(),fe=n("p"),fe.textContent=il,wt=a(),r(Je.$$.fragment),bt=a(),Te=n("p"),this.h()},l(e){const t=ml("svelte-u9bgzb",document.head);y=o(t,"META",{name:!0,content:!0}),t.forEach(l),we=i(e),ye=o(e,"P",{}),nl(ye).forEach(l),be=i(e),d(I.$$.fragment,e),Ze=i(e),W=o(e,"P",{"data-svelte-h":!0}),p(W)!=="svelte-rsgfrp"&&(W.innerHTML=Ut),je=i(e),G=o(e,"P",{"data-svelte-h":!0}),p(G)!=="svelte-15jx45a"&&(G.textContent=Bt),ve=i(e),x=o(e,"P",{"data-svelte-h":!0}),p(x)!=="svelte-mg9rv6"&&(x.innerHTML=It),Ue=i(e),k=o(e,"TABLE",{"data-svelte-h":!0}),p(k)!=="svelte-1v9cy9r"&&(k.innerHTML=Wt),Be=i(e),_=o(e,"P",{"data-svelte-h":!0}),p(_)!=="svelte-7crc58"&&(_.innerHTML=Gt),Ie=i(e),R=o(e,"TABLE",{"data-svelte-h":!0}),p(R)!=="svelte-dqweec"&&(R.innerHTML=xt),We=i(e),X=o(e,"P",{"data-svelte-h":!0}),p(X)!=="svelte-14z37t0"&&(X.textContent=kt),Ge=i(e),M=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(M)!=="svelte-crkwmk"&&(M.innerHTML=_t),xe=i(e),d(C.$$.fragment,e),ke=i(e),V=o(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-deersj"&&(V.innerHTML=Rt),_e=i(e),d(z.$$.fragment,e),Re=i(e),E=o(e,"P",{"data-svelte-h":!0}),p(E)!=="svelte-vmtetj"&&(E.innerHTML=Xt),Xe=i(e),w=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(w)!=="svelte-126mv8k"&&(w.innerHTML=Ct),Ce=i(e),d(N.$$.fragment,e),Ve=i(e),H=o(e,"P",{"data-svelte-h":!0}),p(H)!=="svelte-1jm3j6v"&&(H.innerHTML=Vt),ze=i(e),d(Y.$$.fragment,e),Ee=i(e),q=o(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-1cxkzwq"&&(q.innerHTML=zt),Ne=i(e),f=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(f)!=="svelte-ux0u8p"&&(f.innerHTML=Et),He=i(e),S=o(e,"P",{"data-svelte-h":!0}),p(S)!=="svelte-1livx5j"&&(S.innerHTML=Nt),Ye=i(e),d($.$$.fragment,e),qe=i(e),L=o(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-6d9zyk"&&(L.innerHTML=Ht),Se=i(e),d(Q.$$.fragment,e),$e=i(e),F=o(e,"P",{"data-svelte-h":!0}),p(F)!=="svelte-if0k9"&&(F.innerHTML=Yt),Le=i(e),d(A.$$.fragment,e),Qe=i(e),d(D.$$.fragment,e),Fe=i(e),P=o(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-kc22hk"&&(P.innerHTML=qt),Ae=i(e),b=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(b)!=="svelte-1qozhgx"&&(b.innerHTML=St),De=i(e),d(K.$$.fragment,e),Pe=i(e),O=o(e,"P",{"data-svelte-h":!0}),p(O)!=="svelte-4qrnje"&&(O.innerHTML=$t),Ke=i(e),d(ee.$$.fragment,e),Oe=i(e),Z=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(Z)!=="svelte-pvgf5l"&&(Z.innerHTML=Lt),et=i(e),te=o(e,"P",{"data-svelte-h":!0}),p(te)!=="svelte-1001b16"&&(te.textContent=Qt),tt=i(e),d(le.$$.fragment,e),lt=i(e),se=o(e,"P",{"data-svelte-h":!0}),p(se)!=="svelte-e52fx"&&(se.innerHTML=Ft),st=i(e),d(ae.$$.fragment,e),at=i(e),d(ie.$$.fragment,e),it=i(e),ne=o(e,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-b3srj5"&&(ne.innerHTML=At),nt=i(e),d(oe.$$.fragment,e),ot=i(e),j=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(j)!=="svelte-izq12i"&&(j.innerHTML=Dt),pt=i(e),pe=o(e,"P",{"data-svelte-h":!0}),p(pe)!=="svelte-83stc5"&&(pe.textContent=Pt),rt=i(e),d(re.$$.fragment,e),dt=i(e),de=o(e,"P",{"data-svelte-h":!0}),p(de)!=="svelte-nc59re"&&(de.textContent=Kt),ct=i(e),v=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(v)!=="svelte-1k6s96j"&&(v.innerHTML=Ot),mt=i(e),ce=o(e,"P",{"data-svelte-h":!0}),p(ce)!=="svelte-1cegfq5"&&(ce.innerHTML=el),ht=i(e),d(me.$$.fragment,e),ut=i(e),he=o(e,"P",{"data-svelte-h":!0}),p(he)!=="svelte-tlyfc9"&&(he.innerHTML=tl),gt=i(e),U=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(U)!=="svelte-u703tp"&&(U.innerHTML=ll),Mt=i(e),d(ue.$$.fragment,e),ft=i(e),ge=o(e,"P",{"data-svelte-h":!0}),p(ge)!=="svelte-12oh700"&&(ge.textContent=sl),Jt=i(e),d(Me.$$.fragment,e),yt=i(e),B=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(B)!=="svelte-bddy4e"&&(B.innerHTML=al),Tt=i(e),fe=o(e,"P",{"data-svelte-h":!0}),p(fe)!=="svelte-by2907"&&(fe.textContent=il),wt=i(e),d(Je.$$.fragment,e),bt=i(e),Te=o(e,"P",{}),nl(Te).forEach(l),this.h()},h(){g(y,"name","hf:doc:metadata"),g(y,"content",Ml),g(M,"class","flex gap-4"),jt(M,"justify-content","center"),jt(M,"width","100%"),g(w,"class","flex gap-4"),g(f,"class","flex gap-4"),jt(f,"justify-content","center"),jt(f,"width","100%"),g(b,"class","flex gap-4"),g(Z,"class","flex gap-4"),g(j,"class","flex gap-4"),g(v,"class","flex gap-4"),g(U,"class","flex gap-4"),g(B,"class","flex gap-4")},m(e,t){hl(document.head,y),s(e,we,t),s(e,ye,t),s(e,be,t),c(I,e,t),s(e,Ze,t),s(e,W,t),s(e,je,t),s(e,G,t),s(e,ve,t),s(e,x,t),s(e,Ue,t),s(e,k,t),s(e,Be,t),s(e,_,t),s(e,Ie,t),s(e,R,t),s(e,We,t),s(e,X,t),s(e,Ge,t),s(e,M,t),s(e,xe,t),c(C,e,t),s(e,ke,t),s(e,V,t),s(e,_e,t),c(z,e,t),s(e,Re,t),s(e,E,t),s(e,Xe,t),s(e,w,t),s(e,Ce,t),c(N,e,t),s(e,Ve,t),s(e,H,t),s(e,ze,t),c(Y,e,t),s(e,Ee,t),s(e,q,t),s(e,Ne,t),s(e,f,t),s(e,He,t),s(e,S,t),s(e,Ye,t),c($,e,t),s(e,qe,t),s(e,L,t),s(e,Se,t),c(Q,e,t),s(e,$e,t),s(e,F,t),s(e,Le,t),c(A,e,t),s(e,Qe,t),c(D,e,t),s(e,Fe,t),s(e,P,t),s(e,Ae,t),s(e,b,t),s(e,De,t),c(K,e,t),s(e,Pe,t),s(e,O,t),s(e,Ke,t),c(ee,e,t),s(e,Oe,t),s(e,Z,t),s(e,et,t),s(e,te,t),s(e,tt,t),c(le,e,t),s(e,lt,t),s(e,se,t),s(e,st,t),c(ae,e,t),s(e,at,t),c(ie,e,t),s(e,it,t),s(e,ne,t),s(e,nt,t),c(oe,e,t),s(e,ot,t),s(e,j,t),s(e,pt,t),s(e,pe,t),s(e,rt,t),c(re,e,t),s(e,dt,t),s(e,de,t),s(e,ct,t),s(e,v,t),s(e,mt,t),s(e,ce,t),s(e,ht,t),c(me,e,t),s(e,ut,t),s(e,he,t),s(e,gt,t),s(e,U,t),s(e,Mt,t),c(ue,e,t),s(e,ft,t),s(e,ge,t),s(e,Jt,t),c(Me,e,t),s(e,yt,t),s(e,B,t),s(e,Tt,t),s(e,fe,t),s(e,wt,t),c(Je,e,t),s(e,bt,t),s(e,Te,t),Zt=!0},p:pl,i(e){Zt||(m(I.$$.fragment,e),m(C.$$.fragment,e),m(z.$$.fragment,e),m(N.$$.fragment,e),m(Y.$$.fragment,e),m($.$$.fragment,e),m(Q.$$.fragment,e),m(A.$$.fragment,e),m(D.$$.fragment,e),m(K.$$.fragment,e),m(ee.$$.fragment,e),m(le.$$.fragment,e),m(ae.$$.fragment,e),m(ie.$$.fragment,e),m(oe.$$.fragment,e),m(re.$$.fragment,e),m(me.$$.fragment,e),m(ue.$$.fragment,e),m(Me.$$.fragment,e),m(Je.$$.fragment,e),Zt=!0)},o(e){h(I.$$.fragment,e),h(C.$$.fragment,e),h(z.$$.fragment,e),h(N.$$.fragment,e),h(Y.$$.fragment,e),h($.$$.fragment,e),h(Q.$$.fragment,e),h(A.$$.fragment,e),h(D.$$.fragment,e),h(K.$$.fragment,e),h(ee.$$.fragment,e),h(le.$$.fragment,e),h(ae.$$.fragment,e),h(ie.$$.fragment,e),h(oe.$$.fragment,e),h(re.$$.fragment,e),h(me.$$.fragment,e),h(ue.$$.fragment,e),h(Me.$$.fragment,e),h(Je.$$.fragment,e),Zt=!1},d(e){e&&(l(we),l(ye),l(be),l(Ze),l(W),l(je),l(G),l(ve),l(x),l(Ue),l(k),l(Be),l(_),l(Ie),l(R),l(We),l(X),l(Ge),l(M),l(xe),l(ke),l(V),l(_e),l(Re),l(E),l(Xe),l(w),l(Ce),l(Ve),l(H),l(ze),l(Ee),l(q),l(Ne),l(f),l(He),l(S),l(Ye),l(qe),l(L),l(Se),l($e),l(F),l(Le),l(Qe),l(Fe),l(P),l(Ae),l(b),l(De),l(Pe),l(O),l(Ke),l(Oe),l(Z),l(et),l(te),l(tt),l(lt),l(se),l(st),l(at),l(it),l(ne),l(nt),l(ot),l(j),l(pt),l(pe),l(rt),l(dt),l(de),l(ct),l(v),l(mt),l(ce),l(ht),l(ut),l(he),l(gt),l(U),l(Mt),l(ft),l(ge),l(Jt),l(yt),l(B),l(Tt),l(fe),l(wt),l(bt),l(Te)),l(y),u(I,e),u(C,e),u(z,e),u(N,e),u(Y,e),u($,e),u(Q,e),u(A,e),u(D,e),u(K,e),u(ee,e),u(le,e),u(ae,e),u(ie,e),u(oe,e),u(re,e),u(me,e),u(ue,e),u(Me,e),u(Je,e)}}}const Ml='{"title":"Marigold Pipelines for Computer Vision Tasks","local":"marigold-pipelines-for-computer-vision-tasks","sections":[{"title":"Depth Prediction Quick Start","local":"depth-prediction-quick-start","sections":[],"depth":3},{"title":"Surface Normals Prediction Quick Start","local":"surface-normals-prediction-quick-start","sections":[],"depth":3},{"title":"Speeding up inference","local":"speeding-up-inference","sections":[],"depth":3},{"title":"Qualitative Comparison with Depth Anything","local":"qualitative-comparison-with-depth-anything","sections":[],"depth":2},{"title":"Maximizing Precision and Ensembling","local":"maximizing-precision-and-ensembling","sections":[],"depth":2},{"title":"Quantitative Evaluation","local":"quantitative-evaluation","sections":[],"depth":2},{"title":"Using Predictive Uncertainty","local":"using-predictive-uncertainty","sections":[],"depth":2},{"title":"Frame-by-frame Video Processing with Temporal Consistency","local":"frame-by-frame-video-processing-with-temporal-consistency","sections":[],"depth":2},{"title":"Marigold for ControlNet","local":"marigold-for-controlnet","sections":[],"depth":2}],"depth":1}';function fl(vt){return rl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class bl extends dl{constructor(y){super(),cl(this,y,fl,gl,ol,{})}}export{bl as component};
