import{s as mt,n as ft,o as ht}from"../chunks/scheduler.53228c21.js";import{S as gt,i as _t,e as i,s as o,c as p,h as bt,a,d as s,b as r,f as F,g as u,j as c,k as b,l,m as n,n as m,t as f,o as h,p as g}from"../chunks/index.100fac89.js";import{C as Dt}from"../chunks/CopyLLMTxtMenu.fb2ec027.js";import{D as ie}from"../chunks/Docstring.86a664ae.js";import{C as ae}from"../chunks/CodeBlock.d30a6509.js";import{H as ke,E as Mt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.09d4dba9.js";function vt(Qe){let D,le,oe,de,S,ce,C,pe,Z,Xe='<a href="https://huggingface.co/papers/2010.02502" rel="nofollow">Denoising Diffusion Implicit Models</a> (DDIM) by Jiaming Song, Chenlin Meng and Stefano Ermon.',ue,U,Fe="The abstract from the paper is:",me,J,Ae=`<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>`,fe,L,Ke='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>.',he,H,ge,j,et='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:',_e,v,tt="<p>🧪 This is an experimental feature!</p>",be,V,st="<li>rescale the noise schedule to enforce zero terminal signal-to-noise ratio (SNR)</li>",De,N,Me,y,nt='<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>',ve,G,ye,$,ot="<li>change the sampler to always start from the last timestep</li>",$e,k,Te,T,rt="<li>rescale classifier-free guidance to prevent over-exposure</li>",xe,W,we,R,it="For example:",Ie,B,Se,q,Ce,d,z,We,A,at=`<code>DDIMScheduler</code> extends the denoising procedure introduced in denoising diffusion probabilistic models (DDPMs) with
non-Markovian guidance.`,Re,K,lt=`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.`,Be,x,E,qe,ee,dt=`Ensures interchangeability with schedulers that need to scale the denoising model input depending on the
current timestep.`,ze,w,P,Ee,te,ct="Sets the discrete timesteps used for the diffusion chain (to be run before inference).",Pe,I,Y,Ye,se,pt=`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).`,Ze,O,Ue,M,Q,Oe,ne,ut="Output class for the scheduler’s <code>step</code> function output.",Je,X,Le,re,He;return S=new Dt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new ke({props:{title:"DDIMScheduler",local:"ddimscheduler",headingTag:"h1"}}),H=new ke({props:{title:"Tips",local:"tips",headingTag:"h2"}}),N=new ae({props:{code:"cGlwZS5zY2hlZHVsZXIlMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGUuc2NoZWR1bGVyLmNvbmZpZyUyQyUyMHJlc2NhbGVfYmV0YXNfemVyb19zbnIlM0RUcnVlKQ==",highlighted:'pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config, rescale_betas_zero_snr=<span class="hljs-literal">True</span>)',wrap:!1}}),G=new ae({props:{code:"LS1wcmVkaWN0aW9uX3R5cGUlM0QlMjJ2X3ByZWRpY3Rpb24lMjI=",highlighted:'--prediction_type=<span class="hljs-string">&quot;v_prediction&quot;</span>',wrap:!1}}),k=new ae({props:{code:"cGlwZS5zY2hlZHVsZXIlMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGUuc2NoZWR1bGVyLmNvbmZpZyUyQyUyMHRpbWVzdGVwX3NwYWNpbmclM0QlMjJ0cmFpbGluZyUyMik=",highlighted:'pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config, timestep_spacing=<span class="hljs-string">&quot;trailing&quot;</span>)',wrap:!1}}),W=new ae({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 ae({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}}),q=new ke({props:{title:"DDIMScheduler",local:"diffusers.DDIMScheduler",headingTag:"h2"}}),z=new ie({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:": typing.Union[numpy.ndarray, typing.List[float], NoneType] = 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/main/src/diffusers/schedulers/scheduling_ddim.py#L131"}}),E=new ie({props:{name:"scale_model_input",anchor:"diffusers.DDIMScheduler.scale_model_input",parameters:[{name:"sample",val:": Tensor"},{name:"timestep",val:": typing.Optional[int] = 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/main/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>
`}}),P=new ie({props:{name:"set_timesteps",anchor:"diffusers.DDIMScheduler.set_timesteps",parameters:[{name:"num_inference_steps",val:": int"},{name:"device",val:": typing.Union[str, torch.device] = 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#L297"}}),Y=new ie({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:": typing.Optional[torch.Tensor] = 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/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#L342",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><a
  href="/docs/diffusers/main/en/api/schedulers/ddim#diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput"
>DDIMSchedulerOutput</a> or <code>tuple</code></p>
`}}),O=new ke({props:{title:"DDIMSchedulerOutput",local:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput",headingTag:"h2"}}),Q=new ie({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:": typing.Optional[torch.Tensor] = 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/main/src/diffusers/schedulers/scheduling_ddim.py#L33"}}),X=new Mt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/schedulers/ddim.md"}}),{c(){D=i("meta"),le=o(),oe=i("p"),de=o(),p(S.$$.fragment),ce=o(),p(C.$$.fragment),pe=o(),Z=i("p"),Z.innerHTML=Xe,ue=o(),U=i("p"),U.textContent=Fe,me=o(),J=i("p"),J.innerHTML=Ae,fe=o(),L=i("p"),L.innerHTML=Ke,he=o(),p(H.$$.fragment),ge=o(),j=i("p"),j.innerHTML=et,_e=o(),v=i("blockquote"),v.innerHTML=tt,be=o(),V=i("ol"),V.innerHTML=st,De=o(),p(N.$$.fragment),Me=o(),y=i("ol"),y.innerHTML=nt,ve=o(),p(G.$$.fragment),ye=o(),$=i("ol"),$.innerHTML=ot,$e=o(),p(k.$$.fragment),Te=o(),T=i("ol"),T.innerHTML=rt,xe=o(),p(W.$$.fragment),we=o(),R=i("p"),R.textContent=it,Ie=o(),p(B.$$.fragment),Se=o(),p(q.$$.fragment),Ce=o(),d=i("div"),p(z.$$.fragment),We=o(),A=i("p"),A.innerHTML=at,Re=o(),K=i("p"),K.innerHTML=lt,Be=o(),x=i("div"),p(E.$$.fragment),qe=o(),ee=i("p"),ee.textContent=dt,ze=o(),w=i("div"),p(P.$$.fragment),Ee=o(),te=i("p"),te.textContent=ct,Pe=o(),I=i("div"),p(Y.$$.fragment),Ye=o(),se=i("p"),se.textContent=pt,Ze=o(),p(O.$$.fragment),Ue=o(),M=i("div"),p(Q.$$.fragment),Oe=o(),ne=i("p"),ne.innerHTML=ut,Je=o(),p(X.$$.fragment),Le=o(),re=i("p"),this.h()},l(e){const t=bt("svelte-u9bgzb",document.head);D=a(t,"META",{name:!0,content:!0}),t.forEach(s),le=r(e),oe=a(e,"P",{}),F(oe).forEach(s),de=r(e),u(S.$$.fragment,e),ce=r(e),u(C.$$.fragment,e),pe=r(e),Z=a(e,"P",{"data-svelte-h":!0}),c(Z)!=="svelte-1qeb1a3"&&(Z.innerHTML=Xe),ue=r(e),U=a(e,"P",{"data-svelte-h":!0}),c(U)!=="svelte-1cwsb16"&&(U.textContent=Fe),me=r(e),J=a(e,"P",{"data-svelte-h":!0}),c(J)!=="svelte-1h59s10"&&(J.innerHTML=Ae),fe=r(e),L=a(e,"P",{"data-svelte-h":!0}),c(L)!=="svelte-1stib0u"&&(L.innerHTML=Ke),he=r(e),u(H.$$.fragment,e),ge=r(e),j=a(e,"P",{"data-svelte-h":!0}),c(j)!=="svelte-nsfv69"&&(j.innerHTML=et),_e=r(e),v=a(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(v)!=="svelte-gdt3xk"&&(v.innerHTML=tt),be=r(e),V=a(e,"OL",{"data-svelte-h":!0}),c(V)!=="svelte-hhk4t"&&(V.innerHTML=st),De=r(e),u(N.$$.fragment,e),Me=r(e),y=a(e,"OL",{start:!0,"data-svelte-h":!0}),c(y)!=="svelte-18uxl2t"&&(y.innerHTML=nt),ve=r(e),u(G.$$.fragment,e),ye=r(e),$=a(e,"OL",{start:!0,"data-svelte-h":!0}),c($)!=="svelte-17ct3yw"&&($.innerHTML=ot),$e=r(e),u(k.$$.fragment,e),Te=r(e),T=a(e,"OL",{start:!0,"data-svelte-h":!0}),c(T)!=="svelte-1a6ampg"&&(T.innerHTML=rt),xe=r(e),u(W.$$.fragment,e),we=r(e),R=a(e,"P",{"data-svelte-h":!0}),c(R)!=="svelte-1gkqha7"&&(R.textContent=it),Ie=r(e),u(B.$$.fragment,e),Se=r(e),u(q.$$.fragment,e),Ce=r(e),d=a(e,"DIV",{class:!0});var _=F(d);u(z.$$.fragment,_),We=r(_),A=a(_,"P",{"data-svelte-h":!0}),c(A)!=="svelte-1wae91k"&&(A.innerHTML=at),Re=r(_),K=a(_,"P",{"data-svelte-h":!0}),c(K)!=="svelte-linuuh"&&(K.innerHTML=lt),Be=r(_),x=a(_,"DIV",{class:!0});var je=F(x);u(E.$$.fragment,je),qe=r(je),ee=a(je,"P",{"data-svelte-h":!0}),c(ee)!=="svelte-1rkfgpx"&&(ee.textContent=dt),je.forEach(s),ze=r(_),w=a(_,"DIV",{class:!0});var Ve=F(w);u(P.$$.fragment,Ve),Ee=r(Ve),te=a(Ve,"P",{"data-svelte-h":!0}),c(te)!=="svelte-1vzm9q"&&(te.textContent=ct),Ve.forEach(s),Pe=r(_),I=a(_,"DIV",{class:!0});var Ne=F(I);u(Y.$$.fragment,Ne),Ye=r(Ne),se=a(Ne,"P",{"data-svelte-h":!0}),c(se)!=="svelte-hi84tp"&&(se.textContent=pt),Ne.forEach(s),_.forEach(s),Ze=r(e),u(O.$$.fragment,e),Ue=r(e),M=a(e,"DIV",{class:!0});var Ge=F(M);u(Q.$$.fragment,Ge),Oe=r(Ge),ne=a(Ge,"P",{"data-svelte-h":!0}),c(ne)!=="svelte-id9kic"&&(ne.innerHTML=ut),Ge.forEach(s),Je=r(e),u(X.$$.fragment,e),Le=r(e),re=a(e,"P",{}),F(re).forEach(s),this.h()},h(){b(D,"name","hf:doc:metadata"),b(D,"content",yt),b(v,"class","warning"),b(y,"start","2"),b($,"start","3"),b(T,"start","4"),b(x,"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(I,"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(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,D),n(e,le,t),n(e,oe,t),n(e,de,t),m(S,e,t),n(e,ce,t),m(C,e,t),n(e,pe,t),n(e,Z,t),n(e,ue,t),n(e,U,t),n(e,me,t),n(e,J,t),n(e,fe,t),n(e,L,t),n(e,he,t),m(H,e,t),n(e,ge,t),n(e,j,t),n(e,_e,t),n(e,v,t),n(e,be,t),n(e,V,t),n(e,De,t),m(N,e,t),n(e,Me,t),n(e,y,t),n(e,ve,t),m(G,e,t),n(e,ye,t),n(e,$,t),n(e,$e,t),m(k,e,t),n(e,Te,t),n(e,T,t),n(e,xe,t),m(W,e,t),n(e,we,t),n(e,R,t),n(e,Ie,t),m(B,e,t),n(e,Se,t),m(q,e,t),n(e,Ce,t),n(e,d,t),m(z,d,null),l(d,We),l(d,A),l(d,Re),l(d,K),l(d,Be),l(d,x),m(E,x,null),l(x,qe),l(x,ee),l(d,ze),l(d,w),m(P,w,null),l(w,Ee),l(w,te),l(d,Pe),l(d,I),m(Y,I,null),l(I,Ye),l(I,se),n(e,Ze,t),m(O,e,t),n(e,Ue,t),n(e,M,t),m(Q,M,null),l(M,Oe),l(M,ne),n(e,Je,t),m(X,e,t),n(e,Le,t),n(e,re,t),He=!0},p:ft,i(e){He||(f(S.$$.fragment,e),f(C.$$.fragment,e),f(H.$$.fragment,e),f(N.$$.fragment,e),f(G.$$.fragment,e),f(k.$$.fragment,e),f(W.$$.fragment,e),f(B.$$.fragment,e),f(q.$$.fragment,e),f(z.$$.fragment,e),f(E.$$.fragment,e),f(P.$$.fragment,e),f(Y.$$.fragment,e),f(O.$$.fragment,e),f(Q.$$.fragment,e),f(X.$$.fragment,e),He=!0)},o(e){h(S.$$.fragment,e),h(C.$$.fragment,e),h(H.$$.fragment,e),h(N.$$.fragment,e),h(G.$$.fragment,e),h(k.$$.fragment,e),h(W.$$.fragment,e),h(B.$$.fragment,e),h(q.$$.fragment,e),h(z.$$.fragment,e),h(E.$$.fragment,e),h(P.$$.fragment,e),h(Y.$$.fragment,e),h(O.$$.fragment,e),h(Q.$$.fragment,e),h(X.$$.fragment,e),He=!1},d(e){e&&(s(le),s(oe),s(de),s(ce),s(pe),s(Z),s(ue),s(U),s(me),s(J),s(fe),s(L),s(he),s(ge),s(j),s(_e),s(v),s(be),s(V),s(De),s(Me),s(y),s(ve),s(ye),s($),s($e),s(Te),s(T),s(xe),s(we),s(R),s(Ie),s(Se),s(Ce),s(d),s(Ze),s(Ue),s(M),s(Je),s(Le),s(re)),s(D),g(S,e),g(C,e),g(H,e),g(N,e),g(G,e),g(k,e),g(W,e),g(B,e),g(q,e),g(z),g(E),g(P),g(Y),g(O,e),g(Q),g(X,e)}}}const yt='{"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 $t(Qe){return ht(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Zt extends gt{constructor(D){super(),_t(this,D,$t,vt,mt,{})}}export{Zt as component};
