import{s as pt,o as ut,n as mt}from"../chunks/scheduler.8c3d61f6.js";import{S as ft,i as ht,g as i,s as o,r as m,A as gt,h as a,f as s,c as r,j as A,u as f,x as d,k as D,y as l,a as n,v as h,d as g,t as _,w as b}from"../chunks/index.589a98e8.js";import{T as _t}from"../chunks/Tip.42aa8582.js";import{D as ae}from"../chunks/Docstring.27406313.js";import{C as le}from"../chunks/CodeBlock.36627b28.js";import{H as Ye,E as bt}from"../chunks/EditOnGithub.e5a8d9cb.js";function vt(de){let c,C="🧪 This is an experimental feature!";return{c(){c=i("p"),c.textContent=C},l(v){c=a(v,"P",{"data-svelte-h":!0}),d(c)!=="svelte-15q3ih4"&&(c.textContent=C)},m(v,K){n(v,c,K)},p:mt,d(v){v&&s(c)}}}function Dt(de){let c,C,v,K,Z,ce,U,Oe='<a href="https://huggingface.co/papers/2010.02502" rel="nofollow">Denoising Diffusion Implicit Models</a> (DDIM) by Jiaming Song, Chenlin Meng and Stefano Ermon.',pe,J,Qe="The abstract from the paper is:",ue,L,Xe=`<em>Denoising diffusion probabilistic models (DDPMs) have achieved high quality image generation without adversarial training, yet they require simulating a Markov chain for many steps to produce a sample.
To accelerate sampling, we present denoising diffusion implicit models (DDIMs), a more efficient class of iterative implicit probabilistic models
with the same training procedure as DDPMs. In DDPMs, the generative process is defined as the reverse of a Markovian diffusion process.
We construct a class of non-Markovian diffusion processes that lead to the same training objective, but whose reverse process can be much faster to sample from.
We empirically demonstrate that DDIMs can produce high quality samples 10× to 50× faster in terms of wall-clock time compared to DDPMs, allow us to trade off computation for sample quality, and can perform semantically meaningful image interpolation directly in the latent space.</em>`,me,j,Fe='The original codebase of this paper can be found at <a href="https://github.com/ermongroup/ddim" rel="nofollow">ermongroup/ddim</a>, and you can contact the author on <a href="https://tsong.me/" rel="nofollow">tsong.me</a>.',fe,H,he,V,Ae='The paper <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are Flawed</a> claims that a mismatch between the training and inference settings leads to suboptimal inference generation results for Stable Diffusion. To fix this, the authors propose:',ge,y,_e,N,Ke="<li>rescale the noise schedule to enforce zero terminal signal-to-noise ratio (SNR)</li>",be,G,ve,$,et='<li>train a model with <code>v_prediction</code> (add the following argument to the <a href="https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image.py" rel="nofollow">train_text_to_image.py</a> or <a href="https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_lora.py" rel="nofollow">train_text_to_image_lora.py</a> scripts)</li>',De,W,Me,x,tt="<li>change the sampler to always start from the last timestep</li>",ye,k,$e,T,st="<li>rescale classifier-free guidance to prevent over-exposure</li>",xe,R,Te,q,nt="For example:",we,B,Ie,P,Se,p,z,Ge,ee,ot=`<code>DDIMScheduler</code> extends the denoising procedure introduced in denoising diffusion probabilistic models (DDPMs) with
non-Markovian guidance.`,We,te,rt=`This model inherits from <a href="/docs/diffusers/pr_7685/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a> and <a href="/docs/diffusers/pr_7685/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,w,E,Re,se,it=`Ensures interchangeability with schedulers that need to scale the denoising model input depending on the
current timestep.`,qe,I,Y,Be,ne,at="Sets the discrete timesteps used for the diffusion chain (to be run before inference).",Pe,S,O,ze,oe,lt=`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).`,Ce,Q,dt="## DDIMSchedulerOutput[[diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput]]",Ze,M,X,Ee,re,ct="Output class for the scheduler’s <code>step</code> function output.",Ue,F,Je,ie,Le;return Z=new Ye({props:{title:"DDIMScheduler",local:"ddimscheduler",headingTag:"h1"}}),H=new Ye({props:{title:"Tips",local:"tips",headingTag:"h2"}}),y=new _t({props:{warning:!0,$$slots:{default:[vt]},$$scope:{ctx:de}}}),G=new le({props:{code:"cGlwZS5zY2hlZHVsZXIlMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGUuc2NoZWR1bGVyLmNvbmZpZyUyQyUyMHJlc2NhbGVfYmV0YXNfemVyb19zbnIlM0RUcnVlKQ==",highlighted:'pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config, rescale_betas_zero_snr=<span class="hljs-literal">True</span>)',wrap:!1}}),W=new le({props:{code:"LS1wcmVkaWN0aW9uX3R5cGUlM0QlMjJ2X3ByZWRpY3Rpb24lMjI=",highlighted:'--prediction_type=<span class="hljs-string">&quot;v_prediction&quot;</span>',wrap:!1}}),k=new le({props:{code:"cGlwZS5zY2hlZHVsZXIlMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGUuc2NoZWR1bGVyLmNvbmZpZyUyQyUyMHRpbWVzdGVwX3NwYWNpbmclM0QlMjJ0cmFpbGluZyUyMik=",highlighted:'pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config, timestep_spacing=<span class="hljs-string">&quot;trailing&quot;</span>)',wrap:!1}}),R=new le({props:{code:"aW1hZ2UlMjAlM0QlMjBwaXBlKHByb21wdCUyQyUyMGd1aWRhbmNlX3Jlc2NhbGUlM0QwLjcpLmltYWdlcyU1QjAlNUQ=",highlighted:'image = pipe(prompt, guidance_rescale=<span class="hljs-number">0.7</span>).images[<span class="hljs-number">0</span>]',wrap:!1}}),B=new le({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTJDJTIwRERJTVNjaGVkdWxlciUwQWltcG9ydCUyMHRvcmNoJTBBJTBBcGlwZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJwdHgwJTJGcHNldWRvLWpvdXJuZXktdjIlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZS5zY2hlZHVsZXIlMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fY29uZmlnKCUwQSUyMCUyMCUyMCUyMHBpcGUuc2NoZWR1bGVyLmNvbmZpZyUyQyUyMHJlc2NhbGVfYmV0YXNfemVyb19zbnIlM0RUcnVlJTJDJTIwdGltZXN0ZXBfc3BhY2luZyUzRCUyMnRyYWlsaW5nJTIyJTBBKSUwQXBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJBJTIwbGlvbiUyMGluJTIwZ2FsYXhpZXMlMkMlMjBzcGlyYWxzJTJDJTIwbmVidWxhZSUyQyUyMHN0YXJzJTJDJTIwc21va2UlMkMlMjBpcmlkZXNjZW50JTJDJTIwaW50cmljYXRlJTIwZGV0YWlsJTJDJTIwb2N0YW5lJTIwcmVuZGVyJTJDJTIwOGslMjIlMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0JTJDJTIwZ3VpZGFuY2VfcmVzY2FsZSUzRDAuNykuaW1hZ2VzJTVCMCU1RCUwQWltYWdl",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline, DDIMScheduler
<span class="hljs-keyword">import</span> torch

pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;ptx0/pseudo-journey-v2&quot;</span>, torch_dtype=torch.float16)
pipe.scheduler = DDIMScheduler.from_config(
    pipe.scheduler.config, rescale_betas_zero_snr=<span class="hljs-literal">True</span>, timestep_spacing=<span class="hljs-string">&quot;trailing&quot;</span>
)
pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

prompt = <span class="hljs-string">&quot;A lion in galaxies, spirals, nebulae, stars, smoke, iridescent, intricate detail, octane render, 8k&quot;</span>
image = pipe(prompt, guidance_rescale=<span class="hljs-number">0.7</span>).images[<span class="hljs-number">0</span>]
image`,wrap:!1}}),P=new Ye({props:{title:"DDIMScheduler",local:"diffusers.DDIMScheduler",headingTag:"h2"}}),z=new ae({props:{name:"class diffusers.DDIMScheduler",anchor:"diffusers.DDIMScheduler",parameters:[{name:"num_train_timesteps",val:": int = 1000"},{name:"beta_start",val:": float = 0.0001"},{name:"beta_end",val:": float = 0.02"},{name:"beta_schedule",val:": str = 'linear'"},{name:"trained_betas",val:": Union = None"},{name:"clip_sample",val:": bool = True"},{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:"clip_sample_range",val:": float = 1.0"},{name:"sample_max_value",val:": float = 1.0"},{name:"timestep_spacing",val:": str = 'leading'"},{name:"rescale_betas_zero_snr",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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://imagen.research.google/video/paper.pdf" rel="nofollow">Imagen
Video</a> paper).`,name:"prediction_type"},{anchor:"diffusers.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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.DDIMScheduler.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/vr_7685/src/diffusers/schedulers/scheduling_ddim.py#L131"}}),E=new ae({props:{name:"scale_model_input",anchor:"diffusers.DDIMScheduler.scale_model_input",parameters:[{name:"sample",val:": Tensor"},{name:"timestep",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.DDIMScheduler.scale_model_input.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014;
The input sample.`,name:"sample"},{anchor:"diffusers.DDIMScheduler.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/vr_7685/src/diffusers/schedulers/scheduling_ddim.py#L236",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>
`}}),Y=new ae({props:{name:"set_timesteps",anchor:"diffusers.DDIMScheduler.set_timesteps",parameters:[{name:"num_inference_steps",val:": int"},{name:"device",val:": Union = None"}],parametersDescription:[{anchor:"diffusers.DDIMScheduler.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"}],source:"https://github.com/huggingface/diffusers/blob/vr_7685/src/diffusers/schedulers/scheduling_ddim.py#L297"}}),O=new ae({props:{name:"step",anchor:"diffusers.DDIMScheduler.step",parameters:[{name:"model_output",val:": Tensor"},{name:"timestep",val:": int"},{name:"sample",val:": Tensor"},{name:"eta",val:": float = 0.0"},{name:"use_clipped_model_output",val:": bool = False"},{name:"generator",val:" = None"},{name:"variance_noise",val:": Optional = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.DDIMScheduler.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.DDIMScheduler.step.timestep",description:`<strong>timestep</strong> (<code>float</code>) &#x2014;
The current discrete timestep in the diffusion chain.`,name:"timestep"},{anchor:"diffusers.DDIMScheduler.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.DDIMScheduler.step.eta",description:`<strong>eta</strong> (<code>float</code>) &#x2014;
The weight of noise for added noise in diffusion step.`,name:"eta"},{anchor:"diffusers.DDIMScheduler.step.use_clipped_model_output",description:`<strong>use_clipped_model_output</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, computes &#x201C;corrected&#x201D; <code>model_output</code> from the clipped predicted original sample. Necessary
because predicted original sample is clipped to [-1, 1] when <code>self.config.clip_sample</code> is <code>True</code>. If no
clipping has happened, &#x201C;corrected&#x201D; <code>model_output</code> would coincide with the one provided as input and
<code>use_clipped_model_output</code> has no effect.`,name:"use_clipped_model_output"},{anchor:"diffusers.DDIMScheduler.step.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A random number generator.`,name:"generator"},{anchor:"diffusers.DDIMScheduler.step.variance_noise",description:`<strong>variance_noise</strong> (<code>torch.Tensor</code>) &#x2014;
Alternative to generating noise with <code>generator</code> by directly providing the noise for the variance
itself. Useful for methods such as <code>CycleDiffusion</code>.`,name:"variance_noise"},{anchor:"diffusers.DDIMScheduler.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/pr_7685/en/api/schedulers/ddim#diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput">DDIMSchedulerOutput</a> or <code>tuple</code>.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_7685/src/diffusers/schedulers/scheduling_ddim.py#L342",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If return_dict is <code>True</code>, <a
  href="/docs/diffusers/pr_7685/en/api/schedulers/ddim#diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput"
>DDIMSchedulerOutput</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><code>~schedulers.scheduling_utils.DDIMSchedulerOutput</code> or <code>tuple</code></p>
`}}),X=new ae({props:{name:"class diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput",anchor:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput",parameters:[{name:"prev_sample",val:": Tensor"},{name:"pred_original_sample",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput.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"},{anchor:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput.pred_original_sample",description:`<strong>pred_original_sample</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_channels, height, width)</code> for images) &#x2014;
The predicted denoised sample <code>(x_{0})</code> based on the model output from the current timestep.
<code>pred_original_sample</code> can be used to preview progress or for guidance.`,name:"pred_original_sample"}],source:"https://github.com/huggingface/diffusers/blob/vr_7685/src/diffusers/schedulers/scheduling_ddim.py#L31"}}),F=new bt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/schedulers/ddim.md"}}),{c(){c=i("meta"),C=o(),v=i("p"),K=o(),m(Z.$$.fragment),ce=o(),U=i("p"),U.innerHTML=Oe,pe=o(),J=i("p"),J.textContent=Qe,ue=o(),L=i("p"),L.innerHTML=Xe,me=o(),j=i("p"),j.innerHTML=Fe,fe=o(),m(H.$$.fragment),he=o(),V=i("p"),V.innerHTML=Ae,ge=o(),m(y.$$.fragment),_e=o(),N=i("ol"),N.innerHTML=Ke,be=o(),m(G.$$.fragment),ve=o(),$=i("ol"),$.innerHTML=et,De=o(),m(W.$$.fragment),Me=o(),x=i("ol"),x.innerHTML=tt,ye=o(),m(k.$$.fragment),$e=o(),T=i("ol"),T.innerHTML=st,xe=o(),m(R.$$.fragment),Te=o(),q=i("p"),q.textContent=nt,we=o(),m(B.$$.fragment),Ie=o(),m(P.$$.fragment),Se=o(),p=i("div"),m(z.$$.fragment),Ge=o(),ee=i("p"),ee.innerHTML=ot,We=o(),te=i("p"),te.innerHTML=rt,ke=o(),w=i("div"),m(E.$$.fragment),Re=o(),se=i("p"),se.textContent=it,qe=o(),I=i("div"),m(Y.$$.fragment),Be=o(),ne=i("p"),ne.textContent=at,Pe=o(),S=i("div"),m(O.$$.fragment),ze=o(),oe=i("p"),oe.textContent=lt,Ce=o(),Q=i("p"),Q.textContent=dt,Ze=o(),M=i("div"),m(X.$$.fragment),Ee=o(),re=i("p"),re.innerHTML=ct,Ue=o(),m(F.$$.fragment),Je=o(),ie=i("p"),this.h()},l(e){const t=gt("svelte-u9bgzb",document.head);c=a(t,"META",{name:!0,content:!0}),t.forEach(s),C=r(e),v=a(e,"P",{}),A(v).forEach(s),K=r(e),f(Z.$$.fragment,e),ce=r(e),U=a(e,"P",{"data-svelte-h":!0}),d(U)!=="svelte-1qeb1a3"&&(U.innerHTML=Oe),pe=r(e),J=a(e,"P",{"data-svelte-h":!0}),d(J)!=="svelte-1cwsb16"&&(J.textContent=Qe),ue=r(e),L=a(e,"P",{"data-svelte-h":!0}),d(L)!=="svelte-1h59s10"&&(L.innerHTML=Xe),me=r(e),j=a(e,"P",{"data-svelte-h":!0}),d(j)!=="svelte-1stib0u"&&(j.innerHTML=Fe),fe=r(e),f(H.$$.fragment,e),he=r(e),V=a(e,"P",{"data-svelte-h":!0}),d(V)!=="svelte-nsfv69"&&(V.innerHTML=Ae),ge=r(e),f(y.$$.fragment,e),_e=r(e),N=a(e,"OL",{"data-svelte-h":!0}),d(N)!=="svelte-hhk4t"&&(N.innerHTML=Ke),be=r(e),f(G.$$.fragment,e),ve=r(e),$=a(e,"OL",{start:!0,"data-svelte-h":!0}),d($)!=="svelte-18uxl2t"&&($.innerHTML=et),De=r(e),f(W.$$.fragment,e),Me=r(e),x=a(e,"OL",{start:!0,"data-svelte-h":!0}),d(x)!=="svelte-17ct3yw"&&(x.innerHTML=tt),ye=r(e),f(k.$$.fragment,e),$e=r(e),T=a(e,"OL",{start:!0,"data-svelte-h":!0}),d(T)!=="svelte-1a6ampg"&&(T.innerHTML=st),xe=r(e),f(R.$$.fragment,e),Te=r(e),q=a(e,"P",{"data-svelte-h":!0}),d(q)!=="svelte-1gkqha7"&&(q.textContent=nt),we=r(e),f(B.$$.fragment,e),Ie=r(e),f(P.$$.fragment,e),Se=r(e),p=a(e,"DIV",{class:!0});var u=A(p);f(z.$$.fragment,u),Ge=r(u),ee=a(u,"P",{"data-svelte-h":!0}),d(ee)!=="svelte-1wae91k"&&(ee.innerHTML=ot),We=r(u),te=a(u,"P",{"data-svelte-h":!0}),d(te)!=="svelte-dvq0x1"&&(te.innerHTML=rt),ke=r(u),w=a(u,"DIV",{class:!0});var je=A(w);f(E.$$.fragment,je),Re=r(je),se=a(je,"P",{"data-svelte-h":!0}),d(se)!=="svelte-1rkfgpx"&&(se.textContent=it),je.forEach(s),qe=r(u),I=a(u,"DIV",{class:!0});var He=A(I);f(Y.$$.fragment,He),Be=r(He),ne=a(He,"P",{"data-svelte-h":!0}),d(ne)!=="svelte-1vzm9q"&&(ne.textContent=at),He.forEach(s),Pe=r(u),S=a(u,"DIV",{class:!0});var Ve=A(S);f(O.$$.fragment,Ve),ze=r(Ve),oe=a(Ve,"P",{"data-svelte-h":!0}),d(oe)!=="svelte-hi84tp"&&(oe.textContent=lt),Ve.forEach(s),u.forEach(s),Ce=r(e),Q=a(e,"P",{"data-svelte-h":!0}),d(Q)!=="svelte-1qpuir4"&&(Q.textContent=dt),Ze=r(e),M=a(e,"DIV",{class:!0});var Ne=A(M);f(X.$$.fragment,Ne),Ee=r(Ne),re=a(Ne,"P",{"data-svelte-h":!0}),d(re)!=="svelte-id9kic"&&(re.innerHTML=ct),Ne.forEach(s),Ue=r(e),f(F.$$.fragment,e),Je=r(e),ie=a(e,"P",{}),A(ie).forEach(s),this.h()},h(){D(c,"name","hf:doc:metadata"),D(c,"content",Mt),D($,"start","2"),D(x,"start","3"),D(T,"start","4"),D(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(M,"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){l(document.head,c),n(e,C,t),n(e,v,t),n(e,K,t),h(Z,e,t),n(e,ce,t),n(e,U,t),n(e,pe,t),n(e,J,t),n(e,ue,t),n(e,L,t),n(e,me,t),n(e,j,t),n(e,fe,t),h(H,e,t),n(e,he,t),n(e,V,t),n(e,ge,t),h(y,e,t),n(e,_e,t),n(e,N,t),n(e,be,t),h(G,e,t),n(e,ve,t),n(e,$,t),n(e,De,t),h(W,e,t),n(e,Me,t),n(e,x,t),n(e,ye,t),h(k,e,t),n(e,$e,t),n(e,T,t),n(e,xe,t),h(R,e,t),n(e,Te,t),n(e,q,t),n(e,we,t),h(B,e,t),n(e,Ie,t),h(P,e,t),n(e,Se,t),n(e,p,t),h(z,p,null),l(p,Ge),l(p,ee),l(p,We),l(p,te),l(p,ke),l(p,w),h(E,w,null),l(w,Re),l(w,se),l(p,qe),l(p,I),h(Y,I,null),l(I,Be),l(I,ne),l(p,Pe),l(p,S),h(O,S,null),l(S,ze),l(S,oe),n(e,Ce,t),n(e,Q,t),n(e,Ze,t),n(e,M,t),h(X,M,null),l(M,Ee),l(M,re),n(e,Ue,t),h(F,e,t),n(e,Je,t),n(e,ie,t),Le=!0},p(e,[t]){const u={};t&2&&(u.$$scope={dirty:t,ctx:e}),y.$set(u)},i(e){Le||(g(Z.$$.fragment,e),g(H.$$.fragment,e),g(y.$$.fragment,e),g(G.$$.fragment,e),g(W.$$.fragment,e),g(k.$$.fragment,e),g(R.$$.fragment,e),g(B.$$.fragment,e),g(P.$$.fragment,e),g(z.$$.fragment,e),g(E.$$.fragment,e),g(Y.$$.fragment,e),g(O.$$.fragment,e),g(X.$$.fragment,e),g(F.$$.fragment,e),Le=!0)},o(e){_(Z.$$.fragment,e),_(H.$$.fragment,e),_(y.$$.fragment,e),_(G.$$.fragment,e),_(W.$$.fragment,e),_(k.$$.fragment,e),_(R.$$.fragment,e),_(B.$$.fragment,e),_(P.$$.fragment,e),_(z.$$.fragment,e),_(E.$$.fragment,e),_(Y.$$.fragment,e),_(O.$$.fragment,e),_(X.$$.fragment,e),_(F.$$.fragment,e),Le=!1},d(e){e&&(s(C),s(v),s(K),s(ce),s(U),s(pe),s(J),s(ue),s(L),s(me),s(j),s(fe),s(he),s(V),s(ge),s(_e),s(N),s(be),s(ve),s($),s(De),s(Me),s(x),s(ye),s($e),s(T),s(xe),s(Te),s(q),s(we),s(Ie),s(Se),s(p),s(Ce),s(Q),s(Ze),s(M),s(Ue),s(Je),s(ie)),s(c),b(Z,e),b(H,e),b(y,e),b(G,e),b(W,e),b(k,e),b(R,e),b(B,e),b(P,e),b(z),b(E),b(Y),b(O),b(X),b(F,e)}}}const Mt='{"title":"DDIMScheduler","local":"ddimscheduler","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2},{"title":"DDIMScheduler","local":"diffusers.DDIMScheduler","sections":[],"depth":2}],"depth":1}';function yt(de){return ut(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ct extends ft{constructor(c){super(),ht(this,c,yt,Dt,pt,{})}}export{Ct as component};
