import{s as lt,o as dt,n as ct}from"../chunks/scheduler.182ea377.js";import{S as pt,i as ut,g as a,s as o,r as m,A as mt,h as i,f as s,c as r,j as X,u as f,x as p,k as M,y as l,a as n,v as h,d as g,t as _,w as b}from"../chunks/index.abf12888.js";import{T as ft}from"../chunks/Tip.230e2334.js";import{D as ae}from"../chunks/Docstring.93f6f462.js";import{C as ie}from"../chunks/CodeBlock.57fe6e13.js";import{H as Ve}from"../chunks/Heading.16916d63.js";function ht(le){let d,C="🧪 This is an experimental feature!";return{c(){d=a("p"),d.textContent=C},l(D){d=i(D,"P",{"data-svelte-h":!0}),p(d)!=="svelte-15q3ih4"&&(d.textContent=C)},m(D,A){n(D,d,A)},p:ct,d(D){D&&s(d)}}}function gt(le){let d,C,D,A,Z,de,U,Ye='<a href="https://huggingface.co/papers/2010.02502" rel="nofollow">Denoising Diffusion Implicit Models</a> (DDIM) by Jiaming Song, Chenlin Meng and Stefano Ermon.',ce,J,qe="The abstract from the paper is:",pe,L,Ee=`<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>`,ue,j,Oe='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>.',me,H,fe,V,Qe='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:',he,y,ge,N,Xe="<li>rescale the noise schedule to enforce zero terminal signal-to-noise ratio (SNR)</li>",_e,G,be,$,Ae='<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,T,Ke="<li>change the sampler to always start from the last timestep</li>",ve,k,ye,x,et="<li>rescale classifier-free guidance to prevent over-exposure</li>",$e,R,Te,F,tt="For example:",xe,B,we,P,Ie,c,z,Ne,K,st=`<code>DDIMScheduler</code> extends the denoising procedure introduced in denoising diffusion probabilistic models (DDPMs) with
non-Markovian guidance.`,Ge,ee,nt=`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.`,We,w,Y,ke,te,ot=`Ensures interchangeability with schedulers that need to scale the denoising model input depending on the
current timestep.`,Re,I,q,Fe,se,rt="Sets the discrete timesteps used for the diffusion chain (to be run before inference).",Be,S,E,Pe,ne,at=`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).`,Se,O,Ce,v,Q,ze,oe,it="Output class for the scheduler’s <code>step</code> function output.",Ze,re,Ue;return Z=new Ve({props:{title:"DDIMScheduler",local:"ddimscheduler",headingTag:"h1"}}),H=new Ve({props:{title:"Tips",local:"tips",headingTag:"h2"}}),y=new ft({props:{warning:!0,$$slots:{default:[ht]},$$scope:{ctx:le}}}),G=new ie({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 ie({props:{code:"LS1wcmVkaWN0aW9uX3R5cGUlM0QlMjJ2X3ByZWRpY3Rpb24lMjI=",highlighted:'--prediction_type=<span class="hljs-string">&quot;v_prediction&quot;</span>',wrap:!1}}),k=new ie({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 ie({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 ie({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 Ve({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. You can use a combination of <code>offset=1</code> and
<code>set_alpha_to_one=False</code> to make the last step use step 0 for the previous alpha product like in Stable
Diffusion.`,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/main/src/diffusers/schedulers/scheduling_ddim.py#L131"}}),Y=new ae({props:{name:"scale_model_input",anchor:"diffusers.DDIMScheduler.scale_model_input",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.DDIMScheduler.scale_model_input.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</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/main/src/diffusers/schedulers/scheduling_ddim.py#L238",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.FloatTensor</code></p>
`}}),q=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/main/src/diffusers/schedulers/scheduling_ddim.py#L299"}}),E=new ae({props:{name:"step",anchor:"diffusers.DDIMScheduler.step",parameters:[{name:"model_output",val:": FloatTensor"},{name:"timestep",val:": int"},{name:"sample",val:": FloatTensor"},{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.FloatTensor</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.FloatTensor</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.FloatTensor</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/main/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/main/src/diffusers/schedulers/scheduling_ddim.py#L344",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/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>
`}}),O=new Ve({props:{title:"DDIMSchedulerOutput",local:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput",headingTag:"h2"}}),Q=new ae({props:{name:"class diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput",anchor:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput",parameters:[{name:"prev_sample",val:": FloatTensor"},{name:"pred_original_sample",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput.prev_sample",description:`<strong>prev_sample</strong> (<code>torch.FloatTensor</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.FloatTensor</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/main/src/diffusers/schedulers/scheduling_ddim.py#L31"}}),{c(){d=a("meta"),C=o(),D=a("p"),A=o(),m(Z.$$.fragment),de=o(),U=a("p"),U.innerHTML=Ye,ce=o(),J=a("p"),J.textContent=qe,pe=o(),L=a("p"),L.innerHTML=Ee,ue=o(),j=a("p"),j.innerHTML=Oe,me=o(),m(H.$$.fragment),fe=o(),V=a("p"),V.innerHTML=Qe,he=o(),m(y.$$.fragment),ge=o(),N=a("ol"),N.innerHTML=Xe,_e=o(),m(G.$$.fragment),be=o(),$=a("ol"),$.innerHTML=Ae,De=o(),m(W.$$.fragment),Me=o(),T=a("ol"),T.innerHTML=Ke,ve=o(),m(k.$$.fragment),ye=o(),x=a("ol"),x.innerHTML=et,$e=o(),m(R.$$.fragment),Te=o(),F=a("p"),F.textContent=tt,xe=o(),m(B.$$.fragment),we=o(),m(P.$$.fragment),Ie=o(),c=a("div"),m(z.$$.fragment),Ne=o(),K=a("p"),K.innerHTML=st,Ge=o(),ee=a("p"),ee.innerHTML=nt,We=o(),w=a("div"),m(Y.$$.fragment),ke=o(),te=a("p"),te.textContent=ot,Re=o(),I=a("div"),m(q.$$.fragment),Fe=o(),se=a("p"),se.textContent=rt,Be=o(),S=a("div"),m(E.$$.fragment),Pe=o(),ne=a("p"),ne.textContent=at,Se=o(),m(O.$$.fragment),Ce=o(),v=a("div"),m(Q.$$.fragment),ze=o(),oe=a("p"),oe.innerHTML=it,Ze=o(),re=a("p"),this.h()},l(e){const t=mt("svelte-u9bgzb",document.head);d=i(t,"META",{name:!0,content:!0}),t.forEach(s),C=r(e),D=i(e,"P",{}),X(D).forEach(s),A=r(e),f(Z.$$.fragment,e),de=r(e),U=i(e,"P",{"data-svelte-h":!0}),p(U)!=="svelte-1qeb1a3"&&(U.innerHTML=Ye),ce=r(e),J=i(e,"P",{"data-svelte-h":!0}),p(J)!=="svelte-1cwsb16"&&(J.textContent=qe),pe=r(e),L=i(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-1h59s10"&&(L.innerHTML=Ee),ue=r(e),j=i(e,"P",{"data-svelte-h":!0}),p(j)!=="svelte-1stib0u"&&(j.innerHTML=Oe),me=r(e),f(H.$$.fragment,e),fe=r(e),V=i(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-nsfv69"&&(V.innerHTML=Qe),he=r(e),f(y.$$.fragment,e),ge=r(e),N=i(e,"OL",{"data-svelte-h":!0}),p(N)!=="svelte-hhk4t"&&(N.innerHTML=Xe),_e=r(e),f(G.$$.fragment,e),be=r(e),$=i(e,"OL",{start:!0,"data-svelte-h":!0}),p($)!=="svelte-18uxl2t"&&($.innerHTML=Ae),De=r(e),f(W.$$.fragment,e),Me=r(e),T=i(e,"OL",{start:!0,"data-svelte-h":!0}),p(T)!=="svelte-17ct3yw"&&(T.innerHTML=Ke),ve=r(e),f(k.$$.fragment,e),ye=r(e),x=i(e,"OL",{start:!0,"data-svelte-h":!0}),p(x)!=="svelte-1a6ampg"&&(x.innerHTML=et),$e=r(e),f(R.$$.fragment,e),Te=r(e),F=i(e,"P",{"data-svelte-h":!0}),p(F)!=="svelte-1gkqha7"&&(F.textContent=tt),xe=r(e),f(B.$$.fragment,e),we=r(e),f(P.$$.fragment,e),Ie=r(e),c=i(e,"DIV",{class:!0});var u=X(c);f(z.$$.fragment,u),Ne=r(u),K=i(u,"P",{"data-svelte-h":!0}),p(K)!=="svelte-1wae91k"&&(K.innerHTML=st),Ge=r(u),ee=i(u,"P",{"data-svelte-h":!0}),p(ee)!=="svelte-linuuh"&&(ee.innerHTML=nt),We=r(u),w=i(u,"DIV",{class:!0});var Je=X(w);f(Y.$$.fragment,Je),ke=r(Je),te=i(Je,"P",{"data-svelte-h":!0}),p(te)!=="svelte-1rkfgpx"&&(te.textContent=ot),Je.forEach(s),Re=r(u),I=i(u,"DIV",{class:!0});var Le=X(I);f(q.$$.fragment,Le),Fe=r(Le),se=i(Le,"P",{"data-svelte-h":!0}),p(se)!=="svelte-1vzm9q"&&(se.textContent=rt),Le.forEach(s),Be=r(u),S=i(u,"DIV",{class:!0});var je=X(S);f(E.$$.fragment,je),Pe=r(je),ne=i(je,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-hi84tp"&&(ne.textContent=at),je.forEach(s),u.forEach(s),Se=r(e),f(O.$$.fragment,e),Ce=r(e),v=i(e,"DIV",{class:!0});var He=X(v);f(Q.$$.fragment,He),ze=r(He),oe=i(He,"P",{"data-svelte-h":!0}),p(oe)!=="svelte-id9kic"&&(oe.innerHTML=it),He.forEach(s),Ze=r(e),re=i(e,"P",{}),X(re).forEach(s),this.h()},h(){M(d,"name","hf:doc:metadata"),M(d,"content",_t),M($,"start","2"),M(T,"start","3"),M(x,"start","4"),M(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(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(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(v,"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,d),n(e,C,t),n(e,D,t),n(e,A,t),h(Z,e,t),n(e,de,t),n(e,U,t),n(e,ce,t),n(e,J,t),n(e,pe,t),n(e,L,t),n(e,ue,t),n(e,j,t),n(e,me,t),h(H,e,t),n(e,fe,t),n(e,V,t),n(e,he,t),h(y,e,t),n(e,ge,t),n(e,N,t),n(e,_e,t),h(G,e,t),n(e,be,t),n(e,$,t),n(e,De,t),h(W,e,t),n(e,Me,t),n(e,T,t),n(e,ve,t),h(k,e,t),n(e,ye,t),n(e,x,t),n(e,$e,t),h(R,e,t),n(e,Te,t),n(e,F,t),n(e,xe,t),h(B,e,t),n(e,we,t),h(P,e,t),n(e,Ie,t),n(e,c,t),h(z,c,null),l(c,Ne),l(c,K),l(c,Ge),l(c,ee),l(c,We),l(c,w),h(Y,w,null),l(w,ke),l(w,te),l(c,Re),l(c,I),h(q,I,null),l(I,Fe),l(I,se),l(c,Be),l(c,S),h(E,S,null),l(S,Pe),l(S,ne),n(e,Se,t),h(O,e,t),n(e,Ce,t),n(e,v,t),h(Q,v,null),l(v,ze),l(v,oe),n(e,Ze,t),n(e,re,t),Ue=!0},p(e,[t]){const u={};t&2&&(u.$$scope={dirty:t,ctx:e}),y.$set(u)},i(e){Ue||(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(Y.$$.fragment,e),g(q.$$.fragment,e),g(E.$$.fragment,e),g(O.$$.fragment,e),g(Q.$$.fragment,e),Ue=!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),_(Y.$$.fragment,e),_(q.$$.fragment,e),_(E.$$.fragment,e),_(O.$$.fragment,e),_(Q.$$.fragment,e),Ue=!1},d(e){e&&(s(C),s(D),s(A),s(de),s(U),s(ce),s(J),s(pe),s(L),s(ue),s(j),s(me),s(fe),s(V),s(he),s(ge),s(N),s(_e),s(be),s($),s(De),s(Me),s(T),s(ve),s(ye),s(x),s($e),s(Te),s(F),s(xe),s(we),s(Ie),s(c),s(Se),s(Ce),s(v),s(Ze),s(re)),s(d),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(Y),b(q),b(E),b(O,e),b(Q)}}}const _t='{"title":"DDIMScheduler","local":"ddimscheduler","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2},{"title":"DDIMScheduler","local":"diffusers.DDIMScheduler","sections":[],"depth":2},{"title":"DDIMSchedulerOutput","local":"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput","sections":[],"depth":2}],"depth":1}';function bt(le){return dt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class xt extends pt{constructor(d){super(),ut(this,d,bt,gt,lt,{})}}export{xt as component};
