import{s as lt,o as dt,n as ct}from"../chunks/scheduler.182ea377.js";import{S as pt,i as ut,g as i,s as o,r as m,A as mt,h as a,f as s,c as r,j as O,u as f,x as p,k as v,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 ie}from"../chunks/Docstring.93f6f462.js";import{C as ae}from"../chunks/CodeBlock.57fe6e13.js";import{H as Ve}from"../chunks/Heading.16916d63.js";function ht(le){let d,j="🧪 This is an experimental feature!";return{c(){d=i("p"),d.textContent=j},l(M){d=a(M,"P",{"data-svelte-h":!0}),p(d)!=="svelte-15q3ih4"&&(d.textContent=j)},m(M,A){n(M,d,A)},p:ct,d(M){M&&s(d)}}}function gt(le){let d,j,M,A,C,de,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.',ce,U,qe="The abstract from the paper is:",pe,J,Qe=`<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,N,ze='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,G,fe,V,Ye='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,L,Oe="<li>rescale the noise schedule to enforce zero terminal signal-to-noise ratio (SNR)</li>",_e,k,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>',Me,H,ve,x,Ke="<li>change the sampler to always start from the last timestep</li>",De,W,ye,T,et="<li>rescale classifier-free guidance to prevent over-exposure</li>",$e,F,xe,B,tt="For example:",Te,E,we,R,Se,c,P,Le,K,st=`<code>DDIMScheduler</code> extends the denoising procedure introduced in denoising diffusion probabilistic models (DDPMs) with
non-Markovian guidance.`,ke,ee,nt=`This model inherits from <a href="/docs/diffusers/v0.22.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a> and <a href="/docs/diffusers/v0.22.0/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.`,He,w,X,We,te,ot=`Ensures interchangeability with schedulers that need to scale the denoising model input depending on the
current timestep.`,Fe,S,q,Be,se,rt="Sets the discrete timesteps used for the diffusion chain (to be run before inference).",Ee,I,Q,Re,ne,it=`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).`,Ie,z,je,D,Y,Pe,oe,at="Output class for the scheduler’s <code>step</code> function output.",Ce,re,Ze;return C=new Ve({props:{title:"DDIMScheduler",local:"ddimscheduler",headingTag:"h1"}}),G=new Ve({props:{title:"Tips",local:"tips",headingTag:"h2"}}),y=new ft({props:{warning:!0,$$slots:{default:[ht]},$$scope:{ctx:le}}}),k=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}}),H=new ae({props:{code:"LS1wcmVkaWN0aW9uX3R5cGUlM0QlMjJ2X3ByZWRpY3Rpb24lMjI=",highlighted:'--prediction_type=<span class="hljs-string">&quot;v_prediction&quot;</span>',wrap:!1}}),W=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}}),F=new ae({props:{code:"aW1hZ2UlMjAlM0QlMjBwaXBlbGluZShwcm9tcHQlMkMlMjBndWlkYW5jZV9yZXNjYWxlJTNEMC43KS5pbWFnZXMlNUIwJTVE",highlighted:'image = pipeline(prompt, guidance_rescale=<span class="hljs-number">0.7</span>).images[<span class="hljs-number">0</span>]',wrap:!1}}),E=new ae({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTJDJTIwRERJTVNjaGVkdWxlciUwQSUwQXBpcGUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIycHR4MCUyRnBzZXVkby1qb3VybmV5LXYyJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUuc2NoZWR1bGVyJTIwJTNEJTIwRERJTVNjaGVkdWxlci5mcm9tX2NvbmZpZyglMEElMjAlMjAlMjAlMjBwaXBlLnNjaGVkdWxlci5jb25maWclMkMlMjByZXNjYWxlX2JldGFzX3plcm9fc25yJTNEVHJ1ZSUyQyUyMHRpbWVzdGVwX3NwYWNpbmclM0QlMjJ0cmFpbGluZyUyMiUwQSklMEFwaXBlLnRvKCUyMmN1ZGElMjIpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyQSUyMGxpb24lMjBpbiUyMGdhbGF4aWVzJTJDJTIwc3BpcmFscyUyQyUyMG5lYnVsYWUlMkMlMjBzdGFycyUyQyUyMHNtb2tlJTJDJTIwaXJpZGVzY2VudCUyQyUyMGludHJpY2F0ZSUyMGRldGFpbCUyQyUyMG9jdGFuZSUyMHJlbmRlciUyQyUyMDhrJTIyJTBBaW1hZ2UlMjAlM0QlMjBwaXBlbGluZShwcm9tcHQlMkMlMjBndWlkYW5jZV9yZXNjYWxlJTNEMC43KS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline, DDIMScheduler

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 = pipeline(prompt, guidance_rescale=<span class="hljs-number">0.7</span>).images[<span class="hljs-number">0</span>]`,wrap:!1}}),R=new Ve({props:{title:"DDIMScheduler",local:"diffusers.DDIMScheduler",headingTag:"h2"}}),P=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. 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/v0.22.0/src/diffusers/schedulers/scheduling_ddim.py#L131"}}),X=new ie({props:{name:"scale_model_input",anchor:"diffusers.DDIMScheduler.scale_model_input",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": typing.Optional[int] = 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/v0.22.0/src/diffusers/schedulers/scheduling_ddim.py#L240",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 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/v0.22.0/src/diffusers/schedulers/scheduling_ddim.py#L301"}}),Q=new ie({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:": typing.Optional[torch.FloatTensor] = 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/v0.22.0/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/v0.22.0/src/diffusers/schedulers/scheduling_ddim.py#L346",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If return_dict is <code>True</code>, <a
  href="/docs/diffusers/v0.22.0/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>
`}}),z=new Ve({props:{title:"DDIMSchedulerOutput",local:"diffusers.schedulers.scheduling_ddim.DDIMSchedulerOutput",headingTag:"h2"}}),Y=new ie({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:": typing.Optional[torch.FloatTensor] = 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/v0.22.0/src/diffusers/schedulers/scheduling_ddim.py#L33"}}),{c(){d=i("meta"),j=o(),M=i("p"),A=o(),m(C.$$.fragment),de=o(),Z=i("p"),Z.innerHTML=Xe,ce=o(),U=i("p"),U.textContent=qe,pe=o(),J=i("p"),J.innerHTML=Qe,ue=o(),N=i("p"),N.innerHTML=ze,me=o(),m(G.$$.fragment),fe=o(),V=i("p"),V.innerHTML=Ye,he=o(),m(y.$$.fragment),ge=o(),L=i("ol"),L.innerHTML=Oe,_e=o(),m(k.$$.fragment),be=o(),$=i("ol"),$.innerHTML=Ae,Me=o(),m(H.$$.fragment),ve=o(),x=i("ol"),x.innerHTML=Ke,De=o(),m(W.$$.fragment),ye=o(),T=i("ol"),T.innerHTML=et,$e=o(),m(F.$$.fragment),xe=o(),B=i("p"),B.textContent=tt,Te=o(),m(E.$$.fragment),we=o(),m(R.$$.fragment),Se=o(),c=i("div"),m(P.$$.fragment),Le=o(),K=i("p"),K.innerHTML=st,ke=o(),ee=i("p"),ee.innerHTML=nt,He=o(),w=i("div"),m(X.$$.fragment),We=o(),te=i("p"),te.textContent=ot,Fe=o(),S=i("div"),m(q.$$.fragment),Be=o(),se=i("p"),se.textContent=rt,Ee=o(),I=i("div"),m(Q.$$.fragment),Re=o(),ne=i("p"),ne.textContent=it,Ie=o(),m(z.$$.fragment),je=o(),D=i("div"),m(Y.$$.fragment),Pe=o(),oe=i("p"),oe.innerHTML=at,Ce=o(),re=i("p"),this.h()},l(e){const t=mt("svelte-u9bgzb",document.head);d=a(t,"META",{name:!0,content:!0}),t.forEach(s),j=r(e),M=a(e,"P",{}),O(M).forEach(s),A=r(e),f(C.$$.fragment,e),de=r(e),Z=a(e,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-1qeb1a3"&&(Z.innerHTML=Xe),ce=r(e),U=a(e,"P",{"data-svelte-h":!0}),p(U)!=="svelte-1cwsb16"&&(U.textContent=qe),pe=r(e),J=a(e,"P",{"data-svelte-h":!0}),p(J)!=="svelte-1jnd6cg"&&(J.innerHTML=Qe),ue=r(e),N=a(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-1stib0u"&&(N.innerHTML=ze),me=r(e),f(G.$$.fragment,e),fe=r(e),V=a(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-nsfv69"&&(V.innerHTML=Ye),he=r(e),f(y.$$.fragment,e),ge=r(e),L=a(e,"OL",{"data-svelte-h":!0}),p(L)!=="svelte-hhk4t"&&(L.innerHTML=Oe),_e=r(e),f(k.$$.fragment,e),be=r(e),$=a(e,"OL",{start:!0,"data-svelte-h":!0}),p($)!=="svelte-18uxl2t"&&($.innerHTML=Ae),Me=r(e),f(H.$$.fragment,e),ve=r(e),x=a(e,"OL",{start:!0,"data-svelte-h":!0}),p(x)!=="svelte-17ct3yw"&&(x.innerHTML=Ke),De=r(e),f(W.$$.fragment,e),ye=r(e),T=a(e,"OL",{start:!0,"data-svelte-h":!0}),p(T)!=="svelte-1a6ampg"&&(T.innerHTML=et),$e=r(e),f(F.$$.fragment,e),xe=r(e),B=a(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-1gkqha7"&&(B.textContent=tt),Te=r(e),f(E.$$.fragment,e),we=r(e),f(R.$$.fragment,e),Se=r(e),c=a(e,"DIV",{class:!0});var u=O(c);f(P.$$.fragment,u),Le=r(u),K=a(u,"P",{"data-svelte-h":!0}),p(K)!=="svelte-1wae91k"&&(K.innerHTML=st),ke=r(u),ee=a(u,"P",{"data-svelte-h":!0}),p(ee)!=="svelte-6ikkut"&&(ee.innerHTML=nt),He=r(u),w=a(u,"DIV",{class:!0});var Ue=O(w);f(X.$$.fragment,Ue),We=r(Ue),te=a(Ue,"P",{"data-svelte-h":!0}),p(te)!=="svelte-1rkfgpx"&&(te.textContent=ot),Ue.forEach(s),Fe=r(u),S=a(u,"DIV",{class:!0});var Je=O(S);f(q.$$.fragment,Je),Be=r(Je),se=a(Je,"P",{"data-svelte-h":!0}),p(se)!=="svelte-1vzm9q"&&(se.textContent=rt),Je.forEach(s),Ee=r(u),I=a(u,"DIV",{class:!0});var Ne=O(I);f(Q.$$.fragment,Ne),Re=r(Ne),ne=a(Ne,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-hi84tp"&&(ne.textContent=it),Ne.forEach(s),u.forEach(s),Ie=r(e),f(z.$$.fragment,e),je=r(e),D=a(e,"DIV",{class:!0});var Ge=O(D);f(Y.$$.fragment,Ge),Pe=r(Ge),oe=a(Ge,"P",{"data-svelte-h":!0}),p(oe)!=="svelte-id9kic"&&(oe.innerHTML=at),Ge.forEach(s),Ce=r(e),re=a(e,"P",{}),O(re).forEach(s),this.h()},h(){v(d,"name","hf:doc:metadata"),v(d,"content",_t),v($,"start","2"),v(x,"start","3"),v(T,"start","4"),v(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(D,"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,j,t),n(e,M,t),n(e,A,t),h(C,e,t),n(e,de,t),n(e,Z,t),n(e,ce,t),n(e,U,t),n(e,pe,t),n(e,J,t),n(e,ue,t),n(e,N,t),n(e,me,t),h(G,e,t),n(e,fe,t),n(e,V,t),n(e,he,t),h(y,e,t),n(e,ge,t),n(e,L,t),n(e,_e,t),h(k,e,t),n(e,be,t),n(e,$,t),n(e,Me,t),h(H,e,t),n(e,ve,t),n(e,x,t),n(e,De,t),h(W,e,t),n(e,ye,t),n(e,T,t),n(e,$e,t),h(F,e,t),n(e,xe,t),n(e,B,t),n(e,Te,t),h(E,e,t),n(e,we,t),h(R,e,t),n(e,Se,t),n(e,c,t),h(P,c,null),l(c,Le),l(c,K),l(c,ke),l(c,ee),l(c,He),l(c,w),h(X,w,null),l(w,We),l(w,te),l(c,Fe),l(c,S),h(q,S,null),l(S,Be),l(S,se),l(c,Ee),l(c,I),h(Q,I,null),l(I,Re),l(I,ne),n(e,Ie,t),h(z,e,t),n(e,je,t),n(e,D,t),h(Y,D,null),l(D,Pe),l(D,oe),n(e,Ce,t),n(e,re,t),Ze=!0},p(e,[t]){const u={};t&2&&(u.$$scope={dirty:t,ctx:e}),y.$set(u)},i(e){Ze||(g(C.$$.fragment,e),g(G.$$.fragment,e),g(y.$$.fragment,e),g(k.$$.fragment,e),g(H.$$.fragment,e),g(W.$$.fragment,e),g(F.$$.fragment,e),g(E.$$.fragment,e),g(R.$$.fragment,e),g(P.$$.fragment,e),g(X.$$.fragment,e),g(q.$$.fragment,e),g(Q.$$.fragment,e),g(z.$$.fragment,e),g(Y.$$.fragment,e),Ze=!0)},o(e){_(C.$$.fragment,e),_(G.$$.fragment,e),_(y.$$.fragment,e),_(k.$$.fragment,e),_(H.$$.fragment,e),_(W.$$.fragment,e),_(F.$$.fragment,e),_(E.$$.fragment,e),_(R.$$.fragment,e),_(P.$$.fragment,e),_(X.$$.fragment,e),_(q.$$.fragment,e),_(Q.$$.fragment,e),_(z.$$.fragment,e),_(Y.$$.fragment,e),Ze=!1},d(e){e&&(s(j),s(M),s(A),s(de),s(Z),s(ce),s(U),s(pe),s(J),s(ue),s(N),s(me),s(fe),s(V),s(he),s(ge),s(L),s(_e),s(be),s($),s(Me),s(ve),s(x),s(De),s(ye),s(T),s($e),s(xe),s(B),s(Te),s(we),s(Se),s(c),s(Ie),s(je),s(D),s(Ce),s(re)),s(d),b(C,e),b(G,e),b(y,e),b(k,e),b(H,e),b(W,e),b(F,e),b(E,e),b(R,e),b(P),b(X),b(q),b(Q),b(z,e),b(Y)}}}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 Tt extends pt{constructor(d){super(),ut(this,d,bt,gt,lt,{})}}export{Tt as component};
