import{s as Be,o as Ze,n as Ce}from"../chunks/scheduler.8c3d61f6.js";import{S as Ue,i as $e,g as p,s as a,r as g,A as Ge,h as c,f as s,c as l,j as H,u as h,x as y,k as S,y as J,a as n,v as b,d as M,t as _,w as T}from"../chunks/index.589a98e8.js";import{D as he}from"../chunks/Docstring.27406313.js";import{C as ve}from"../chunks/CodeBlock.36627b28.js";import{E as We}from"../chunks/ExampleCodeBlock.3dc467a7.js";import{H as re,E as xe}from"../chunks/EditOnGithub.e5a8d9cb.js";function Ne(L){let o,B="Examples:",w,d,m;return d=new ve({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lJTBBJTBBZGV2aWNlJTIwJTNEJTIwJTIyY3VkYSUyMiUwQSUyMyUyMExvYWQlMjB0aGUlMjBjZF9pbWFnZW5ldDY0X2wyJTIwY2hlY2twb2ludC4lMEFtb2RlbF9pZF9vcl9wYXRoJTIwJTNEJTIwJTIyb3BlbmFpJTJGZGlmZnVzZXJzLWNkX2ltYWdlbmV0NjRfbDIlMjIlMEFwaXBlJTIwJTNEJTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZF9vcl9wYXRoJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUudG8oZGV2aWNlKSUwQSUwQSUyMyUyME9uZXN0ZXAlMjBTYW1wbGluZyUwQWltYWdlJTIwJTNEJTIwcGlwZShudW1faW5mZXJlbmNlX3N0ZXBzJTNEMSkuaW1hZ2VzJTVCMCU1RCUwQWltYWdlLnNhdmUoJTIyY2RfaW1hZ2VuZXQ2NF9sMl9vbmVzdGVwX3NhbXBsZS5wbmclMjIpJTBBJTBBJTIzJTIwT25lc3RlcCUyMHNhbXBsaW5nJTJDJTIwY2xhc3MtY29uZGl0aW9uYWwlMjBpbWFnZSUyMGdlbmVyYXRpb24lMEElMjMlMjBJbWFnZU5ldC02NCUyMGNsYXNzJTIwbGFiZWwlMjAxNDUlMjBjb3JyZXNwb25kcyUyMHRvJTIwa2luZyUyMHBlbmd1aW5zJTBBaW1hZ2UlMjAlM0QlMjBwaXBlKG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QxJTJDJTIwY2xhc3NfbGFiZWxzJTNEMTQ1KS5pbWFnZXMlNUIwJTVEJTBBaW1hZ2Uuc2F2ZSglMjJjZF9pbWFnZW5ldDY0X2wyX29uZXN0ZXBfc2FtcGxlX3Blbmd1aW4ucG5nJTIyKSUwQSUwQSUyMyUyME11bHRpc3RlcCUyMHNhbXBsaW5nJTJDJTIwY2xhc3MtY29uZGl0aW9uYWwlMjBpbWFnZSUyMGdlbmVyYXRpb24lMEElMjMlMjBUaW1lc3RlcHMlMjBjYW4lMjBiZSUyMGV4cGxpY2l0bHklMjBzcGVjaWZpZWQlM0IlMjB0aGUlMjBwYXJ0aWN1bGFyJTIwdGltZXN0ZXBzJTIwYmVsb3clMjBhcmUlMjBmcm9tJTIwdGhlJTIwb3JpZ2luYWwlMjBHaXRodWIlMjByZXBvJTNBJTBBJTIzJTIwaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGb3BlbmFpJTJGY29uc2lzdGVuY3lfbW9kZWxzJTJGYmxvYiUyRm1haW4lMkZzY3JpcHRzJTJGbGF1bmNoLnNoJTIzTDc3JTBBaW1hZ2UlMjAlM0QlMjBwaXBlKG51bV9pbmZlcmVuY2Vfc3RlcHMlM0ROb25lJTJDJTIwdGltZXN0ZXBzJTNEJTVCMjIlMkMlMjAwJTVEJTJDJTIwY2xhc3NfbGFiZWxzJTNEMTQ1KS5pbWFnZXMlNUIwJTVEJTBBaW1hZ2Uuc2F2ZSglMjJjZF9pbWFnZW5ldDY0X2wyX211bHRpc3RlcF9zYW1wbGVfcGVuZ3Vpbi5wbmclMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> ConsistencyModelPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>device = <span class="hljs-string">&quot;cuda&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Load the cd_imagenet64_l2 checkpoint.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model_id_or_path = <span class="hljs-string">&quot;openai/diffusers-cd_imagenet64_l2&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = ConsistencyModelPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(device)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Onestep Sampling</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(num_inference_steps=<span class="hljs-number">1</span>).images[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;cd_imagenet64_l2_onestep_sample.png&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Onestep sampling, class-conditional image generation</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># ImageNet-64 class label 145 corresponds to king penguins</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(num_inference_steps=<span class="hljs-number">1</span>, class_labels=<span class="hljs-number">145</span>).images[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;cd_imagenet64_l2_onestep_sample_penguin.png&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Multistep sampling, class-conditional image generation</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Timesteps can be explicitly specified; the particular timesteps below are from the original Github repo:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># https://github.com/openai/consistency_models/blob/main/scripts/launch.sh#L77</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(num_inference_steps=<span class="hljs-literal">None</span>, timesteps=[<span class="hljs-number">22</span>, <span class="hljs-number">0</span>], class_labels=<span class="hljs-number">145</span>).images[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;cd_imagenet64_l2_multistep_sample_penguin.png&quot;</span>)`,wrap:!1}}),{c(){o=p("p"),o.textContent=B,w=a(),g(d.$$.fragment)},l(i){o=c(i,"P",{"data-svelte-h":!0}),y(o)!=="svelte-kvfsh7"&&(o.textContent=B),w=l(i),h(d.$$.fragment,i)},m(i,u){n(i,o,u),n(i,w,u),b(d,i,u),m=!0},p:Ce,i(i){m||(M(d.$$.fragment,i),m=!0)},o(i){_(d.$$.fragment,i),m=!1},d(i){i&&(s(o),s(w)),T(d,i)}}}function Ye(L){let o,B,w,d,m,i,u,be='Consistency Models were proposed in <a href="https://huggingface.co/papers/2303.01469" rel="nofollow">Consistency Models</a> by Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever.',D,Z,Me="The abstract from the paper is:",Q,C,_e="<em>Diffusion models have significantly advanced the fields of image, audio, and video generation, but they depend on an iterative sampling process that causes slow generation. To overcome this limitation, we propose consistency models, a new family of models that generate high quality samples by directly mapping noise to data. They support fast one-step generation by design, while still allowing multistep sampling to trade compute for sample quality. They also support zero-shot data editing, such as image inpainting, colorization, and super-resolution, without requiring explicit training on these tasks. Consistency models can be trained either by distilling pre-trained diffusion models, or as standalone generative models altogether. Through extensive experiments, we demonstrate that they outperform existing distillation techniques for diffusion models in one- and few-step sampling, achieving the new state-of-the-art FID of 3.55 on CIFAR-10 and 6.20 on ImageNet 64x64 for one-step generation. When trained in isolation, consistency models become a new family of generative models that can outperform existing one-step, non-adversarial generative models on standard benchmarks such as CIFAR-10, ImageNet 64x64 and LSUN 256x256.</em>",q,U,Te='The original codebase can be found at <a href="https://github.com/openai/consistency_models" rel="nofollow">openai/consistency_models</a>, and additional checkpoints are available at <a href="https://huggingface.co/openai" rel="nofollow">openai</a>.',O,$,we='The pipeline was contributed by <a href="https://github.com/dg845" rel="nofollow">dg845</a> and <a href="https://huggingface.co/ayushtues" rel="nofollow">ayushtues</a>. ❤️',A,G,K,W,Je="For an additional speed-up, use <code>torch.compile</code> to generate multiple images in &lt;1 second:",ee,x,te,N,se,r,Y,de,R,ye="Pipeline for unconditional or class-conditional image generation.",me,k,Ie=`This model inherits from <a href="/docs/diffusers/pr_8461/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`,ue,j,P,fe,v,ne,V,ae,I,X,ge,E,je="Output class for image pipelines.",le,z,ie,F,oe;return m=new re({props:{title:"Consistency Models",local:"consistency-models",headingTag:"h1"}}),G=new re({props:{title:"Tips",local:"tips",headingTag:"h2"}}),x=new ve({props:{code:"JTIwJTIwaW1wb3J0JTIwdG9yY2glMEElMjAlMjBmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lJTBBJTBBJTIwJTIwZGV2aWNlJTIwJTNEJTIwJTIyY3VkYSUyMiUwQSUyMCUyMCUyMyUyMExvYWQlMjB0aGUlMjBjZF9iZWRyb29tMjU2X2xwaXBzJTIwY2hlY2twb2ludC4lMEElMjAlMjBtb2RlbF9pZF9vcl9wYXRoJTIwJTNEJTIwJTIyb3BlbmFpJTJGZGlmZnVzZXJzLWNkX2JlZHJvb20yNTZfbHBpcHMlMjIlMEElMjAlMjBwaXBlJTIwJTNEJTIwQ29uc2lzdGVuY3lNb2RlbFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZF9vcl9wYXRoJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQSUyMCUyMHBpcGUudG8oZGV2aWNlKSUwQSUwQSUyQiUyMHBpcGUudW5ldCUyMCUzRCUyMHRvcmNoLmNvbXBpbGUocGlwZS51bmV0JTJDJTIwbW9kZSUzRCUyMnJlZHVjZS1vdmVyaGVhZCUyMiUyQyUyMGZ1bGxncmFwaCUzRFRydWUpJTBBJTBBJTIwJTIwJTIzJTIwTXVsdGlzdGVwJTIwc2FtcGxpbmclMEElMjAlMjAlMjMlMjBUaW1lc3RlcHMlMjBjYW4lMjBiZSUyMGV4cGxpY2l0bHklMjBzcGVjaWZpZWQlM0IlMjB0aGUlMjBwYXJ0aWN1bGFyJTIwdGltZXN0ZXBzJTIwYmVsb3clMjBhcmUlMjBmcm9tJTIwdGhlJTIwb3JpZ2luYWwlMjBHaXRIdWIlMjByZXBvJTNBJTBBJTIwJTIwJTIzJTIwaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGb3BlbmFpJTJGY29uc2lzdGVuY3lfbW9kZWxzJTJGYmxvYiUyRm1haW4lMkZzY3JpcHRzJTJGbGF1bmNoLnNoJTIzTDgzJTBBJTIwJTIwZm9yJTIwXyUyMGluJTIwcmFuZ2UoMTApJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwaW1hZ2UlMjAlM0QlMjBwaXBlKHRpbWVzdGVwcyUzRCU1QjE3JTJDJTIwMCU1RCkuaW1hZ2VzJTVCMCU1RCUwQSUyMCUyMCUyMCUyMCUyMCUyMGltYWdlLnNob3coKQ==",highlighted:`  import torch
  from diffusers import ConsistencyModelPipeline

  device = &quot;cuda&quot;
  # Load the cd_bedroom256_lpips checkpoint.
  model_id_or_path = &quot;openai/diffusers-cd_bedroom256_lpips&quot;
  pipe = ConsistencyModelPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16)
  pipe.to(device)

<span class="hljs-addition">+ pipe.unet = torch.compile(pipe.unet, mode=&quot;reduce-overhead&quot;, fullgraph=True)</span>

  # Multistep sampling
  # Timesteps can be explicitly specified; the particular timesteps below are from the original GitHub repo:
  # https://github.com/openai/consistency_models/blob/main/scripts/launch.sh#L83
  for _ in range(10):
      image = pipe(timesteps=[17, 0]).images[0]
      image.show()`,wrap:!1}}),N=new re({props:{title:"ConsistencyModelPipeline",local:"diffusers.ConsistencyModelPipeline",headingTag:"h2"}}),Y=new he({props:{name:"class diffusers.ConsistencyModelPipeline",anchor:"diffusers.ConsistencyModelPipeline",parameters:[{name:"unet",val:": UNet2DModel"},{name:"scheduler",val:": CMStochasticIterativeScheduler"}],parametersDescription:[{anchor:"diffusers.ConsistencyModelPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/pr_8461/en/api/models/unet2d#diffusers.UNet2DModel">UNet2DModel</a>) &#x2014;
A <code>UNet2DModel</code> to denoise the encoded image latents.`,name:"unet"},{anchor:"diffusers.ConsistencyModelPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_8461/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Currently only
compatible with <a href="/docs/diffusers/pr_8461/en/api/schedulers/cm_stochastic_iterative#diffusers.CMStochasticIterativeScheduler">CMStochasticIterativeScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/vr_8461/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py#L63"}}),P=new he({props:{name:"__call__",anchor:"diffusers.ConsistencyModelPipeline.__call__",parameters:[{name:"batch_size",val:": int = 1"},{name:"class_labels",val:": Union = None"},{name:"num_inference_steps",val:": int = 1"},{name:"timesteps",val:": List = None"},{name:"generator",val:": Union = None"},{name:"latents",val:": Optional = None"},{name:"output_type",val:": Optional = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": Optional = None"},{name:"callback_steps",val:": int = 1"}],parametersDescription:[{anchor:"diffusers.ConsistencyModelPipeline.__call__.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of images to generate.`,name:"batch_size"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.class_labels",description:`<strong>class_labels</strong> (<code>torch.Tensor</code> or <code>List[int]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Optional class labels for conditioning class-conditional consistency models. Not used if the model is
not class-conditional.`,name:"class_labels"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Custom timesteps to use for the denoising process. If not defined, equal spaced <code>num_inference_steps</code>
timesteps are used. Must be in descending order.`,name:"timesteps"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/pr_8461/en/api/pipelines/ddpm#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.Tensor)</code>.`,name:"callback"},{anchor:"diffusers.ConsistencyModelPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function is called. If not specified, the callback is called at
every step.`,name:"callback_steps"}],source:"https://github.com/huggingface/diffusers/blob/vr_8461/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py#L167",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/pr_8461/en/api/pipelines/ddpm#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> is returned, otherwise a <code>tuple</code> is
returned where the first element is a list with the generated images.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/pr_8461/en/api/pipelines/ddpm#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),v=new We({props:{anchor:"diffusers.ConsistencyModelPipeline.__call__.example",$$slots:{default:[Ne]},$$scope:{ctx:L}}}),V=new re({props:{title:"ImagePipelineOutput",local:"diffusers.ImagePipelineOutput",headingTag:"h2"}}),X=new he({props:{name:"class diffusers.ImagePipelineOutput",anchor:"diffusers.ImagePipelineOutput",parameters:[{name:"images",val:": Union"}],parametersDescription:[{anchor:"diffusers.ImagePipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code> or NumPy array of shape <code>(batch_size, height, width, num_channels)</code>.`,name:"images"}],source:"https://github.com/huggingface/diffusers/blob/vr_8461/src/diffusers/pipelines/pipeline_utils.py#L100"}}),z=new xe({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/consistency_models.md"}}),{c(){o=p("meta"),B=a(),w=p("p"),d=a(),g(m.$$.fragment),i=a(),u=p("p"),u.innerHTML=be,D=a(),Z=p("p"),Z.textContent=Me,Q=a(),C=p("p"),C.innerHTML=_e,q=a(),U=p("p"),U.innerHTML=Te,O=a(),$=p("p"),$.innerHTML=we,A=a(),g(G.$$.fragment),K=a(),W=p("p"),W.innerHTML=Je,ee=a(),g(x.$$.fragment),te=a(),g(N.$$.fragment),se=a(),r=p("div"),g(Y.$$.fragment),de=a(),R=p("p"),R.textContent=ye,me=a(),k=p("p"),k.innerHTML=Ie,ue=a(),j=p("div"),g(P.$$.fragment),fe=a(),g(v.$$.fragment),ne=a(),g(V.$$.fragment),ae=a(),I=p("div"),g(X.$$.fragment),ge=a(),E=p("p"),E.textContent=je,le=a(),g(z.$$.fragment),ie=a(),F=p("p"),this.h()},l(e){const t=Ge("svelte-u9bgzb",document.head);o=c(t,"META",{name:!0,content:!0}),t.forEach(s),B=l(e),w=c(e,"P",{}),H(w).forEach(s),d=l(e),h(m.$$.fragment,e),i=l(e),u=c(e,"P",{"data-svelte-h":!0}),y(u)!=="svelte-u72wa"&&(u.innerHTML=be),D=l(e),Z=c(e,"P",{"data-svelte-h":!0}),y(Z)!=="svelte-1cwsb16"&&(Z.textContent=Me),Q=l(e),C=c(e,"P",{"data-svelte-h":!0}),y(C)!=="svelte-1s9qdye"&&(C.innerHTML=_e),q=l(e),U=c(e,"P",{"data-svelte-h":!0}),y(U)!=="svelte-hagm33"&&(U.innerHTML=Te),O=l(e),$=c(e,"P",{"data-svelte-h":!0}),y($)!=="svelte-a255m4"&&($.innerHTML=we),A=l(e),h(G.$$.fragment,e),K=l(e),W=c(e,"P",{"data-svelte-h":!0}),y(W)!=="svelte-2wb3ud"&&(W.innerHTML=Je),ee=l(e),h(x.$$.fragment,e),te=l(e),h(N.$$.fragment,e),se=l(e),r=c(e,"DIV",{class:!0});var f=H(r);h(Y.$$.fragment,f),de=l(f),R=c(f,"P",{"data-svelte-h":!0}),y(R)!=="svelte-1ka7pyd"&&(R.textContent=ye),me=l(f),k=c(f,"P",{"data-svelte-h":!0}),y(k)!=="svelte-q6zymt"&&(k.innerHTML=Ie),ue=l(f),j=c(f,"DIV",{class:!0});var pe=H(j);h(P.$$.fragment,pe),fe=l(pe),h(v.$$.fragment,pe),pe.forEach(s),f.forEach(s),ne=l(e),h(V.$$.fragment,e),ae=l(e),I=c(e,"DIV",{class:!0});var ce=H(I);h(X.$$.fragment,ce),ge=l(ce),E=c(ce,"P",{"data-svelte-h":!0}),y(E)!=="svelte-19wetgi"&&(E.textContent=je),ce.forEach(s),le=l(e),h(z.$$.fragment,e),ie=l(e),F=c(e,"P",{}),H(F).forEach(s),this.h()},h(){S(o,"name","hf:doc:metadata"),S(o,"content",Pe),S(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),S(r,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),S(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){J(document.head,o),n(e,B,t),n(e,w,t),n(e,d,t),b(m,e,t),n(e,i,t),n(e,u,t),n(e,D,t),n(e,Z,t),n(e,Q,t),n(e,C,t),n(e,q,t),n(e,U,t),n(e,O,t),n(e,$,t),n(e,A,t),b(G,e,t),n(e,K,t),n(e,W,t),n(e,ee,t),b(x,e,t),n(e,te,t),b(N,e,t),n(e,se,t),n(e,r,t),b(Y,r,null),J(r,de),J(r,R),J(r,me),J(r,k),J(r,ue),J(r,j),b(P,j,null),J(j,fe),b(v,j,null),n(e,ne,t),b(V,e,t),n(e,ae,t),n(e,I,t),b(X,I,null),J(I,ge),J(I,E),n(e,le,t),b(z,e,t),n(e,ie,t),n(e,F,t),oe=!0},p(e,[t]){const f={};t&2&&(f.$$scope={dirty:t,ctx:e}),v.$set(f)},i(e){oe||(M(m.$$.fragment,e),M(G.$$.fragment,e),M(x.$$.fragment,e),M(N.$$.fragment,e),M(Y.$$.fragment,e),M(P.$$.fragment,e),M(v.$$.fragment,e),M(V.$$.fragment,e),M(X.$$.fragment,e),M(z.$$.fragment,e),oe=!0)},o(e){_(m.$$.fragment,e),_(G.$$.fragment,e),_(x.$$.fragment,e),_(N.$$.fragment,e),_(Y.$$.fragment,e),_(P.$$.fragment,e),_(v.$$.fragment,e),_(V.$$.fragment,e),_(X.$$.fragment,e),_(z.$$.fragment,e),oe=!1},d(e){e&&(s(B),s(w),s(d),s(i),s(u),s(D),s(Z),s(Q),s(C),s(q),s(U),s(O),s($),s(A),s(K),s(W),s(ee),s(te),s(se),s(r),s(ne),s(ae),s(I),s(le),s(ie),s(F)),s(o),T(m,e),T(G,e),T(x,e),T(N,e),T(Y),T(P),T(v),T(V,e),T(X),T(z,e)}}}const Pe='{"title":"Consistency Models","local":"consistency-models","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2},{"title":"ConsistencyModelPipeline","local":"diffusers.ConsistencyModelPipeline","sections":[],"depth":2},{"title":"ImagePipelineOutput","local":"diffusers.ImagePipelineOutput","sections":[],"depth":2}],"depth":1}';function Ve(L){return Ze(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class He extends Ue{constructor(o){super(),$e(this,o,Ve,Ye,Be,{})}}export{He as component};
