import{s as Qe,n as Xe,o as et}from"../chunks/scheduler.53228c21.js";import{S as tt,i as nt,e as i,s,c as l,h as st,a,d as r,b as o,f as _,g as p,j as v,k as b,l as t,m as g,n as m,t as u,o as f,p as h}from"../chunks/index.100fac89.js";import{C as ot}from"../chunks/CopyLLMTxtMenu.20a72e0e.js";import{D as $}from"../chunks/Docstring.49101787.js";import{H as Fe,E as rt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.4d82655d.js";function it(ze){let x,se,te,oe,I,re,P,ie,E,ae,N,Ae=`Multistep and onestep scheduler (Algorithm 3) introduced alongside latent consistency models in the paper <a href="https://huggingface.co/papers/2310.04378" rel="nofollow">Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference</a> by Simian Luo, Yiqin Tan, Longbo Huang, Jian Li, and Hang Zhao.
This scheduler should be able to generate good samples from <a href="/docs/diffusers/main/en/api/pipelines/latent_consistency_models#diffusers.LatentConsistencyModelPipeline">LatentConsistencyModelPipeline</a> in 1-8 steps.`,de,k,ce,n,q,$e,G,We=`<code>LCMScheduler</code> extends the denoising procedure introduced in denoising diffusion probabilistic models (DDPMs) with
non-Markovian guidance.`,ye,j,Re=`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>. <a href="/docs/diffusers/main/en/api/configuration#diffusers.ConfigMixin">~ConfigMixin</a> takes care of storing all config
attributes that are passed in the scheduler’s <code>__init__</code> function, such as <code>num_train_timesteps</code>. They can be
accessed via <code>scheduler.config.num_train_timesteps</code>. <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a> provides general loading and saving
functionality via the <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin.save_pretrained">SchedulerMixin.save_pretrained()</a> and <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin.from_pretrained">from_pretrained()</a> functions.`,Ce,y,V,Te,J,Ue=`Add noise to the original samples according to the noise magnitude at each timestep (this is the forward
diffusion process).`,Le,C,O,Me,Y,Ge="Compute the velocity prediction from the sample and noise according to the velocity formula.",Se,T,H,we,Z,je="Find the index of a given timestep in the timestep schedule.",De,L,F,Ie,B,Je="Compute the previous timestep in the diffusion chain.",Pe,M,z,Ee,K,Ye=`Ensures interchangeability with schedulers that need to scale the denoising model input depending on the
current timestep.`,Ne,S,A,ke,Q,Ze="Sets the begin index for the scheduler. This function should be run from pipeline before the inference.",qe,w,W,Ve,X,Be="Sets the discrete timesteps used for the diffusion chain (to be run before inference).",Oe,D,R,He,ee,Ke=`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).`,le,U,pe,ne,me;return I=new ot({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),P=new Fe({props:{title:"Latent Consistency Model Multistep Scheduler",local:"latent-consistency-model-multistep-scheduler",headingTag:"h1"}}),E=new Fe({props:{title:"Overview",local:"overview",headingTag:"h2"}}),k=new Fe({props:{title:"LCMScheduler",local:"diffusers.LCMScheduler",headingTag:"h2"}}),q=new $({props:{name:"class diffusers.LCMScheduler",anchor:"diffusers.LCMScheduler",parameters:[{name:"num_train_timesteps",val:": int = 1000"},{name:"beta_start",val:": float = 0.00085"},{name:"beta_end",val:": float = 0.012"},{name:"beta_schedule",val:": str = 'scaled_linear'"},{name:"trained_betas",val:": typing.Union[numpy.ndarray, typing.List[float], NoneType] = None"},{name:"original_inference_steps",val:": int = 50"},{name:"clip_sample",val:": bool = False"},{name:"clip_sample_range",val:": float = 1.0"},{name:"set_alpha_to_one",val:": bool = True"},{name:"steps_offset",val:": int = 0"},{name:"prediction_type",val:": str = 'epsilon'"},{name:"thresholding",val:": bool = False"},{name:"dynamic_thresholding_ratio",val:": float = 0.995"},{name:"sample_max_value",val:": float = 1.0"},{name:"timestep_spacing",val:": str = 'leading'"},{name:"timestep_scaling",val:": float = 10.0"},{name:"rescale_betas_zero_snr",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.num_train_timesteps",description:`<strong>num_train_timesteps</strong> (<code>int</code>, defaults to 1000) &#x2014;
The number of diffusion steps to train the model.`,name:"num_train_timesteps"},{anchor:"diffusers.LCMScheduler.beta_start",description:`<strong>beta_start</strong> (<code>float</code>, defaults to 0.0001) &#x2014;
The starting <code>beta</code> value of inference.`,name:"beta_start"},{anchor:"diffusers.LCMScheduler.beta_end",description:`<strong>beta_end</strong> (<code>float</code>, defaults to 0.02) &#x2014;
The final <code>beta</code> value.`,name:"beta_end"},{anchor:"diffusers.LCMScheduler.beta_schedule",description:`<strong>beta_schedule</strong> (<code>str</code>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The beta schedule, a mapping from a beta range to a sequence of betas for stepping the model. Choose from
<code>linear</code>, <code>scaled_linear</code>, or <code>squaredcos_cap_v2</code>.`,name:"beta_schedule"},{anchor:"diffusers.LCMScheduler.trained_betas",description:`<strong>trained_betas</strong> (<code>np.ndarray</code>, <em>optional</em>) &#x2014;
Pass an array of betas directly to the constructor to bypass <code>beta_start</code> and <code>beta_end</code>.`,name:"trained_betas"},{anchor:"diffusers.LCMScheduler.original_inference_steps",description:`<strong>original_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The default number of inference steps used to generate a linearly-spaced timestep schedule, from which we
will ultimately take <code>num_inference_steps</code> evenly spaced timesteps to form the final timestep schedule.`,name:"original_inference_steps"},{anchor:"diffusers.LCMScheduler.clip_sample",description:`<strong>clip_sample</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Clip the predicted sample for numerical stability.`,name:"clip_sample"},{anchor:"diffusers.LCMScheduler.clip_sample_range",description:`<strong>clip_sample_range</strong> (<code>float</code>, defaults to 1.0) &#x2014;
The maximum magnitude for sample clipping. Valid only when <code>clip_sample=True</code>.`,name:"clip_sample_range"},{anchor:"diffusers.LCMScheduler.set_alpha_to_one",description:`<strong>set_alpha_to_one</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Each diffusion step uses the alphas product value at that step and at the previous one. For the final step
there is no previous alpha. When this option is <code>True</code> the previous alpha product is fixed to <code>1</code>,
otherwise it uses the alpha value at step 0.`,name:"set_alpha_to_one"},{anchor:"diffusers.LCMScheduler.steps_offset",description:`<strong>steps_offset</strong> (<code>int</code>, defaults to 0) &#x2014;
An offset added to the inference steps, as required by some model families.`,name:"steps_offset"},{anchor:"diffusers.LCMScheduler.prediction_type",description:`<strong>prediction_type</strong> (<code>str</code>, defaults to <code>epsilon</code>, <em>optional</em>) &#x2014;
Prediction type of the scheduler function; can be <code>epsilon</code> (predicts the noise of the diffusion process),
<code>sample</code> (directly predicts the noisy sample<code>) or </code>v_prediction\` (see section 2.4 of <a href="https://huggingface.co/papers/2210.02303" rel="nofollow">Imagen
Video</a> paper).`,name:"prediction_type"},{anchor:"diffusers.LCMScheduler.thresholding",description:`<strong>thresholding</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the &#x201C;dynamic thresholding&#x201D; method. This is unsuitable for latent-space diffusion models such
as Stable Diffusion.`,name:"thresholding"},{anchor:"diffusers.LCMScheduler.dynamic_thresholding_ratio",description:`<strong>dynamic_thresholding_ratio</strong> (<code>float</code>, defaults to 0.995) &#x2014;
The ratio for the dynamic thresholding method. Valid only when <code>thresholding=True</code>.`,name:"dynamic_thresholding_ratio"},{anchor:"diffusers.LCMScheduler.sample_max_value",description:`<strong>sample_max_value</strong> (<code>float</code>, defaults to 1.0) &#x2014;
The threshold value for dynamic thresholding. Valid only when <code>thresholding=True</code>.`,name:"sample_max_value"},{anchor:"diffusers.LCMScheduler.timestep_spacing",description:`<strong>timestep_spacing</strong> (<code>str</code>, defaults to <code>&quot;leading&quot;</code>) &#x2014;
The way the timesteps should be scaled. Refer to Table 2 of the <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and
Sample Steps are Flawed</a> for more information.`,name:"timestep_spacing"},{anchor:"diffusers.LCMScheduler.timestep_scaling",description:`<strong>timestep_scaling</strong> (<code>float</code>, defaults to 10.0) &#x2014;
The factor the timesteps will be multiplied by when calculating the consistency model boundary conditions
<code>c_skip</code> and <code>c_out</code>. Increasing this will decrease the approximation error (although the approximation
error at the default of <code>10.0</code> is already pretty small).`,name:"timestep_scaling"},{anchor:"diffusers.LCMScheduler.rescale_betas_zero_snr",description:`<strong>rescale_betas_zero_snr</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to rescale the betas to have zero terminal SNR. This enables the model to generate very bright and
dark samples instead of limiting it to samples with medium brightness. Loosely related to
<a href="https://github.com/huggingface/diffusers/blob/74fd735eb073eb1d774b1ab4154a0876eb82f055/examples/dreambooth/train_dreambooth.py#L506" rel="nofollow"><code>--offset_noise</code></a>.`,name:"rescale_betas_zero_snr"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_lcm.py#L135"}}),V=new $({props:{name:"add_noise",anchor:"diffusers.LCMScheduler.add_noise",parameters:[{name:"original_samples",val:": Tensor"},{name:"noise",val:": Tensor"},{name:"timesteps",val:": IntTensor"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.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.LCMScheduler.add_noise.noise",description:`<strong>noise</strong> (<code>torch.Tensor</code>) &#x2014;
The noise to add to the samples.`,name:"noise"},{anchor:"diffusers.LCMScheduler.add_noise.timesteps",description:`<strong>timesteps</strong> (<code>torch.IntTensor</code>) &#x2014;
The timesteps indicating the noise level for each sample.`,name:"timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_lcm.py#L628",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The noisy samples.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),O=new $({props:{name:"get_velocity",anchor:"diffusers.LCMScheduler.get_velocity",parameters:[{name:"sample",val:": Tensor"},{name:"noise",val:": Tensor"},{name:"timesteps",val:": IntTensor"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.get_velocity.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014;
The input sample.`,name:"sample"},{anchor:"diffusers.LCMScheduler.get_velocity.noise",description:`<strong>noise</strong> (<code>torch.Tensor</code>) &#x2014;
The noise tensor.`,name:"noise"},{anchor:"diffusers.LCMScheduler.get_velocity.timesteps",description:`<strong>timesteps</strong> (<code>torch.IntTensor</code>) &#x2014;
The timesteps for velocity computation.`,name:"timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_lcm.py#L671",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The computed velocity.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),H=new $({props:{name:"index_for_timestep",anchor:"diffusers.LCMScheduler.index_for_timestep",parameters:[{name:"timestep",val:": typing.Union[float, torch.Tensor]"},{name:"schedule_timesteps",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.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.LCMScheduler.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_lcm.py#L255",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>
`}}),F=new $({props:{name:"previous_timestep",anchor:"diffusers.LCMScheduler.previous_timestep",parameters:[{name:"timestep",val:""}],parametersDescription:[{anchor:"diffusers.LCMScheduler.previous_timestep.timestep",description:`<strong>timestep</strong> (<code>int</code>) &#x2014;
The current timestep.`,name:"timestep"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_lcm.py#L709",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The previous timestep.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),z=new $({props:{name:"scale_model_input",anchor:"diffusers.LCMScheduler.scale_model_input",parameters:[{name:"sample",val:": Tensor"},{name:"timestep",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.scale_model_input.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014;
The input sample.`,name:"sample"},{anchor:"diffusers.LCMScheduler.scale_model_input.timestep",description:`<strong>timestep</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The current timestep in the diffusion chain.`,name:"timestep"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_lcm.py#L323",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>
`}}),A=new $({props:{name:"set_begin_index",anchor:"diffusers.LCMScheduler.set_begin_index",parameters:[{name:"begin_index",val:": int = 0"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.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_lcm.py#L313"}}),W=new $({props:{name:"set_timesteps",anchor:"diffusers.LCMScheduler.set_timesteps",parameters:[{name:"num_inference_steps",val:": typing.Optional[int] = None"},{name:"device",val:": typing.Union[str, torch.device] = None"},{name:"original_inference_steps",val:": typing.Optional[int] = None"},{name:"timesteps",val:": typing.Optional[typing.List[int]] = None"},{name:"strength",val:": int = 1.0"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.set_timesteps.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of diffusion steps used when generating samples with a pre-trained model. If used,
<code>timesteps</code> must be <code>None</code>.`,name:"num_inference_steps"},{anchor:"diffusers.LCMScheduler.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.LCMScheduler.set_timesteps.original_inference_steps",description:`<strong>original_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The original number of inference steps, which will be used to generate a linearly-spaced timestep
schedule (which is different from the standard <code>diffusers</code> implementation). We will then take
<code>num_inference_steps</code> timesteps from this schedule, evenly spaced in terms of indices, and use that as
our final timestep schedule. If not set, this will default to the <code>original_inference_steps</code> attribute.`,name:"original_inference_steps"},{anchor:"diffusers.LCMScheduler.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 on the training/distillation timestep
schedule 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_lcm.py#L383"}}),R=new $({props:{name:"step",anchor:"diffusers.LCMScheduler.step",parameters:[{name:"model_output",val:": Tensor"},{name:"timestep",val:": int"},{name:"sample",val:": Tensor"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.LCMScheduler.step.model_output",description:`<strong>model_output</strong> (<code>torch.Tensor</code>) &#x2014;
The direct output from learned diffusion model.`,name:"model_output"},{anchor:"diffusers.LCMScheduler.step.timestep",description:`<strong>timestep</strong> (<code>float</code>) &#x2014;
The current discrete timestep in the diffusion chain.`,name:"timestep"},{anchor:"diffusers.LCMScheduler.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.LCMScheduler.step.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A random number generator.`,name:"generator"},{anchor:"diffusers.LCMScheduler.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 <code>LCMSchedulerOutput</code> or <code>tuple</code>.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_lcm.py#L531",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If return_dict is <code>True</code>, <code>LCMSchedulerOutput</code> 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><code>~schedulers.scheduling_utils.LCMSchedulerOutput</code> or <code>tuple</code></p>
`}}),U=new rt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/schedulers/lcm.md"}}),{c(){x=i("meta"),se=s(),te=i("p"),oe=s(),l(I.$$.fragment),re=s(),l(P.$$.fragment),ie=s(),l(E.$$.fragment),ae=s(),N=i("p"),N.innerHTML=Ae,de=s(),l(k.$$.fragment),ce=s(),n=i("div"),l(q.$$.fragment),$e=s(),G=i("p"),G.innerHTML=We,ye=s(),j=i("p"),j.innerHTML=Re,Ce=s(),y=i("div"),l(V.$$.fragment),Te=s(),J=i("p"),J.textContent=Ue,Le=s(),C=i("div"),l(O.$$.fragment),Me=s(),Y=i("p"),Y.textContent=Ge,Se=s(),T=i("div"),l(H.$$.fragment),we=s(),Z=i("p"),Z.textContent=je,De=s(),L=i("div"),l(F.$$.fragment),Ie=s(),B=i("p"),B.textContent=Je,Pe=s(),M=i("div"),l(z.$$.fragment),Ee=s(),K=i("p"),K.textContent=Ye,Ne=s(),S=i("div"),l(A.$$.fragment),ke=s(),Q=i("p"),Q.textContent=Ze,qe=s(),w=i("div"),l(W.$$.fragment),Ve=s(),X=i("p"),X.textContent=Be,Oe=s(),D=i("div"),l(R.$$.fragment),He=s(),ee=i("p"),ee.textContent=Ke,le=s(),l(U.$$.fragment),pe=s(),ne=i("p"),this.h()},l(e){const c=st("svelte-u9bgzb",document.head);x=a(c,"META",{name:!0,content:!0}),c.forEach(r),se=o(e),te=a(e,"P",{}),_(te).forEach(r),oe=o(e),p(I.$$.fragment,e),re=o(e),p(P.$$.fragment,e),ie=o(e),p(E.$$.fragment,e),ae=o(e),N=a(e,"P",{"data-svelte-h":!0}),v(N)!=="svelte-1c2gm0f"&&(N.innerHTML=Ae),de=o(e),p(k.$$.fragment,e),ce=o(e),n=a(e,"DIV",{class:!0});var d=_(n);p(q.$$.fragment,d),$e=o(d),G=a(d,"P",{"data-svelte-h":!0}),v(G)!=="svelte-1cn3gww"&&(G.innerHTML=We),ye=o(d),j=a(d,"P",{"data-svelte-h":!0}),v(j)!=="svelte-1wfw14k"&&(j.innerHTML=Re),Ce=o(d),y=a(d,"DIV",{class:!0});var ue=_(y);p(V.$$.fragment,ue),Te=o(ue),J=a(ue,"P",{"data-svelte-h":!0}),v(J)!=="svelte-hqmiev"&&(J.textContent=Ue),ue.forEach(r),Le=o(d),C=a(d,"DIV",{class:!0});var fe=_(C);p(O.$$.fragment,fe),Me=o(fe),Y=a(fe,"P",{"data-svelte-h":!0}),v(Y)!=="svelte-1aqw5k3"&&(Y.textContent=Ge),fe.forEach(r),Se=o(d),T=a(d,"DIV",{class:!0});var he=_(T);p(H.$$.fragment,he),we=o(he),Z=a(he,"P",{"data-svelte-h":!0}),v(Z)!=="svelte-1xn85hs"&&(Z.textContent=je),he.forEach(r),De=o(d),L=a(d,"DIV",{class:!0});var ge=_(L);p(F.$$.fragment,ge),Ie=o(ge),B=a(ge,"P",{"data-svelte-h":!0}),v(B)!=="svelte-jss25y"&&(B.textContent=Je),ge.forEach(r),Pe=o(d),M=a(d,"DIV",{class:!0});var _e=_(M);p(z.$$.fragment,_e),Ee=o(_e),K=a(_e,"P",{"data-svelte-h":!0}),v(K)!=="svelte-1rkfgpx"&&(K.textContent=Ye),_e.forEach(r),Ne=o(d),S=a(d,"DIV",{class:!0});var ve=_(S);p(A.$$.fragment,ve),ke=o(ve),Q=a(ve,"P",{"data-svelte-h":!0}),v(Q)!=="svelte-1k141rk"&&(Q.textContent=Ze),ve.forEach(r),qe=o(d),w=a(d,"DIV",{class:!0});var be=_(w);p(W.$$.fragment,be),Ve=o(be),X=a(be,"P",{"data-svelte-h":!0}),v(X)!=="svelte-1vzm9q"&&(X.textContent=Be),be.forEach(r),Oe=o(d),D=a(d,"DIV",{class:!0});var xe=_(D);p(R.$$.fragment,xe),He=o(xe),ee=a(xe,"P",{"data-svelte-h":!0}),v(ee)!=="svelte-hi84tp"&&(ee.textContent=Ke),xe.forEach(r),d.forEach(r),le=o(e),p(U.$$.fragment,e),pe=o(e),ne=a(e,"P",{}),_(ne).forEach(r),this.h()},h(){b(x,"name","hf:doc:metadata"),b(x,"content",at),b(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(n,"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,c){t(document.head,x),g(e,se,c),g(e,te,c),g(e,oe,c),m(I,e,c),g(e,re,c),m(P,e,c),g(e,ie,c),m(E,e,c),g(e,ae,c),g(e,N,c),g(e,de,c),m(k,e,c),g(e,ce,c),g(e,n,c),m(q,n,null),t(n,$e),t(n,G),t(n,ye),t(n,j),t(n,Ce),t(n,y),m(V,y,null),t(y,Te),t(y,J),t(n,Le),t(n,C),m(O,C,null),t(C,Me),t(C,Y),t(n,Se),t(n,T),m(H,T,null),t(T,we),t(T,Z),t(n,De),t(n,L),m(F,L,null),t(L,Ie),t(L,B),t(n,Pe),t(n,M),m(z,M,null),t(M,Ee),t(M,K),t(n,Ne),t(n,S),m(A,S,null),t(S,ke),t(S,Q),t(n,qe),t(n,w),m(W,w,null),t(w,Ve),t(w,X),t(n,Oe),t(n,D),m(R,D,null),t(D,He),t(D,ee),g(e,le,c),m(U,e,c),g(e,pe,c),g(e,ne,c),me=!0},p:Xe,i(e){me||(u(I.$$.fragment,e),u(P.$$.fragment,e),u(E.$$.fragment,e),u(k.$$.fragment,e),u(q.$$.fragment,e),u(V.$$.fragment,e),u(O.$$.fragment,e),u(H.$$.fragment,e),u(F.$$.fragment,e),u(z.$$.fragment,e),u(A.$$.fragment,e),u(W.$$.fragment,e),u(R.$$.fragment,e),u(U.$$.fragment,e),me=!0)},o(e){f(I.$$.fragment,e),f(P.$$.fragment,e),f(E.$$.fragment,e),f(k.$$.fragment,e),f(q.$$.fragment,e),f(V.$$.fragment,e),f(O.$$.fragment,e),f(H.$$.fragment,e),f(F.$$.fragment,e),f(z.$$.fragment,e),f(A.$$.fragment,e),f(W.$$.fragment,e),f(R.$$.fragment,e),f(U.$$.fragment,e),me=!1},d(e){e&&(r(se),r(te),r(oe),r(re),r(ie),r(ae),r(N),r(de),r(ce),r(n),r(le),r(pe),r(ne)),r(x),h(I,e),h(P,e),h(E,e),h(k,e),h(q),h(V),h(O),h(H),h(F),h(z),h(A),h(W),h(R),h(U,e)}}}const at='{"title":"Latent Consistency Model Multistep Scheduler","local":"latent-consistency-model-multistep-scheduler","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"LCMScheduler","local":"diffusers.LCMScheduler","sections":[],"depth":2}],"depth":1}';function dt(ze){return et(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ft extends tt{constructor(x){super(),nt(this,x,dt,it,Qe,{})}}export{ft as component};
