import{s as it,o as dt,n as nt}from"../chunks/scheduler.8c3d61f6.js";import{S as at,i as ct,g as a,s as o,r as m,A as lt,h as c,f as s,c as r,j as P,u as _,x as y,k as C,y as t,a as p,v as g,d as h,t as A,w as b}from"../chunks/index.da70eac4.js";import{T as ft}from"../chunks/Tip.1d9b8c37.js";import{D as E}from"../chunks/Docstring.6b390b9a.js";import{C as pt}from"../chunks/CodeBlock.00a903b3.js";import{E as ut}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as rt,E as mt}from"../chunks/EditOnGithub.1e64e623.js";function _t(q){let l,D="Inference is only supported for 2 iterations as of now.";return{c(){l=a("p"),l.textContent=D},l(u){l=c(u,"P",{"data-svelte-h":!0}),y(l)!=="svelte-oxwnyv"&&(l.textContent=D)},m(u,v){p(u,l,v)},p:nt,d(u){u&&s(l)}}}function gt(q){let l,D="Examples:",u,v,$;return v=new pt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMkMlMjBDb25zaXN0ZW5jeURlY29kZXJWQUUlMEElMEF2YWUlMjAlM0QlMjBDb25zaXN0ZW5jeURlY29kZXJWQUUuZnJvbV9wcmV0cmFpbmVkKCUyMm9wZW5haSUyRmNvbnNpc3RlbmN5LWRlY29kZXIlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHZhZSUzRHZhZSUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUwQSkudG8oJTIyY3VkYSUyMiklMEElMEFpbWFnZSUyMCUzRCUyMHBpcGUoJTIyaG9yc2UlMjIlMkMlMjBnZW5lcmF0b3IlM0R0b3JjaC5tYW51YWxfc2VlZCgwKSkuaW1hZ2VzJTVCMCU1RCUwQWltYWdl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline, ConsistencyDecoderVAE

<span class="hljs-meta">&gt;&gt;&gt; </span>vae = ConsistencyDecoderVAE.from_pretrained(<span class="hljs-string">&quot;openai/consistency-decoder&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>, vae=vae, torch_dtype=torch.float16
<span class="hljs-meta">... </span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(<span class="hljs-string">&quot;horse&quot;</span>, generator=torch.manual_seed(<span class="hljs-number">0</span>)).images[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>image`,wrap:!1}}),{c(){l=a("p"),l.textContent=D,u=o(),m(v.$$.fragment)},l(f){l=c(f,"P",{"data-svelte-h":!0}),y(l)!=="svelte-kvfsh7"&&(l.textContent=D),u=r(f),_(v.$$.fragment,f)},m(f,w){p(f,l,w),p(f,u,w),g(v,f,w),$=!0},p:nt,i(f){$||(h(v.$$.fragment,f),$=!0)},o(f){A(v.$$.fragment,f),$=!1},d(f){f&&(s(l),s(u)),b(v,f)}}}function ht(q){let l,D,u,v,$,f,w,Xe='Consistency decoder can be used to decode the latents from the denoising UNet in the <a href="/docs/diffusers/pr_10077/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline">StableDiffusionPipeline</a>. This decoder was introduced in the <a href="https://openai.com/dall-e-3" rel="nofollow">DALL-E 3 technical report</a>.',pe,j,Be='The original codebase can be found at <a href="https://github.com/openai/consistencydecoder" rel="nofollow">openai/consistencydecoder</a>.',ue,V,me,R,Ne='The pipeline could not have been contributed without the help of <a href="https://github.com/madebyollin" rel="nofollow">madebyollin</a> and <a href="https://github.com/mrsteyk" rel="nofollow">mrsteyk</a> from <a href="https://github.com/openai/consistencydecoder/issues/1" rel="nofollow">this issue</a>.',_e,G,ge,n,Z,De,O,Ye="The consistency decoder used with DALL-E 3.",xe,T,Ee,Q,J,Ve,F,W,Te,ee,ze=`Disable sliced VAE decoding. If <code>enable_slicing</code> was previously enabled, this method will go back to computing
decoding in one step.`,Fe,M,S,Me,te,Ke=`Disable tiled VAE decoding. If <code>enable_tiling</code> was previously enabled, this method will go back to computing
decoding in one step.`,ke,k,H,Ue,se,qe=`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`,Ie,U,X,Le,oe,Oe=`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`,je,re,B,Re,I,N,Ge,ne,Qe="Sets the attention processor to use to compute attention.",Ze,L,Y,Je,ie,et="Disables custom attention processors and sets the default attention implementation.",We,x,z,Se,de,tt="Encode a batch of images using a tiled encoder.",He,ae,st=`When this option is enabled, the VAE will split the input tensor into tiles to compute encoding in several
steps. This is useful to keep memory use constant regardless of image size. The end result of tiled encoding is
different from non-tiled encoding because each tile uses a different encoder. To avoid tiling artifacts, the
tiles overlap and are blended together to form a smooth output. You may still see tile-sized changes in the
output, but they should be much less noticeable.`,he,K,Ae,le,be;return $=new rt({props:{title:"Consistency Decoder",local:"consistency-decoder",headingTag:"h1"}}),V=new ft({props:{warning:!0,$$slots:{default:[_t]},$$scope:{ctx:q}}}),G=new rt({props:{title:"ConsistencyDecoderVAE",local:"diffusers.ConsistencyDecoderVAE",headingTag:"h2"}}),Z=new E({props:{name:"class diffusers.ConsistencyDecoderVAE",anchor:"diffusers.ConsistencyDecoderVAE",parameters:[{name:"scaling_factor",val:": float = 0.18215"},{name:"latent_channels",val:": int = 4"},{name:"sample_size",val:": int = 32"},{name:"encoder_act_fn",val:": str = 'silu'"},{name:"encoder_block_out_channels",val:": typing.Tuple[int, ...] = (128, 256, 512, 512)"},{name:"encoder_double_z",val:": bool = True"},{name:"encoder_down_block_types",val:": typing.Tuple[str, ...] = ('DownEncoderBlock2D', 'DownEncoderBlock2D', 'DownEncoderBlock2D', 'DownEncoderBlock2D')"},{name:"encoder_in_channels",val:": int = 3"},{name:"encoder_layers_per_block",val:": int = 2"},{name:"encoder_norm_num_groups",val:": int = 32"},{name:"encoder_out_channels",val:": int = 4"},{name:"decoder_add_attention",val:": bool = False"},{name:"decoder_block_out_channels",val:": typing.Tuple[int, ...] = (320, 640, 1024, 1024)"},{name:"decoder_down_block_types",val:": typing.Tuple[str, ...] = ('ResnetDownsampleBlock2D', 'ResnetDownsampleBlock2D', 'ResnetDownsampleBlock2D', 'ResnetDownsampleBlock2D')"},{name:"decoder_downsample_padding",val:": int = 1"},{name:"decoder_in_channels",val:": int = 7"},{name:"decoder_layers_per_block",val:": int = 3"},{name:"decoder_norm_eps",val:": float = 1e-05"},{name:"decoder_norm_num_groups",val:": int = 32"},{name:"decoder_num_train_timesteps",val:": int = 1024"},{name:"decoder_out_channels",val:": int = 6"},{name:"decoder_resnet_time_scale_shift",val:": str = 'scale_shift'"},{name:"decoder_time_embedding_type",val:": str = 'learned'"},{name:"decoder_up_block_types",val:": typing.Tuple[str, ...] = ('ResnetUpsampleBlock2D', 'ResnetUpsampleBlock2D', 'ResnetUpsampleBlock2D', 'ResnetUpsampleBlock2D')"}],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L52"}}),T=new ut({props:{anchor:"diffusers.ConsistencyDecoderVAE.example",$$slots:{default:[gt]},$$scope:{ctx:q}}}),J=new E({props:{name:"wrapper",anchor:"diffusers.ConsistencyDecoderVAE.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/utils/accelerate_utils.py#L43"}}),W=new E({props:{name:"disable_slicing",anchor:"diffusers.ConsistencyDecoderVAE.disable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L194"}}),S=new E({props:{name:"disable_tiling",anchor:"diffusers.ConsistencyDecoderVAE.disable_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L178"}}),H=new E({props:{name:"enable_slicing",anchor:"diffusers.ConsistencyDecoderVAE.enable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L186"}}),X=new E({props:{name:"enable_tiling",anchor:"diffusers.ConsistencyDecoderVAE.enable_tiling",parameters:[{name:"use_tiling",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L169"}}),B=new E({props:{name:"forward",anchor:"diffusers.ConsistencyDecoderVAE.forward",parameters:[{name:"sample",val:": Tensor"},{name:"sample_posterior",val:": bool = False"},{name:"return_dict",val:": bool = True"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"}],parametersDescription:[{anchor:"diffusers.ConsistencyDecoderVAE.forward.sample",description:"<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014; Input sample.",name:"sample"},{anchor:"diffusers.ConsistencyDecoderVAE.forward.sample_posterior",description:`<strong>sample_posterior</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to sample from the posterior.`,name:"sample_posterior"},{anchor:"diffusers.ConsistencyDecoderVAE.forward.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 <code>DecoderOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.ConsistencyDecoderVAE.forward.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Generator to use for sampling.`,name:"generator"}],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L428",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If return_dict is True, a <code>DecoderOutput</code> is returned, otherwise a plain <code>tuple</code> is returned.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>DecoderOutput</code> or <code>tuple</code></p>
`}}),N=new E({props:{name:"set_attn_processor",anchor:"diffusers.ConsistencyDecoderVAE.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor]]]"}],parametersDescription:[{anchor:"diffusers.ConsistencyDecoderVAE.set_attn_processor.processor",description:`<strong>processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or only <code>AttentionProcessor</code>) &#x2014;
The instantiated processor class or a dictionary of processor classes that will be set as the processor
for <strong>all</strong> <code>Attention</code> layers.</p>
<p>If <code>processor</code> is a dict, the key needs to define the path to the corresponding cross attention
processor. This is strongly recommended when setting trainable attention processors.`,name:"processor"}],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L227"}}),Y=new E({props:{name:"set_default_attn_processor",anchor:"diffusers.ConsistencyDecoderVAE.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L262"}}),z=new E({props:{name:"tiled_encode",anchor:"diffusers.ConsistencyDecoderVAE.tiled_encode",parameters:[{name:"x",val:": Tensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.ConsistencyDecoderVAE.tiled_encode.x",description:"<strong>x</strong> (<code>torch.Tensor</code>) &#x2014; Input batch of images.",name:"x"},{anchor:"diffusers.ConsistencyDecoderVAE.tiled_encode.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 <code>ConsistencyDecoderVAEOutput</code>
instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_10077/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L373",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If return_dict is True, a <code>ConsistencyDecoderVAEOutput</code>
is returned, otherwise a plain <code>tuple</code> is returned.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ConsistencyDecoderVAEOutput</code> or <code>tuple</code></p>
`}}),K=new mt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/consistency_decoder_vae.md"}}),{c(){l=a("meta"),D=o(),u=a("p"),v=o(),m($.$$.fragment),f=o(),w=a("p"),w.innerHTML=Xe,pe=o(),j=a("p"),j.innerHTML=Be,ue=o(),m(V.$$.fragment),me=o(),R=a("p"),R.innerHTML=Ne,_e=o(),m(G.$$.fragment),ge=o(),n=a("div"),m(Z.$$.fragment),De=o(),O=a("p"),O.textContent=Ye,xe=o(),m(T.$$.fragment),Ee=o(),Q=a("div"),m(J.$$.fragment),Ve=o(),F=a("div"),m(W.$$.fragment),Te=o(),ee=a("p"),ee.innerHTML=ze,Fe=o(),M=a("div"),m(S.$$.fragment),Me=o(),te=a("p"),te.innerHTML=Ke,ke=o(),k=a("div"),m(H.$$.fragment),Ue=o(),se=a("p"),se.textContent=qe,Ie=o(),U=a("div"),m(X.$$.fragment),Le=o(),oe=a("p"),oe.textContent=Oe,je=o(),re=a("div"),m(B.$$.fragment),Re=o(),I=a("div"),m(N.$$.fragment),Ge=o(),ne=a("p"),ne.textContent=Qe,Ze=o(),L=a("div"),m(Y.$$.fragment),Je=o(),ie=a("p"),ie.textContent=et,We=o(),x=a("div"),m(z.$$.fragment),Se=o(),de=a("p"),de.textContent=tt,He=o(),ae=a("p"),ae.textContent=st,he=o(),m(K.$$.fragment),Ae=o(),le=a("p"),this.h()},l(e){const i=lt("svelte-u9bgzb",document.head);l=c(i,"META",{name:!0,content:!0}),i.forEach(s),D=r(e),u=c(e,"P",{}),P(u).forEach(s),v=r(e),_($.$$.fragment,e),f=r(e),w=c(e,"P",{"data-svelte-h":!0}),y(w)!=="svelte-1j1mv70"&&(w.innerHTML=Xe),pe=r(e),j=c(e,"P",{"data-svelte-h":!0}),y(j)!=="svelte-uyyo7l"&&(j.innerHTML=Be),ue=r(e),_(V.$$.fragment,e),me=r(e),R=c(e,"P",{"data-svelte-h":!0}),y(R)!=="svelte-1ln42ze"&&(R.innerHTML=Ne),_e=r(e),_(G.$$.fragment,e),ge=r(e),n=c(e,"DIV",{class:!0});var d=P(n);_(Z.$$.fragment,d),De=r(d),O=c(d,"P",{"data-svelte-h":!0}),y(O)!=="svelte-1fvfwaa"&&(O.textContent=Ye),xe=r(d),_(T.$$.fragment,d),Ee=r(d),Q=c(d,"DIV",{class:!0});var fe=P(Q);_(J.$$.fragment,fe),fe.forEach(s),Ve=r(d),F=c(d,"DIV",{class:!0});var ve=P(F);_(W.$$.fragment,ve),Te=r(ve),ee=c(ve,"P",{"data-svelte-h":!0}),y(ee)!=="svelte-189cc7b"&&(ee.innerHTML=ze),ve.forEach(s),Fe=r(d),M=c(d,"DIV",{class:!0});var ye=P(M);_(S.$$.fragment,ye),Me=r(ye),te=c(ye,"P",{"data-svelte-h":!0}),y(te)!=="svelte-1f366pl"&&(te.innerHTML=Ke),ye.forEach(s),ke=r(d),k=c(d,"DIV",{class:!0});var $e=P(k);_(H.$$.fragment,$e),Ue=r($e),se=c($e,"P",{"data-svelte-h":!0}),y(se)!=="svelte-14bnrb6"&&(se.textContent=qe),$e.forEach(s),Ie=r(d),U=c(d,"DIV",{class:!0});var Pe=P(U);_(X.$$.fragment,Pe),Le=r(Pe),oe=c(Pe,"P",{"data-svelte-h":!0}),y(oe)!=="svelte-1xwrf7t"&&(oe.textContent=Oe),Pe.forEach(s),je=r(d),re=c(d,"DIV",{class:!0});var ot=P(re);_(B.$$.fragment,ot),ot.forEach(s),Re=r(d),I=c(d,"DIV",{class:!0});var Ce=P(I);_(N.$$.fragment,Ce),Ge=r(Ce),ne=c(Ce,"P",{"data-svelte-h":!0}),y(ne)!=="svelte-1o77hl2"&&(ne.textContent=Qe),Ce.forEach(s),Ze=r(d),L=c(d,"DIV",{class:!0});var we=P(L);_(Y.$$.fragment,we),Je=r(we),ie=c(we,"P",{"data-svelte-h":!0}),y(ie)!=="svelte-1lxcwhv"&&(ie.textContent=et),we.forEach(s),We=r(d),x=c(d,"DIV",{class:!0});var ce=P(x);_(z.$$.fragment,ce),Se=r(ce),de=c(ce,"P",{"data-svelte-h":!0}),y(de)!=="svelte-1un5fcn"&&(de.textContent=tt),He=r(ce),ae=c(ce,"P",{"data-svelte-h":!0}),y(ae)!=="svelte-lbfkqr"&&(ae.textContent=st),ce.forEach(s),d.forEach(s),he=r(e),_(K.$$.fragment,e),Ae=r(e),le=c(e,"P",{}),P(le).forEach(s),this.h()},h(){C(l,"name","hf:doc:metadata"),C(l,"content",At),C(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(n,"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,i){t(document.head,l),p(e,D,i),p(e,u,i),p(e,v,i),g($,e,i),p(e,f,i),p(e,w,i),p(e,pe,i),p(e,j,i),p(e,ue,i),g(V,e,i),p(e,me,i),p(e,R,i),p(e,_e,i),g(G,e,i),p(e,ge,i),p(e,n,i),g(Z,n,null),t(n,De),t(n,O),t(n,xe),g(T,n,null),t(n,Ee),t(n,Q),g(J,Q,null),t(n,Ve),t(n,F),g(W,F,null),t(F,Te),t(F,ee),t(n,Fe),t(n,M),g(S,M,null),t(M,Me),t(M,te),t(n,ke),t(n,k),g(H,k,null),t(k,Ue),t(k,se),t(n,Ie),t(n,U),g(X,U,null),t(U,Le),t(U,oe),t(n,je),t(n,re),g(B,re,null),t(n,Re),t(n,I),g(N,I,null),t(I,Ge),t(I,ne),t(n,Ze),t(n,L),g(Y,L,null),t(L,Je),t(L,ie),t(n,We),t(n,x),g(z,x,null),t(x,Se),t(x,de),t(x,He),t(x,ae),p(e,he,i),g(K,e,i),p(e,Ae,i),p(e,le,i),be=!0},p(e,[i]){const d={};i&2&&(d.$$scope={dirty:i,ctx:e}),V.$set(d);const fe={};i&2&&(fe.$$scope={dirty:i,ctx:e}),T.$set(fe)},i(e){be||(h($.$$.fragment,e),h(V.$$.fragment,e),h(G.$$.fragment,e),h(Z.$$.fragment,e),h(T.$$.fragment,e),h(J.$$.fragment,e),h(W.$$.fragment,e),h(S.$$.fragment,e),h(H.$$.fragment,e),h(X.$$.fragment,e),h(B.$$.fragment,e),h(N.$$.fragment,e),h(Y.$$.fragment,e),h(z.$$.fragment,e),h(K.$$.fragment,e),be=!0)},o(e){A($.$$.fragment,e),A(V.$$.fragment,e),A(G.$$.fragment,e),A(Z.$$.fragment,e),A(T.$$.fragment,e),A(J.$$.fragment,e),A(W.$$.fragment,e),A(S.$$.fragment,e),A(H.$$.fragment,e),A(X.$$.fragment,e),A(B.$$.fragment,e),A(N.$$.fragment,e),A(Y.$$.fragment,e),A(z.$$.fragment,e),A(K.$$.fragment,e),be=!1},d(e){e&&(s(D),s(u),s(v),s(f),s(w),s(pe),s(j),s(ue),s(me),s(R),s(_e),s(ge),s(n),s(he),s(Ae),s(le)),s(l),b($,e),b(V,e),b(G,e),b(Z),b(T),b(J),b(W),b(S),b(H),b(X),b(B),b(N),b(Y),b(z),b(K,e)}}}const At='{"title":"Consistency Decoder","local":"consistency-decoder","sections":[{"title":"ConsistencyDecoderVAE","local":"diffusers.ConsistencyDecoderVAE","sections":[],"depth":2}],"depth":1}';function bt(q){return dt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class xt extends at{constructor(l){super(),ct(this,l,bt,ht,it,{})}}export{xt as component};
