import{s as je,o as Be,n as Ze}from"../chunks/scheduler.182ea377.js";import{S as ve,i as Ce,g as c,s as a,r as b,A as Ue,h as p,f as s,c as l,j as E,u as M,x as T,k as H,y as g,a as n,v as w,d as J,t as _,w as y}from"../chunks/index.abf12888.js";import{D as fe}from"../chunks/Docstring.93f6f462.js";import{C as Ie}from"../chunks/CodeBlock.57fe6e13.js";import{E as Ge}from"../chunks/ExampleCodeBlock.658f5cd6.js";import{H as ce}from"../chunks/Heading.16916d63.js";function $e(S){let o,Z="Examples:",h,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=c("p"),o.textContent=Z,h=a(),b(d.$$.fragment)},l(i){o=p(i,"P",{"data-svelte-h":!0}),T(o)!=="svelte-kvfsh7"&&(o.textContent=Z),h=l(i),M(d.$$.fragment,i)},m(i,u){n(i,o,u),n(i,h,u),w(d,i,u),m=!0},p:Ze,i(i){m||(J(d.$$.fragment,i),m=!0)},o(i){_(d.$$.fragment,i),m=!1},d(i){i&&(s(o),s(h)),y(d,i)}}}function We(S){let o,Z,h,d,m,i,u,he='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,ge="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,Te='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>. ❤️',O,$,A,W,we="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,pe,z,Je="Pipeline for unconditional or class-conditional image generation.",re,R,_e=`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,k,ye="Output class for image pipelines.",ae,F,le;return m=new ce({props:{title:"Consistency Models",local:"consistency-models",headingTag:"h1"}}),$=new ce({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 ce({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:": 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.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/dit#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#L167",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/dit#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/dit#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),B=new Ge({props:{anchor:"diffusers.ConsistencyModelPipeline.__call__.example",$$slots:{default:[$e]},$$scope:{ctx:S}}}),V=new ce({props:{title:"ImagePipelineOutput",local:"diffusers.ImagePipelineOutput",headingTag:"h2"}}),X=new fe({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/main/src/diffusers/pipelines/pipeline_utils.py#L115"}}),{c(){o=c("meta"),Z=a(),h=c("p"),d=a(),b(m.$$.fragment),i=a(),u=c("p"),u.innerHTML=he,L=a(),v=c("p"),v.textContent=ge,D=a(),C=c("p"),C.innerHTML=be,Q=a(),U=c("p"),U.innerHTML=Me,q=a(),G=c("p"),G.innerHTML=Te,O=a(),b($.$$.fragment),A=a(),W=c("p"),W.innerHTML=we,K=a(),b(x.$$.fragment),ee=a(),b(N.$$.fragment),te=a(),r=c("div"),b(Y.$$.fragment),pe=a(),z=c("p"),z.textContent=Je,re=a(),R=c("p"),R.innerHTML=_e,de=a(),j=c("div"),b(P.$$.fragment),me=a(),b(B.$$.fragment),se=a(),b(V.$$.fragment),ne=a(),I=c("div"),b(X.$$.fragment),ue=a(),k=c("p"),k.textContent=ye,ae=a(),F=c("p"),this.h()},l(e){const t=Ue("svelte-u9bgzb",document.head);o=p(t,"META",{name:!0,content:!0}),t.forEach(s),Z=l(e),h=p(e,"P",{}),E(h).forEach(s),d=l(e),M(m.$$.fragment,e),i=l(e),u=p(e,"P",{"data-svelte-h":!0}),T(u)!=="svelte-u72wa"&&(u.innerHTML=he),L=l(e),v=p(e,"P",{"data-svelte-h":!0}),T(v)!=="svelte-1cwsb16"&&(v.textContent=ge),D=l(e),C=p(e,"P",{"data-svelte-h":!0}),T(C)!=="svelte-1s9qdye"&&(C.innerHTML=be),Q=l(e),U=p(e,"P",{"data-svelte-h":!0}),T(U)!=="svelte-hagm33"&&(U.innerHTML=Me),q=l(e),G=p(e,"P",{"data-svelte-h":!0}),T(G)!=="svelte-a255m4"&&(G.innerHTML=Te),O=l(e),M($.$$.fragment,e),A=l(e),W=p(e,"P",{"data-svelte-h":!0}),T(W)!=="svelte-2wb3ud"&&(W.innerHTML=we),K=l(e),M(x.$$.fragment,e),ee=l(e),M(N.$$.fragment,e),te=l(e),r=p(e,"DIV",{class:!0});var f=E(r);M(Y.$$.fragment,f),pe=l(f),z=p(f,"P",{"data-svelte-h":!0}),T(z)!=="svelte-1ka7pyd"&&(z.textContent=Je),re=l(f),R=p(f,"P",{"data-svelte-h":!0}),T(R)!=="svelte-496sm0"&&(R.innerHTML=_e),de=l(f),j=p(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=p(e,"DIV",{class:!0});var oe=E(I);M(X.$$.fragment,oe),ue=l(oe),k=p(oe,"P",{"data-svelte-h":!0}),T(k)!=="svelte-19wetgi"&&(k.textContent=ye),oe.forEach(s),ae=l(e),F=p(e,"P",{}),E(F).forEach(s),this.h()},h(){H(o,"name","hf:doc:metadata"),H(o,"content",xe),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){g(document.head,o),n(e,Z,t),n(e,h,t),n(e,d,t),w(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,O,t),w($,e,t),n(e,A,t),n(e,W,t),n(e,K,t),w(x,e,t),n(e,ee,t),w(N,e,t),n(e,te,t),n(e,r,t),w(Y,r,null),g(r,pe),g(r,z),g(r,re),g(r,R),g(r,de),g(r,j),w(P,j,null),g(j,me),w(B,j,null),n(e,se,t),w(V,e,t),n(e,ne,t),n(e,I,t),w(X,I,null),g(I,ue),g(I,k),n(e,ae,t),n(e,F,t),le=!0},p(e,[t]){const f={};t&2&&(f.$$scope={dirty:t,ctx:e}),B.$set(f)},i(e){le||(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=!0)},o(e){_(m.$$.fragment,e),_($.$$.fragment,e),_(x.$$.fragment,e),_(N.$$.fragment,e),_(Y.$$.fragment,e),_(P.$$.fragment,e),_(B.$$.fragment,e),_(V.$$.fragment,e),_(X.$$.fragment,e),le=!1},d(e){e&&(s(Z),s(h),s(d),s(i),s(u),s(L),s(v),s(D),s(C),s(Q),s(U),s(q),s(G),s(O),s(A),s(W),s(K),s(ee),s(te),s(r),s(se),s(ne),s(I),s(ae),s(F)),s(o),y(m,e),y($,e),y(x,e),y(N,e),y(Y),y(P),y(B),y(V,e),y(X)}}}const xe='{"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 Ne(S){return Be(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ke extends ve{constructor(o){super(),Ce(this,o,Ne,We,je,{})}}export{ke as component};
