import{s as je,o as Be,n as Ze}from"../chunks/scheduler.182ea377.js";import{S as ve,i as Ce,g as p,s as a,r as b,A as Ue,h as c,f as s,c as l,j as E,u as M,x as y,k as H,y as h,a as n,v as T,d as w,t as J,w as _}from"../chunks/index.1ea56653.js";import{H as pe,g as Ge}from"../chunks/Heading.71ac6e9f.js";import{D as fe}from"../chunks/Docstring.59aaf0cd.js";import{C as Ie}from"../chunks/CodeBlock.82c2494b.js";import{E as $e}from"../chunks/ExampleCodeBlock.95ae1d71.js";function We(S){let o,Z="Examples:",g,d,m;return d=new Ie({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=Z,g=a(),b(d.$$.fragment)},l(i){o=c(i,"P",{"data-svelte-h":!0}),y(o)!=="svelte-kvfsh7"&&(o.textContent=Z),g=l(i),M(d.$$.fragment,i)},m(i,u){n(i,o,u),n(i,g,u),T(d,i,u),m=!0},p:Ze,i(i){m||(w(d.$$.fragment,i),m=!0)},o(i){J(d.$$.fragment,i),m=!1},d(i){i&&(s(o),s(g)),_(d,i)}}}function xe(S){let o,Z,g,d,m,i,u,ge='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.',L,v,he="The abstract from the paper is:",D,C,be="<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,Me='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>.',q,G,ye='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,$,O,W,Te="For an additional speed-up, use <code>torch.compile</code> to generate multiple images in &lt;1 second:",K,x,ee,N,te,r,Y,ce,z,we="Pipeline for unconditional or class-conditional image generation.",re,F,Je=`This model inherits from <a href="/docs/diffusers/main/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.).`,de,j,P,me,B,se,V,ne,I,X,ue,R,_e="Output class for image pipelines.",ae,k,le;return m=new pe({props:{title:"Consistency Models",local:"consistency-models",headingTag:"h1"}}),$=new pe({props:{title:"Tips",local:"tips",headingTag:"h2"}}),x=new Ie({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 pe({props:{title:"ConsistencyModelPipeline",local:"diffusers.ConsistencyModelPipeline",headingTag:"h2"}}),Y=new fe({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/main/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/main/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/main/en/api/schedulers/cm_stochastic_iterative#diffusers.CMStochasticIterativeScheduler">CMStochasticIterativeScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py#L63"}}),P=new fe({props:{name:"__call__",anchor:"diffusers.ConsistencyModelPipeline.__call__",parameters:[{name:"batch_size",val:": int = 1"},{name:"class_labels",val:": typing.Union[torch.Tensor, typing.List[int], int, NoneType] = None"},{name:"num_inference_steps",val:": int = 1"},{name:"timesteps",val:": typing.List[int] = None"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Union[typing.Callable[[int, int, torch.FloatTensor], NoneType], NoneType] = 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.FloatTensor</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/main/en/api/pipelines/ddim#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.FloatTensor)</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/main/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py#L166",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/ddim#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/main/en/api/pipelines/ddim#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),B=new $e({props:{anchor:"diffusers.ConsistencyModelPipeline.__call__.example",$$slots:{default:[We]},$$scope:{ctx:S}}}),V=new pe({props:{title:"ImagePipelineOutput",local:"diffusers.ImagePipelineOutput",headingTag:"h2"}}),X=new fe({props:{name:"class diffusers.ImagePipelineOutput",anchor:"diffusers.ImagePipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"}],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/main/src/diffusers/pipelines/pipeline_utils.py#L111"}}),{c(){o=p("meta"),Z=a(),g=p("p"),d=a(),b(m.$$.fragment),i=a(),u=p("p"),u.innerHTML=ge,L=a(),v=p("p"),v.textContent=he,D=a(),C=p("p"),C.innerHTML=be,Q=a(),U=p("p"),U.innerHTML=Me,q=a(),G=p("p"),G.innerHTML=ye,A=a(),b($.$$.fragment),O=a(),W=p("p"),W.innerHTML=Te,K=a(),b(x.$$.fragment),ee=a(),b(N.$$.fragment),te=a(),r=p("div"),b(Y.$$.fragment),ce=a(),z=p("p"),z.textContent=we,re=a(),F=p("p"),F.innerHTML=Je,de=a(),j=p("div"),b(P.$$.fragment),me=a(),b(B.$$.fragment),se=a(),b(V.$$.fragment),ne=a(),I=p("div"),b(X.$$.fragment),ue=a(),R=p("p"),R.textContent=_e,ae=a(),k=p("p"),this.h()},l(e){const t=Ue("svelte-u9bgzb",document.head);o=c(t,"META",{name:!0,content:!0}),t.forEach(s),Z=l(e),g=c(e,"P",{}),E(g).forEach(s),d=l(e),M(m.$$.fragment,e),i=l(e),u=c(e,"P",{"data-svelte-h":!0}),y(u)!=="svelte-u72wa"&&(u.innerHTML=ge),L=l(e),v=c(e,"P",{"data-svelte-h":!0}),y(v)!=="svelte-1cwsb16"&&(v.textContent=he),D=l(e),C=c(e,"P",{"data-svelte-h":!0}),y(C)!=="svelte-1s9qdye"&&(C.innerHTML=be),Q=l(e),U=c(e,"P",{"data-svelte-h":!0}),y(U)!=="svelte-hagm33"&&(U.innerHTML=Me),q=l(e),G=c(e,"P",{"data-svelte-h":!0}),y(G)!=="svelte-a255m4"&&(G.innerHTML=ye),A=l(e),M($.$$.fragment,e),O=l(e),W=c(e,"P",{"data-svelte-h":!0}),y(W)!=="svelte-2wb3ud"&&(W.innerHTML=Te),K=l(e),M(x.$$.fragment,e),ee=l(e),M(N.$$.fragment,e),te=l(e),r=c(e,"DIV",{class:!0});var f=E(r);M(Y.$$.fragment,f),ce=l(f),z=c(f,"P",{"data-svelte-h":!0}),y(z)!=="svelte-1ka7pyd"&&(z.textContent=we),re=l(f),F=c(f,"P",{"data-svelte-h":!0}),y(F)!=="svelte-496sm0"&&(F.innerHTML=Je),de=l(f),j=c(f,"DIV",{class:!0});var ie=E(j);M(P.$$.fragment,ie),me=l(ie),M(B.$$.fragment,ie),ie.forEach(s),f.forEach(s),se=l(e),M(V.$$.fragment,e),ne=l(e),I=c(e,"DIV",{class:!0});var oe=E(I);M(X.$$.fragment,oe),ue=l(oe),R=c(oe,"P",{"data-svelte-h":!0}),y(R)!=="svelte-19wetgi"&&(R.textContent=_e),oe.forEach(s),ae=l(e),k=c(e,"P",{}),E(k).forEach(s),this.h()},h(){H(o,"name","hf:doc:metadata"),H(o,"content",Ne),H(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),H(r,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),H(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){h(document.head,o),n(e,Z,t),n(e,g,t),n(e,d,t),T(m,e,t),n(e,i,t),n(e,u,t),n(e,L,t),n(e,v,t),n(e,D,t),n(e,C,t),n(e,Q,t),n(e,U,t),n(e,q,t),n(e,G,t),n(e,A,t),T($,e,t),n(e,O,t),n(e,W,t),n(e,K,t),T(x,e,t),n(e,ee,t),T(N,e,t),n(e,te,t),n(e,r,t),T(Y,r,null),h(r,ce),h(r,z),h(r,re),h(r,F),h(r,de),h(r,j),T(P,j,null),h(j,me),T(B,j,null),n(e,se,t),T(V,e,t),n(e,ne,t),n(e,I,t),T(X,I,null),h(I,ue),h(I,R),n(e,ae,t),n(e,k,t),le=!0},p(e,[t]){const f={};t&2&&(f.$$scope={dirty:t,ctx:e}),B.$set(f)},i(e){le||(w(m.$$.fragment,e),w($.$$.fragment,e),w(x.$$.fragment,e),w(N.$$.fragment,e),w(Y.$$.fragment,e),w(P.$$.fragment,e),w(B.$$.fragment,e),w(V.$$.fragment,e),w(X.$$.fragment,e),le=!0)},o(e){J(m.$$.fragment,e),J($.$$.fragment,e),J(x.$$.fragment,e),J(N.$$.fragment,e),J(Y.$$.fragment,e),J(P.$$.fragment,e),J(B.$$.fragment,e),J(V.$$.fragment,e),J(X.$$.fragment,e),le=!1},d(e){e&&(s(Z),s(g),s(d),s(i),s(u),s(L),s(v),s(D),s(C),s(Q),s(U),s(q),s(G),s(A),s(O),s(W),s(K),s(ee),s(te),s(r),s(se),s(ne),s(I),s(ae),s(k)),s(o),_(m,e),_($,e),_(x,e),_(N,e),_(Y),_(P),_(B),_(V,e),_(X)}}}const Ne='{"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 Ye(S){return Be(()=>{new URLSearchParams(window.location.search).get("fw"),window.hfDocGoto=Ge}),[]}class ke extends ve{constructor(o){super(),Ce(this,o,Ye,xe,je,{})}}export{ke as component};
