import{s as _t,n as vt,o as xt}from"../chunks/scheduler.53228c21.js";import{S as bt,i as St,e as o,s as n,c as p,h as $t,a,d as s,b as i,f as x,g as u,j as m,k as v,l as t,m as l,n as h,t as f,o as g,p as _}from"../chunks/index.100fac89.js";import{C as yt}from"../chunks/CopyLLMTxtMenu.20a72e0e.js";import{D as S}from"../chunks/Docstring.49101787.js";import{H as Ze,E as Ct}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.4d82655d.js";function Tt(et){let $,me,de,pe,P,ue,O,he,E,tt='<a href="https://huggingface.co/papers/2303.01469" rel="nofollow">Consistency Models</a> by Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever introduced a multistep and onestep scheduler (Algorithm 1) that is capable of generating good samples in one or a small number of steps.',fe,H,st="The abstract from the paper is:",ge,k,nt="<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>",_e,A,it='The original codebase can be found at <a href="https://github.com/openai/consistency_models" rel="nofollow">openai/consistency_models</a>.',ve,N,xe,c,q,Ee,J,rt="Multistep and onestep sampling for consistency models.",He,X,ot=`This model inherits from <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a> and <a href="/docs/diffusers/main/en/api/configuration#diffusers.ConfigMixin">ConfigMixin</a>. Check the superclass documentation for the generic
methods the library implements for all schedulers such as loading and saving.`,ke,C,V,Ae,Z,at="Add noise to the original samples according to the noise schedule at the specified timesteps.",Ne,b,z,qe,ee,ct=`Gets the scalings used in the consistency model parameterization (from Appendix C of the
<a href="https://huggingface.co/papers/2303.01469" rel="nofollow">paper</a>) to enforce boundary condition.`,Ve,U,dt="<p>&gt; <code>epsilon</code> in the equations for <code>c_skip</code> and <code>c_out</code> is set to <code>sigma_min</code>.</p>",ze,T,K,Ue,te,lt="Find the index of a given timestep in the timestep schedule.",Ke,M,j,je,se,mt="Scales the consistency model input by <code>(sigma**2 + sigma_data**2) ** 0.5</code>.",Fe,I,F,Ge,ne,pt="Sets the begin index for the scheduler. This function should be run from pipeline before the inference.",Re,w,G,We,ie,ut="Sets the timesteps used for the diffusion chain (to be run before inference).",Be,D,R,Qe,re,ht="Gets scaled timesteps from the Karras sigmas for input to the consistency model.",Ye,L,W,Je,oe,ft=`Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion
process from the learned model outputs (most often the predicted noise).`,be,B,Se,y,Q,Xe,ae,gt="Output class for the scheduler’s <code>step</code> function.",$e,Y,ye,le,Ce;return P=new yt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),O=new Ze({props:{title:"CMStochasticIterativeScheduler",local:"cmstochasticiterativescheduler",headingTag:"h1"}}),N=new Ze({props:{title:"CMStochasticIterativeScheduler",local:"diffusers.CMStochasticIterativeScheduler",headingTag:"h2"}}),q=new S({props:{name:"class diffusers.CMStochasticIterativeScheduler",anchor:"diffusers.CMStochasticIterativeScheduler",parameters:[{name:"num_train_timesteps",val:": int = 40"},{name:"sigma_min",val:": float = 0.002"},{name:"sigma_max",val:": float = 80.0"},{name:"sigma_data",val:": float = 0.5"},{name:"s_noise",val:": float = 1.0"},{name:"rho",val:": float = 7.0"},{name:"clip_denoised",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.num_train_timesteps",description:`<strong>num_train_timesteps</strong> (<code>int</code>, defaults to 40) &#x2014;
The number of diffusion steps to train the model.`,name:"num_train_timesteps"},{anchor:"diffusers.CMStochasticIterativeScheduler.sigma_min",description:`<strong>sigma_min</strong> (<code>float</code>, defaults to 0.002) &#x2014;
Minimum noise magnitude in the sigma schedule. Defaults to 0.002 from the original implementation.`,name:"sigma_min"},{anchor:"diffusers.CMStochasticIterativeScheduler.sigma_max",description:`<strong>sigma_max</strong> (<code>float</code>, defaults to 80.0) &#x2014;
Maximum noise magnitude in the sigma schedule. Defaults to 80.0 from the original implementation.`,name:"sigma_max"},{anchor:"diffusers.CMStochasticIterativeScheduler.sigma_data",description:`<strong>sigma_data</strong> (<code>float</code>, defaults to 0.5) &#x2014;
The standard deviation of the data distribution from the EDM
<a href="https://huggingface.co/papers/2206.00364" rel="nofollow">paper</a>. Defaults to 0.5 from the original implementation.`,name:"sigma_data"},{anchor:"diffusers.CMStochasticIterativeScheduler.s_noise",description:`<strong>s_noise</strong> (<code>float</code>, defaults to 1.0) &#x2014;
The amount of additional noise to counteract loss of detail during sampling. A reasonable range is [1.000,
1.011]. Defaults to 1.0 from the original implementation.`,name:"s_noise"},{anchor:"diffusers.CMStochasticIterativeScheduler.rho",description:`<strong>rho</strong> (<code>float</code>, defaults to 7.0) &#x2014;
The parameter for calculating the Karras sigma schedule from the EDM
<a href="https://huggingface.co/papers/2206.00364" rel="nofollow">paper</a>. Defaults to 7.0 from the original implementation.`,name:"rho"},{anchor:"diffusers.CMStochasticIterativeScheduler.clip_denoised",description:`<strong>clip_denoised</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to clip the denoised outputs to <code>(-1, 1)</code>.`,name:"clip_denoised"},{anchor:"diffusers.CMStochasticIterativeScheduler.timesteps",description:`<strong>timesteps</strong> (<code>List</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>, <em>optional</em>) &#x2014;
An explicit timestep schedule that can be optionally specified. The timesteps are expected to be in
increasing order.`,name:"timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L44"}}),V=new S({props:{name:"add_noise",anchor:"diffusers.CMStochasticIterativeScheduler.add_noise",parameters:[{name:"original_samples",val:": Tensor"},{name:"noise",val:": Tensor"},{name:"timesteps",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.add_noise.original_samples",description:`<strong>original_samples</strong> (<code>torch.Tensor</code>) &#x2014;
The original samples to which noise will be added.`,name:"original_samples"},{anchor:"diffusers.CMStochasticIterativeScheduler.add_noise.noise",description:`<strong>noise</strong> (<code>torch.Tensor</code>) &#x2014;
The noise tensor to add to the original samples.`,name:"noise"},{anchor:"diffusers.CMStochasticIterativeScheduler.add_noise.timesteps",description:`<strong>timesteps</strong> (<code>torch.Tensor</code>) &#x2014;
The timesteps at which to add noise, determining the noise level from the schedule.`,name:"timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L430",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The noisy samples with added noise scaled according to the timestep schedule.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),z=new S({props:{name:"get_scalings_for_boundary_condition",anchor:"diffusers.CMStochasticIterativeScheduler.get_scalings_for_boundary_condition",parameters:[{name:"sigma",val:""}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.get_scalings_for_boundary_condition.sigma",description:`<strong>sigma</strong> (<code>torch.Tensor</code>) &#x2014;
The current sigma in the Karras sigma schedule.`,name:"sigma"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L266",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A two-element tuple where <code>c_skip</code> (which weights the current sample) is the first element and <code>c_out</code>
(which weights the consistency model output) is the second element.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tuple</code></p>
`}}),K=new S({props:{name:"index_for_timestep",anchor:"diffusers.CMStochasticIterativeScheduler.index_for_timestep",parameters:[{name:"timestep",val:": typing.Union[float, torch.Tensor]"},{name:"schedule_timesteps",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.index_for_timestep.timestep",description:`<strong>timestep</strong> (<code>float</code> or <code>torch.Tensor</code>) &#x2014;
The timestep value to find in the schedule.`,name:"timestep"},{anchor:"diffusers.CMStochasticIterativeScheduler.index_for_timestep.schedule_timesteps",description:`<strong>schedule_timesteps</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
The timestep schedule to search in. If <code>None</code>, uses <code>self.timesteps</code>.`,name:"schedule_timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L290",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The index of the timestep in the schedule. For the very first step, returns the second index if
multiple matches exist to avoid skipping a sigma when starting mid-schedule (e.g., for image-to-image).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),j=new S({props:{name:"scale_model_input",anchor:"diffusers.CMStochasticIterativeScheduler.scale_model_input",parameters:[{name:"sample",val:": Tensor"},{name:"timestep",val:": typing.Union[float, torch.Tensor]"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.scale_model_input.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014;
The input sample.`,name:"sample"},{anchor:"diffusers.CMStochasticIterativeScheduler.scale_model_input.timestep",description:`<strong>timestep</strong> (<code>float</code> or <code>torch.Tensor</code>) &#x2014;
The current timestep in the diffusion chain.`,name:"timestep"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L129",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A scaled input sample.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),F=new S({props:{name:"set_begin_index",anchor:"diffusers.CMStochasticIterativeScheduler.set_begin_index",parameters:[{name:"begin_index",val:": int = 0"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.set_begin_index.begin_index",description:`<strong>begin_index</strong> (<code>int</code>, defaults to <code>0</code>) &#x2014;
The begin index for the scheduler.`,name:"begin_index"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L119"}}),G=new S({props:{name:"set_timesteps",anchor:"diffusers.CMStochasticIterativeScheduler.set_timesteps",parameters:[{name:"num_inference_steps",val:": typing.Optional[int] = None"},{name:"device",val:": typing.Union[str, torch.device] = None"},{name:"timesteps",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.set_timesteps.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>) &#x2014;
The number of diffusion steps used when generating samples with a pre-trained model.`,name:"num_inference_steps"},{anchor:"diffusers.CMStochasticIterativeScheduler.set_timesteps.device",description:`<strong>device</strong> (<code>str</code> or <code>torch.device</code>, <em>optional</em>) &#x2014;
The device to which the timesteps should be moved to. If <code>None</code>, the timesteps are not moved.`,name:"device"},{anchor:"diffusers.CMStochasticIterativeScheduler.set_timesteps.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Custom timesteps used to support arbitrary spacing between timesteps. If <code>None</code>, then the default
timestep spacing strategy of equal spacing between timesteps is used. If <code>timesteps</code> is passed,
<code>num_inference_steps</code> must be <code>None</code>.`,name:"timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L173"}}),R=new S({props:{name:"sigma_to_t",anchor:"diffusers.CMStochasticIterativeScheduler.sigma_to_t",parameters:[{name:"sigmas",val:": typing.Union[float, numpy.ndarray]"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.sigma_to_t.sigmas",description:`<strong>sigmas</strong> (<code>float</code> or <code>np.ndarray</code>) &#x2014;
A single Karras sigma or an array of Karras sigmas.`,name:"sigmas"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L154",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A scaled input timestep or scaled input timestep array.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>float</code> or <code>np.ndarray</code></p>
`}}),W=new S({props:{name:"step",anchor:"diffusers.CMStochasticIterativeScheduler.step",parameters:[{name:"model_output",val:": Tensor"},{name:"timestep",val:": typing.Union[float, torch.Tensor]"},{name:"sample",val:": Tensor"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.CMStochasticIterativeScheduler.step.model_output",description:`<strong>model_output</strong> (<code>torch.Tensor</code>) &#x2014;
The direct output from the learned diffusion model.`,name:"model_output"},{anchor:"diffusers.CMStochasticIterativeScheduler.step.timestep",description:`<strong>timestep</strong> (<code>float</code>) &#x2014;
The current timestep in the diffusion chain.`,name:"timestep"},{anchor:"diffusers.CMStochasticIterativeScheduler.step.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014;
A current instance of a sample created by the diffusion process.`,name:"sample"},{anchor:"diffusers.CMStochasticIterativeScheduler.step.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A random number generator.`,name:"generator"},{anchor:"diffusers.CMStochasticIterativeScheduler.step.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/schedulers/cm_stochastic_iterative#diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput">CMStochasticIterativeSchedulerOutput</a> or <code>tuple</code>.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L336",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If return_dict is <code>True</code>,
<a
  href="/docs/diffusers/main/en/api/schedulers/cm_stochastic_iterative#diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput"
>CMStochasticIterativeSchedulerOutput</a> is returned,
otherwise a tuple is returned where the first element is the sample tensor.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/schedulers/cm_stochastic_iterative#diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput"
>CMStochasticIterativeSchedulerOutput</a> or <code>tuple</code></p>
`}}),B=new Ze({props:{title:"CMStochasticIterativeSchedulerOutput",local:"diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput",headingTag:"h2"}}),Q=new S({props:{name:"class diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput",anchor:"diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput",parameters:[{name:"prev_sample",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput.prev_sample",description:`<strong>prev_sample</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_channels, height, width)</code> for images) &#x2014;
Computed sample <code>(x_{t-1})</code> of previous timestep. <code>prev_sample</code> should be used as next model input in the
denoising loop.`,name:"prev_sample"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_consistency_models.py#L31"}}),Y=new Ct({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/schedulers/cm_stochastic_iterative.md"}}),{c(){$=o("meta"),me=n(),de=o("p"),pe=n(),p(P.$$.fragment),ue=n(),p(O.$$.fragment),he=n(),E=o("p"),E.innerHTML=tt,fe=n(),H=o("p"),H.textContent=st,ge=n(),k=o("p"),k.innerHTML=nt,_e=n(),A=o("p"),A.innerHTML=it,ve=n(),p(N.$$.fragment),xe=n(),c=o("div"),p(q.$$.fragment),Ee=n(),J=o("p"),J.textContent=rt,He=n(),X=o("p"),X.innerHTML=ot,ke=n(),C=o("div"),p(V.$$.fragment),Ae=n(),Z=o("p"),Z.textContent=at,Ne=n(),b=o("div"),p(z.$$.fragment),qe=n(),ee=o("p"),ee.innerHTML=ct,Ve=n(),U=o("blockquote"),U.innerHTML=dt,ze=n(),T=o("div"),p(K.$$.fragment),Ue=n(),te=o("p"),te.textContent=lt,Ke=n(),M=o("div"),p(j.$$.fragment),je=n(),se=o("p"),se.innerHTML=mt,Fe=n(),I=o("div"),p(F.$$.fragment),Ge=n(),ne=o("p"),ne.textContent=pt,Re=n(),w=o("div"),p(G.$$.fragment),We=n(),ie=o("p"),ie.textContent=ut,Be=n(),D=o("div"),p(R.$$.fragment),Qe=n(),re=o("p"),re.textContent=ht,Ye=n(),L=o("div"),p(W.$$.fragment),Je=n(),oe=o("p"),oe.textContent=ft,be=n(),p(B.$$.fragment),Se=n(),y=o("div"),p(Q.$$.fragment),Xe=n(),ae=o("p"),ae.innerHTML=gt,$e=n(),p(Y.$$.fragment),ye=n(),le=o("p"),this.h()},l(e){const r=$t("svelte-u9bgzb",document.head);$=a(r,"META",{name:!0,content:!0}),r.forEach(s),me=i(e),de=a(e,"P",{}),x(de).forEach(s),pe=i(e),u(P.$$.fragment,e),ue=i(e),u(O.$$.fragment,e),he=i(e),E=a(e,"P",{"data-svelte-h":!0}),m(E)!=="svelte-je4cvt"&&(E.innerHTML=tt),fe=i(e),H=a(e,"P",{"data-svelte-h":!0}),m(H)!=="svelte-1cwsb16"&&(H.textContent=st),ge=i(e),k=a(e,"P",{"data-svelte-h":!0}),m(k)!=="svelte-1s9qdye"&&(k.innerHTML=nt),_e=i(e),A=a(e,"P",{"data-svelte-h":!0}),m(A)!=="svelte-1ci2nab"&&(A.innerHTML=it),ve=i(e),u(N.$$.fragment,e),xe=i(e),c=a(e,"DIV",{class:!0});var d=x(c);u(q.$$.fragment,d),Ee=i(d),J=a(d,"P",{"data-svelte-h":!0}),m(J)!=="svelte-252n82"&&(J.textContent=rt),He=i(d),X=a(d,"P",{"data-svelte-h":!0}),m(X)!=="svelte-linuuh"&&(X.innerHTML=ot),ke=i(d),C=a(d,"DIV",{class:!0});var Te=x(C);u(V.$$.fragment,Te),Ae=i(Te),Z=a(Te,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-rz9b5o"&&(Z.textContent=at),Te.forEach(s),Ne=i(d),b=a(d,"DIV",{class:!0});var ce=x(b);u(z.$$.fragment,ce),qe=i(ce),ee=a(ce,"P",{"data-svelte-h":!0}),m(ee)!=="svelte-1t9pjgt"&&(ee.innerHTML=ct),Ve=i(ce),U=a(ce,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),m(U)!=="svelte-9cx3k4"&&(U.innerHTML=dt),ce.forEach(s),ze=i(d),T=a(d,"DIV",{class:!0});var Me=x(T);u(K.$$.fragment,Me),Ue=i(Me),te=a(Me,"P",{"data-svelte-h":!0}),m(te)!=="svelte-1xn85hs"&&(te.textContent=lt),Me.forEach(s),Ke=i(d),M=a(d,"DIV",{class:!0});var Ie=x(M);u(j.$$.fragment,Ie),je=i(Ie),se=a(Ie,"P",{"data-svelte-h":!0}),m(se)!=="svelte-hzru6p"&&(se.innerHTML=mt),Ie.forEach(s),Fe=i(d),I=a(d,"DIV",{class:!0});var we=x(I);u(F.$$.fragment,we),Ge=i(we),ne=a(we,"P",{"data-svelte-h":!0}),m(ne)!=="svelte-1k141rk"&&(ne.textContent=pt),we.forEach(s),Re=i(d),w=a(d,"DIV",{class:!0});var De=x(w);u(G.$$.fragment,De),We=i(De),ie=a(De,"P",{"data-svelte-h":!0}),m(ie)!=="svelte-qri72b"&&(ie.textContent=ut),De.forEach(s),Be=i(d),D=a(d,"DIV",{class:!0});var Le=x(D);u(R.$$.fragment,Le),Qe=i(Le),re=a(Le,"P",{"data-svelte-h":!0}),m(re)!=="svelte-1yxdts4"&&(re.textContent=ht),Le.forEach(s),Ye=i(d),L=a(d,"DIV",{class:!0});var Pe=x(L);u(W.$$.fragment,Pe),Je=i(Pe),oe=a(Pe,"P",{"data-svelte-h":!0}),m(oe)!=="svelte-hi84tp"&&(oe.textContent=ft),Pe.forEach(s),d.forEach(s),be=i(e),u(B.$$.fragment,e),Se=i(e),y=a(e,"DIV",{class:!0});var Oe=x(y);u(Q.$$.fragment,Oe),Xe=i(Oe),ae=a(Oe,"P",{"data-svelte-h":!0}),m(ae)!=="svelte-xucjnj"&&(ae.innerHTML=gt),Oe.forEach(s),$e=i(e),u(Y.$$.fragment,e),ye=i(e),le=a(e,"P",{}),x(le).forEach(s),this.h()},h(){v($,"name","hf:doc:metadata"),v($,"content",Mt),v(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(U,"class","tip"),v(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(y,"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,r){t(document.head,$),l(e,me,r),l(e,de,r),l(e,pe,r),h(P,e,r),l(e,ue,r),h(O,e,r),l(e,he,r),l(e,E,r),l(e,fe,r),l(e,H,r),l(e,ge,r),l(e,k,r),l(e,_e,r),l(e,A,r),l(e,ve,r),h(N,e,r),l(e,xe,r),l(e,c,r),h(q,c,null),t(c,Ee),t(c,J),t(c,He),t(c,X),t(c,ke),t(c,C),h(V,C,null),t(C,Ae),t(C,Z),t(c,Ne),t(c,b),h(z,b,null),t(b,qe),t(b,ee),t(b,Ve),t(b,U),t(c,ze),t(c,T),h(K,T,null),t(T,Ue),t(T,te),t(c,Ke),t(c,M),h(j,M,null),t(M,je),t(M,se),t(c,Fe),t(c,I),h(F,I,null),t(I,Ge),t(I,ne),t(c,Re),t(c,w),h(G,w,null),t(w,We),t(w,ie),t(c,Be),t(c,D),h(R,D,null),t(D,Qe),t(D,re),t(c,Ye),t(c,L),h(W,L,null),t(L,Je),t(L,oe),l(e,be,r),h(B,e,r),l(e,Se,r),l(e,y,r),h(Q,y,null),t(y,Xe),t(y,ae),l(e,$e,r),h(Y,e,r),l(e,ye,r),l(e,le,r),Ce=!0},p:vt,i(e){Ce||(f(P.$$.fragment,e),f(O.$$.fragment,e),f(N.$$.fragment,e),f(q.$$.fragment,e),f(V.$$.fragment,e),f(z.$$.fragment,e),f(K.$$.fragment,e),f(j.$$.fragment,e),f(F.$$.fragment,e),f(G.$$.fragment,e),f(R.$$.fragment,e),f(W.$$.fragment,e),f(B.$$.fragment,e),f(Q.$$.fragment,e),f(Y.$$.fragment,e),Ce=!0)},o(e){g(P.$$.fragment,e),g(O.$$.fragment,e),g(N.$$.fragment,e),g(q.$$.fragment,e),g(V.$$.fragment,e),g(z.$$.fragment,e),g(K.$$.fragment,e),g(j.$$.fragment,e),g(F.$$.fragment,e),g(G.$$.fragment,e),g(R.$$.fragment,e),g(W.$$.fragment,e),g(B.$$.fragment,e),g(Q.$$.fragment,e),g(Y.$$.fragment,e),Ce=!1},d(e){e&&(s(me),s(de),s(pe),s(ue),s(he),s(E),s(fe),s(H),s(ge),s(k),s(_e),s(A),s(ve),s(xe),s(c),s(be),s(Se),s(y),s($e),s(ye),s(le)),s($),_(P,e),_(O,e),_(N,e),_(q),_(V),_(z),_(K),_(j),_(F),_(G),_(R),_(W),_(B,e),_(Q),_(Y,e)}}}const Mt='{"title":"CMStochasticIterativeScheduler","local":"cmstochasticiterativescheduler","sections":[{"title":"CMStochasticIterativeScheduler","local":"diffusers.CMStochasticIterativeScheduler","sections":[],"depth":2},{"title":"CMStochasticIterativeSchedulerOutput","local":"diffusers.schedulers.scheduling_consistency_models.CMStochasticIterativeSchedulerOutput","sections":[],"depth":2}],"depth":1}';function It(et){return xt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Et extends bt{constructor($){super(),St(this,$,It,Tt,_t,{})}}export{Et as component};
