import{s as Xe,n as Ye,o as Ze}from"../chunks/scheduler.53228c21.js";import{S as et,i as tt,e as d,s as o,c as p,h as st,a,d as t,b as r,f as b,g as u,j as _,k as v,l as s,m as c,n as m,t as f,o as h,p as g}from"../chunks/index.100fac89.js";import{C as nt}from"../chunks/CopyLLMTxtMenu.20a72e0e.js";import{D as w}from"../chunks/Docstring.49101787.js";import{H as Ve,E as ot}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.4d82655d.js";function rt(ze){let D,se,ee,ne,q,oe,C,re,L,Ae='<a href="https://huggingface.co/papers/2006.11239" rel="nofollow">Denoising Diffusion Probabilistic Models</a> (DDPM) by Jonathan Ho, Ajay Jain and Pieter Abbeel proposes a diffusion based model of the same name. In the context of the 🤗 Diffusers library, DDPM refers to the discrete denoising scheduler from the paper as well as the pipeline.',ie,O,Fe="The abstract from the paper is:",de,I,ke='<em>We present high quality image synthesis results using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics. Our best results are obtained by training on a weighted variational bound designed according to a novel connection between diffusion probabilistic models and denoising score matching with Langevin dynamics, and our models naturally admit a progressive lossy decompression scheme that can be interpreted as a generalization of autoregressive decoding. On the unconditional CIFAR10 dataset, we obtain an Inception score of 9.46 and a state-of-the-art FID score of 3.17. On 256x256 LSUN, we obtain sample quality similar to ProgressiveGAN. Our implementation is available at <a href="https://github.com/hojonathanho/diffusion" rel="nofollow">this https URL</a>.</em>',ae,E,ce,i,N,ye,G,Re="<code>DDPMScheduler</code> explores the connections between denoising score matching and Langevin dynamics sampling.",$e,W,Ue=`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.`,Pe,y,H,Te,J,je=`Add noise to the original samples according to the noise magnitude at each timestep (this is the forward
diffusion process).`,Me,$,V,Se,B,Ge="Compute the velocity prediction from the sample and noise according to the velocity formula.",we,P,z,qe,K,We="Compute the previous timestep in the diffusion chain.",Ce,T,A,Le,Q,Je=`Ensures interchangeability with schedulers that need to scale the denoising model input depending on the
current timestep.`,Oe,M,F,Ie,X,Be="Sets the discrete timesteps used for the diffusion chain (to be run before inference).",Ee,S,k,Ne,Y,Ke=`Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion
process from the learned model outputs (most often the predicted noise).`,le,R,pe,x,U,He,Z,Qe="Output class for the scheduler’s <code>step</code> function output.",ue,j,me,te,fe;return q=new nt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new Ve({props:{title:"DDPMScheduler",local:"ddpmscheduler",headingTag:"h1"}}),E=new Ve({props:{title:"DDPMScheduler",local:"diffusers.DDPMScheduler",headingTag:"h2"}}),N=new w({props:{name:"class diffusers.DDPMScheduler",anchor:"diffusers.DDPMScheduler",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:": typing.Literal['linear', 'scaled_linear', 'squaredcos_cap_v2', 'sigmoid'] = 'linear'"},{name:"trained_betas",val:": typing.Union[numpy.ndarray, typing.List[float], NoneType] = None"},{name:"variance_type",val:": typing.Literal['fixed_small', 'fixed_small_log', 'fixed_large', 'fixed_large_log', 'learned', 'learned_range'] = 'fixed_small'"},{name:"clip_sample",val:": bool = True"},{name:"prediction_type",val:": typing.Literal['epsilon', 'sample', 'v_prediction'] = '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:": typing.Literal['linspace', 'leading', 'trailing'] = 'leading'"},{name:"steps_offset",val:": int = 0"},{name:"rescale_betas_zero_snr",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.DDPMScheduler.num_train_timesteps",description:`<strong>num_train_timesteps</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
The number of diffusion steps to train the model.`,name:"num_train_timesteps"},{anchor:"diffusers.DDPMScheduler.beta_start",description:`<strong>beta_start</strong> (<code>float</code>, defaults to <code>0.0001</code>) &#x2014;
The starting <code>beta</code> value of inference.`,name:"beta_start"},{anchor:"diffusers.DDPMScheduler.beta_end",description:`<strong>beta_end</strong> (<code>float</code>, defaults to <code>0.02</code>) &#x2014;
The final <code>beta</code> value.`,name:"beta_end"},{anchor:"diffusers.DDPMScheduler.beta_schedule",description:`<strong>beta_schedule</strong> (<code>&quot;linear&quot;</code>, <code>&quot;scaled_linear&quot;</code>, <code>&quot;squaredcos_cap_v2&quot;</code>, or <code>&quot;sigmoid&quot;</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.`,name:"beta_schedule"},{anchor:"diffusers.DDPMScheduler.trained_betas",description:`<strong>trained_betas</strong> (<code>np.ndarray</code>, <em>optional</em>) &#x2014;
An array of betas to pass directly to the constructor without using <code>beta_start</code> and <code>beta_end</code>.`,name:"trained_betas"},{anchor:"diffusers.DDPMScheduler.variance_type",description:`<strong>variance_type</strong> (<code>&quot;fixed_small&quot;</code>, <code>&quot;fixed_small_log&quot;</code>, <code>&quot;fixed_large&quot;</code>, <code>&quot;fixed_large_log&quot;</code>, <code>&quot;learned&quot;</code>, or <code>&quot;learned_range&quot;</code>, defaults to <code>&quot;fixed_small&quot;</code>) &#x2014;
Clip the variance when adding noise to the denoised sample.`,name:"variance_type"},{anchor:"diffusers.DDPMScheduler.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.DDPMScheduler.clip_sample_range",description:`<strong>clip_sample_range</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The maximum magnitude for sample clipping. Valid only when <code>clip_sample=True</code>.`,name:"clip_sample_range"},{anchor:"diffusers.DDPMScheduler.prediction_type",description:`<strong>prediction_type</strong> (<code>&quot;epsilon&quot;</code>, <code>&quot;sample&quot;</code>, or <code>&quot;v_prediction&quot;</code>, defaults to <code>&quot;epsilon&quot;</code>) &#x2014;
Prediction type of the scheduler function; can be <code>epsilon</code> (predicts the noise of the diffusion process),
<code>sample</code> (directly predicts the noisy sample<code>) or </code>v_prediction\` (see section 2.4 of <a href="https://huggingface.co/papers/2210.02303" rel="nofollow">Imagen
Video</a> paper).`,name:"prediction_type"},{anchor:"diffusers.DDPMScheduler.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.DDPMScheduler.dynamic_thresholding_ratio",description:`<strong>dynamic_thresholding_ratio</strong> (<code>float</code>, defaults to <code>0.995</code>) &#x2014;
The ratio for the dynamic thresholding method. Valid only when <code>thresholding=True</code>.`,name:"dynamic_thresholding_ratio"},{anchor:"diffusers.DDPMScheduler.sample_max_value",description:`<strong>sample_max_value</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The threshold value for dynamic thresholding. Valid only when <code>thresholding=True</code>.`,name:"sample_max_value"},{anchor:"diffusers.DDPMScheduler.timestep_spacing",description:`<strong>timestep_spacing</strong> (<code>&quot;linspace&quot;</code>, <code>&quot;leading&quot;</code>, or <code>&quot;trailing&quot;</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.DDPMScheduler.steps_offset",description:`<strong>steps_offset</strong> (<code>int</code>, defaults to <code>0</code>) &#x2014;
An offset added to the inference steps, as required by some model families.`,name:"steps_offset"},{anchor:"diffusers.DDPMScheduler.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_ddpm.py#L130"}}),H=new w({props:{name:"add_noise",anchor:"diffusers.DDPMScheduler.add_noise",parameters:[{name:"original_samples",val:": Tensor"},{name:"noise",val:": Tensor"},{name:"timesteps",val:": IntTensor"}],parametersDescription:[{anchor:"diffusers.DDPMScheduler.add_noise.original_samples",description:`<strong>original_samples</strong> (<code>torch.Tensor</code>) &#x2014;
The original samples to which noise will be added.`,name:"original_samples"},{anchor:"diffusers.DDPMScheduler.add_noise.noise",description:`<strong>noise</strong> (<code>torch.Tensor</code>) &#x2014;
The noise to add to the samples.`,name:"noise"},{anchor:"diffusers.DDPMScheduler.add_noise.timesteps",description:`<strong>timesteps</strong> (<code>torch.IntTensor</code>) &#x2014;
The timesteps indicating the noise level for each sample.`,name:"timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddpm.py#L535",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>torch.Tensor</code></p>
`}}),z=new w({props:{name:"previous_timestep",anchor:"diffusers.DDPMScheduler.previous_timestep",parameters:[{name:"timestep",val:": int"}],parametersDescription:[{anchor:"diffusers.DDPMScheduler.previous_timestep.timestep",description:`<strong>timestep</strong> (<code>int</code>) &#x2014;
The current timestep.`,name:"timestep"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddpm.py#L614",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>int</code></p>
`}}),A=new w({props:{name:"scale_model_input",anchor:"diffusers.DDPMScheduler.scale_model_input",parameters:[{name:"sample",val:": Tensor"},{name:"timestep",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.DDPMScheduler.scale_model_input.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014;
The input sample.`,name:"sample"},{anchor:"diffusers.DDPMScheduler.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_ddpm.py#L235",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>
`}}),F=new w({props:{name:"set_timesteps",anchor:"diffusers.DDPMScheduler.set_timesteps",parameters:[{name:"num_inference_steps",val:": typing.Optional[int] = None"},{name:"device",val:": typing.Union[str, torch.device] = None"},{name:"timesteps",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"diffusers.DDPMScheduler.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. If used,
<code>timesteps</code> must be <code>None</code>.`,name:"num_inference_steps"},{anchor:"diffusers.DDPMScheduler.set_timesteps.device",description:`<strong>device</strong> (<code>str</code> or <code>torch.device</code>, <em>optional</em>) &#x2014;
The device to which the timesteps should be moved to. If <code>None</code>, the timesteps are not moved.`,name:"device"},{anchor:"diffusers.DDPMScheduler.set_timesteps.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Custom timesteps used to support arbitrary spacing between timesteps. If <code>None</code>, then the default
timestep spacing strategy of equal spacing between timesteps is used. If <code>timesteps</code> is passed,
<code>num_inference_steps</code> must be <code>None</code>.`,name:"timesteps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddpm.py#L252"}}),k=new w({props:{name:"step",anchor:"diffusers.DDPMScheduler.step",parameters:[{name:"model_output",val:": Tensor"},{name:"timestep",val:": int"},{name:"sample",val:": Tensor"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.DDPMScheduler.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.DDPMScheduler.step.timestep",description:`<strong>timestep</strong> (<code>int</code>) &#x2014;
The current discrete timestep in the diffusion chain.`,name:"timestep"},{anchor:"diffusers.DDPMScheduler.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.DDPMScheduler.step.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A random number generator.`,name:"generator"},{anchor:"diffusers.DDPMScheduler.step.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/schedulers/ddpm#diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput">DDPMSchedulerOutput</a> or <code>tuple</code>.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddpm.py#L433",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/ddpm#diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput"
>DDPMSchedulerOutput</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/ddpm#diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput"
>DDPMSchedulerOutput</a> or <code>tuple</code></p>
`}}),R=new Ve({props:{title:"DDPMSchedulerOutput",local:"diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput",headingTag:"h2"}}),U=new w({props:{name:"class diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput",anchor:"diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput",parameters:[{name:"prev_sample",val:": Tensor"},{name:"pred_original_sample",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput.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_ddpm.DDPMSchedulerOutput.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_ddpm.py#L31"}}),j=new ot({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/schedulers/ddpm.md"}}),{c(){D=d("meta"),se=o(),ee=d("p"),ne=o(),p(q.$$.fragment),oe=o(),p(C.$$.fragment),re=o(),L=d("p"),L.innerHTML=Ae,ie=o(),O=d("p"),O.textContent=Fe,de=o(),I=d("p"),I.innerHTML=ke,ae=o(),p(E.$$.fragment),ce=o(),i=d("div"),p(N.$$.fragment),ye=o(),G=d("p"),G.innerHTML=Re,$e=o(),W=d("p"),W.innerHTML=Ue,Pe=o(),y=d("div"),p(H.$$.fragment),Te=o(),J=d("p"),J.textContent=je,Me=o(),$=d("div"),p(V.$$.fragment),Se=o(),B=d("p"),B.textContent=Ge,we=o(),P=d("div"),p(z.$$.fragment),qe=o(),K=d("p"),K.textContent=We,Ce=o(),T=d("div"),p(A.$$.fragment),Le=o(),Q=d("p"),Q.textContent=Je,Oe=o(),M=d("div"),p(F.$$.fragment),Ie=o(),X=d("p"),X.textContent=Be,Ee=o(),S=d("div"),p(k.$$.fragment),Ne=o(),Y=d("p"),Y.textContent=Ke,le=o(),p(R.$$.fragment),pe=o(),x=d("div"),p(U.$$.fragment),He=o(),Z=d("p"),Z.innerHTML=Qe,ue=o(),p(j.$$.fragment),me=o(),te=d("p"),this.h()},l(e){const n=st("svelte-u9bgzb",document.head);D=a(n,"META",{name:!0,content:!0}),n.forEach(t),se=r(e),ee=a(e,"P",{}),b(ee).forEach(t),ne=r(e),u(q.$$.fragment,e),oe=r(e),u(C.$$.fragment,e),re=r(e),L=a(e,"P",{"data-svelte-h":!0}),_(L)!=="svelte-18lgwlw"&&(L.innerHTML=Ae),ie=r(e),O=a(e,"P",{"data-svelte-h":!0}),_(O)!=="svelte-1cwsb16"&&(O.textContent=Fe),de=r(e),I=a(e,"P",{"data-svelte-h":!0}),_(I)!=="svelte-ndelhy"&&(I.innerHTML=ke),ae=r(e),u(E.$$.fragment,e),ce=r(e),i=a(e,"DIV",{class:!0});var l=b(i);u(N.$$.fragment,l),ye=r(l),G=a(l,"P",{"data-svelte-h":!0}),_(G)!=="svelte-s0ec9y"&&(G.innerHTML=Re),$e=r(l),W=a(l,"P",{"data-svelte-h":!0}),_(W)!=="svelte-linuuh"&&(W.innerHTML=Ue),Pe=r(l),y=a(l,"DIV",{class:!0});var he=b(y);u(H.$$.fragment,he),Te=r(he),J=a(he,"P",{"data-svelte-h":!0}),_(J)!=="svelte-hqmiev"&&(J.textContent=je),he.forEach(t),Me=r(l),$=a(l,"DIV",{class:!0});var ge=b($);u(V.$$.fragment,ge),Se=r(ge),B=a(ge,"P",{"data-svelte-h":!0}),_(B)!=="svelte-1aqw5k3"&&(B.textContent=Ge),ge.forEach(t),we=r(l),P=a(l,"DIV",{class:!0});var _e=b(P);u(z.$$.fragment,_e),qe=r(_e),K=a(_e,"P",{"data-svelte-h":!0}),_(K)!=="svelte-jss25y"&&(K.textContent=We),_e.forEach(t),Ce=r(l),T=a(l,"DIV",{class:!0});var be=b(T);u(A.$$.fragment,be),Le=r(be),Q=a(be,"P",{"data-svelte-h":!0}),_(Q)!=="svelte-1rkfgpx"&&(Q.textContent=Je),be.forEach(t),Oe=r(l),M=a(l,"DIV",{class:!0});var ve=b(M);u(F.$$.fragment,ve),Ie=r(ve),X=a(ve,"P",{"data-svelte-h":!0}),_(X)!=="svelte-1vzm9q"&&(X.textContent=Be),ve.forEach(t),Ee=r(l),S=a(l,"DIV",{class:!0});var De=b(S);u(k.$$.fragment,De),Ne=r(De),Y=a(De,"P",{"data-svelte-h":!0}),_(Y)!=="svelte-hi84tp"&&(Y.textContent=Ke),De.forEach(t),l.forEach(t),le=r(e),u(R.$$.fragment,e),pe=r(e),x=a(e,"DIV",{class:!0});var xe=b(x);u(U.$$.fragment,xe),He=r(xe),Z=a(xe,"P",{"data-svelte-h":!0}),_(Z)!=="svelte-id9kic"&&(Z.innerHTML=Qe),xe.forEach(t),ue=r(e),u(j.$$.fragment,e),me=r(e),te=a(e,"P",{}),b(te).forEach(t),this.h()},h(){v(D,"name","hf:doc:metadata"),v(D,"content",it),v(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(M,"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(x,"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,n){s(document.head,D),c(e,se,n),c(e,ee,n),c(e,ne,n),m(q,e,n),c(e,oe,n),m(C,e,n),c(e,re,n),c(e,L,n),c(e,ie,n),c(e,O,n),c(e,de,n),c(e,I,n),c(e,ae,n),m(E,e,n),c(e,ce,n),c(e,i,n),m(N,i,null),s(i,ye),s(i,G),s(i,$e),s(i,W),s(i,Pe),s(i,y),m(H,y,null),s(y,Te),s(y,J),s(i,Me),s(i,$),m(V,$,null),s($,Se),s($,B),s(i,we),s(i,P),m(z,P,null),s(P,qe),s(P,K),s(i,Ce),s(i,T),m(A,T,null),s(T,Le),s(T,Q),s(i,Oe),s(i,M),m(F,M,null),s(M,Ie),s(M,X),s(i,Ee),s(i,S),m(k,S,null),s(S,Ne),s(S,Y),c(e,le,n),m(R,e,n),c(e,pe,n),c(e,x,n),m(U,x,null),s(x,He),s(x,Z),c(e,ue,n),m(j,e,n),c(e,me,n),c(e,te,n),fe=!0},p:Ye,i(e){fe||(f(q.$$.fragment,e),f(C.$$.fragment,e),f(E.$$.fragment,e),f(N.$$.fragment,e),f(H.$$.fragment,e),f(V.$$.fragment,e),f(z.$$.fragment,e),f(A.$$.fragment,e),f(F.$$.fragment,e),f(k.$$.fragment,e),f(R.$$.fragment,e),f(U.$$.fragment,e),f(j.$$.fragment,e),fe=!0)},o(e){h(q.$$.fragment,e),h(C.$$.fragment,e),h(E.$$.fragment,e),h(N.$$.fragment,e),h(H.$$.fragment,e),h(V.$$.fragment,e),h(z.$$.fragment,e),h(A.$$.fragment,e),h(F.$$.fragment,e),h(k.$$.fragment,e),h(R.$$.fragment,e),h(U.$$.fragment,e),h(j.$$.fragment,e),fe=!1},d(e){e&&(t(se),t(ee),t(ne),t(oe),t(re),t(L),t(ie),t(O),t(de),t(I),t(ae),t(ce),t(i),t(le),t(pe),t(x),t(ue),t(me),t(te)),t(D),g(q,e),g(C,e),g(E,e),g(N),g(H),g(V),g(z),g(A),g(F),g(k),g(R,e),g(U),g(j,e)}}}const it='{"title":"DDPMScheduler","local":"ddpmscheduler","sections":[{"title":"DDPMScheduler","local":"diffusers.DDPMScheduler","sections":[],"depth":2},{"title":"DDPMSchedulerOutput","local":"diffusers.schedulers.scheduling_ddpm.DDPMSchedulerOutput","sections":[],"depth":2}],"depth":1}';function dt(ze){return Ze(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mt extends et{constructor(D){super(),tt(this,D,dt,rt,Xe,{})}}export{mt as component};
