import{s as dt,o as ct,n as lt}from"../chunks/scheduler.53228c21.js";import{S as ft,i as pt,e as d,s as o,c as u,h as ut,a as c,d as s,b as r,f as $,g as m,j as b,k as P,l as t,m as l,n as _,t as g,o as h,p as A}from"../chunks/index.100fac89.js";import{C as mt}from"../chunks/CopyLLMTxtMenu.b0ff86f3.js";import{D as w}from"../chunks/Docstring.db856a1e.js";import{C as _t}from"../chunks/CodeBlock.d30a6509.js";import{E as gt}from"../chunks/ExampleCodeBlock.3eb26ae1.js";import{H as at,E as ht}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.136ef3fd.js";function At(fe){let p,G="Examples:",D,v,y;return v=new _t({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMkMlMjBDb25zaXN0ZW5jeURlY29kZXJWQUUlMEElMEF2YWUlMjAlM0QlMjBDb25zaXN0ZW5jeURlY29kZXJWQUUuZnJvbV9wcmV0cmFpbmVkKCUyMm9wZW5haSUyRmNvbnNpc3RlbmN5LWRlY29kZXIlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjB2YWUlM0R2YWUlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpLnRvKCUyMmN1ZGElMjIpJTBBJTBBaW1hZ2UlMjAlM0QlMjBwaXBlKCUyMmhvcnNlJTIyJTJDJTIwZ2VuZXJhdG9yJTNEdG9yY2gubWFudWFsX3NlZWQoMCkpLmltYWdlcyU1QjAlNUQlMEFpbWFnZQ==",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;stable-diffusion-v1-5/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(){p=d("p"),p.textContent=G,D=o(),u(v.$$.fragment)},l(f){p=c(f,"P",{"data-svelte-h":!0}),b(p)!=="svelte-kvfsh7"&&(p.textContent=G),D=r(f),m(v.$$.fragment,f)},m(f,C){l(f,p,C),l(f,D,C),_(v,f,C),y=!0},p:lt,i(f){y||(g(v.$$.fragment,f),y=!0)},o(f){h(v.$$.fragment,f),y=!1},d(f){f&&(s(p),s(D)),A(v,f)}}}function bt(fe){let p,G,D,v,y,f,C,pe,I,Xe='Consistency decoder can be used to decode the latents from the denoising UNet in the <a href="/docs/diffusers/main/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>.',ue,j,Ne='The original codebase can be found at <a href="https://github.com/openai/consistencydecoder" rel="nofollow">openai/consistencydecoder</a>.',me,E,ze="<p>Inference is only supported for 2 iterations as of now.</p>",_e,S,Ye='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>.',ge,J,he,n,Z,we,O,Ke="The consistency decoder used with DALL-E 3.",Ee,V,Ve,Q,R,Me,M,W,Fe,ee,qe=`Disable sliced VAE decoding. If <code>enable_slicing</code> was previously enabled, this method will go back to computing
decoding in one step.`,Te,F,B,Le,te,Oe=`Disable tiled VAE decoding. If <code>enable_tiling</code> was previously enabled, this method will go back to computing
decoding in one step.`,ke,T,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.`,Ge,L,X,Ie,oe,et=`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,N,Se,k,z,Je,ne,tt="Sets the attention processor to use to compute attention.",Ze,U,Y,Re,ie,st="Disables custom attention processors and sets the default attention implementation.",We,x,K,Be,ae,ot="Encode a batch of images using a tiled encoder.",He,de,rt=`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.`,Ae,q,be,le,Pe;return y=new mt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new at({props:{title:"Consistency Decoder",local:"consistency-decoder",headingTag:"h1"}}),J=new at({props:{title:"ConsistencyDecoderVAE",local:"diffusers.ConsistencyDecoderVAE",headingTag:"h2"}}),Z=new w({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/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L52"}}),V=new gt({props:{anchor:"diffusers.ConsistencyDecoderVAE.example",$$slots:{default:[At]},$$scope:{ctx:fe}}}),R=new w({props:{name:"wrapper",anchor:"diffusers.ConsistencyDecoderVAE.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/accelerate_utils.py#L43"}}),W=new w({props:{name:"disable_slicing",anchor:"diffusers.ConsistencyDecoderVAE.disable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L196"}}),B=new w({props:{name:"disable_tiling",anchor:"diffusers.ConsistencyDecoderVAE.disable_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L180"}}),H=new w({props:{name:"enable_slicing",anchor:"diffusers.ConsistencyDecoderVAE.enable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L188"}}),X=new w({props:{name:"enable_tiling",anchor:"diffusers.ConsistencyDecoderVAE.enable_tiling",parameters:[{name:"use_tiling",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L171"}}),N=new w({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/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L430",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>
`}}),z=new w({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.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_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.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.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, 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.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_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.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.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, 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/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L229"}}),Y=new w({props:{name:"set_default_attn_processor",anchor:"diffusers.ConsistencyDecoderVAE.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L264"}}),K=new w({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/main/src/diffusers/models/autoencoders/consistency_decoder_vae.py#L375",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>
`}}),q=new ht({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/consistency_decoder_vae.md"}}),{c(){p=d("meta"),G=o(),D=d("p"),v=o(),u(y.$$.fragment),f=o(),u(C.$$.fragment),pe=o(),I=d("p"),I.innerHTML=Xe,ue=o(),j=d("p"),j.innerHTML=Ne,me=o(),E=d("blockquote"),E.innerHTML=ze,_e=o(),S=d("p"),S.innerHTML=Ye,ge=o(),u(J.$$.fragment),he=o(),n=d("div"),u(Z.$$.fragment),we=o(),O=d("p"),O.textContent=Ke,Ee=o(),u(V.$$.fragment),Ve=o(),Q=d("div"),u(R.$$.fragment),Me=o(),M=d("div"),u(W.$$.fragment),Fe=o(),ee=d("p"),ee.innerHTML=qe,Te=o(),F=d("div"),u(B.$$.fragment),Le=o(),te=d("p"),te.innerHTML=Oe,ke=o(),T=d("div"),u(H.$$.fragment),Ue=o(),se=d("p"),se.textContent=Qe,Ge=o(),L=d("div"),u(X.$$.fragment),Ie=o(),oe=d("p"),oe.textContent=et,je=o(),re=d("div"),u(N.$$.fragment),Se=o(),k=d("div"),u(z.$$.fragment),Je=o(),ne=d("p"),ne.textContent=tt,Ze=o(),U=d("div"),u(Y.$$.fragment),Re=o(),ie=d("p"),ie.textContent=st,We=o(),x=d("div"),u(K.$$.fragment),Be=o(),ae=d("p"),ae.textContent=ot,He=o(),de=d("p"),de.textContent=rt,Ae=o(),u(q.$$.fragment),be=o(),le=d("p"),this.h()},l(e){const i=ut("svelte-u9bgzb",document.head);p=c(i,"META",{name:!0,content:!0}),i.forEach(s),G=r(e),D=c(e,"P",{}),$(D).forEach(s),v=r(e),m(y.$$.fragment,e),f=r(e),m(C.$$.fragment,e),pe=r(e),I=c(e,"P",{"data-svelte-h":!0}),b(I)!=="svelte-1ttox57"&&(I.innerHTML=Xe),ue=r(e),j=c(e,"P",{"data-svelte-h":!0}),b(j)!=="svelte-uyyo7l"&&(j.innerHTML=Ne),me=r(e),E=c(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),b(E)!=="svelte-1mg82lp"&&(E.innerHTML=ze),_e=r(e),S=c(e,"P",{"data-svelte-h":!0}),b(S)!=="svelte-1ln42ze"&&(S.innerHTML=Ye),ge=r(e),m(J.$$.fragment,e),he=r(e),n=c(e,"DIV",{class:!0});var a=$(n);m(Z.$$.fragment,a),we=r(a),O=c(a,"P",{"data-svelte-h":!0}),b(O)!=="svelte-1fvfwaa"&&(O.textContent=Ke),Ee=r(a),m(V.$$.fragment,a),Ve=r(a),Q=c(a,"DIV",{class:!0});var nt=$(Q);m(R.$$.fragment,nt),nt.forEach(s),Me=r(a),M=c(a,"DIV",{class:!0});var ve=$(M);m(W.$$.fragment,ve),Fe=r(ve),ee=c(ve,"P",{"data-svelte-h":!0}),b(ee)!=="svelte-189cc7b"&&(ee.innerHTML=qe),ve.forEach(s),Te=r(a),F=c(a,"DIV",{class:!0});var ye=$(F);m(B.$$.fragment,ye),Le=r(ye),te=c(ye,"P",{"data-svelte-h":!0}),b(te)!=="svelte-1f366pl"&&(te.innerHTML=Oe),ye.forEach(s),ke=r(a),T=c(a,"DIV",{class:!0});var $e=$(T);m(H.$$.fragment,$e),Ue=r($e),se=c($e,"P",{"data-svelte-h":!0}),b(se)!=="svelte-14bnrb6"&&(se.textContent=Qe),$e.forEach(s),Ge=r(a),L=c(a,"DIV",{class:!0});var Ce=$(L);m(X.$$.fragment,Ce),Ie=r(Ce),oe=c(Ce,"P",{"data-svelte-h":!0}),b(oe)!=="svelte-1xwrf7t"&&(oe.textContent=et),Ce.forEach(s),je=r(a),re=c(a,"DIV",{class:!0});var it=$(re);m(N.$$.fragment,it),it.forEach(s),Se=r(a),k=c(a,"DIV",{class:!0});var De=$(k);m(z.$$.fragment,De),Je=r(De),ne=c(De,"P",{"data-svelte-h":!0}),b(ne)!=="svelte-1o77hl2"&&(ne.textContent=tt),De.forEach(s),Ze=r(a),U=c(a,"DIV",{class:!0});var xe=$(U);m(Y.$$.fragment,xe),Re=r(xe),ie=c(xe,"P",{"data-svelte-h":!0}),b(ie)!=="svelte-1lxcwhv"&&(ie.textContent=st),xe.forEach(s),We=r(a),x=c(a,"DIV",{class:!0});var ce=$(x);m(K.$$.fragment,ce),Be=r(ce),ae=c(ce,"P",{"data-svelte-h":!0}),b(ae)!=="svelte-1un5fcn"&&(ae.textContent=ot),He=r(ce),de=c(ce,"P",{"data-svelte-h":!0}),b(de)!=="svelte-lbfkqr"&&(de.textContent=rt),ce.forEach(s),a.forEach(s),Ae=r(e),m(q.$$.fragment,e),be=r(e),le=c(e,"P",{}),$(le).forEach(s),this.h()},h(){P(p,"name","hf:doc:metadata"),P(p,"content",Pt),P(E,"class","warning"),P(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(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,p),l(e,G,i),l(e,D,i),l(e,v,i),_(y,e,i),l(e,f,i),_(C,e,i),l(e,pe,i),l(e,I,i),l(e,ue,i),l(e,j,i),l(e,me,i),l(e,E,i),l(e,_e,i),l(e,S,i),l(e,ge,i),_(J,e,i),l(e,he,i),l(e,n,i),_(Z,n,null),t(n,we),t(n,O),t(n,Ee),_(V,n,null),t(n,Ve),t(n,Q),_(R,Q,null),t(n,Me),t(n,M),_(W,M,null),t(M,Fe),t(M,ee),t(n,Te),t(n,F),_(B,F,null),t(F,Le),t(F,te),t(n,ke),t(n,T),_(H,T,null),t(T,Ue),t(T,se),t(n,Ge),t(n,L),_(X,L,null),t(L,Ie),t(L,oe),t(n,je),t(n,re),_(N,re,null),t(n,Se),t(n,k),_(z,k,null),t(k,Je),t(k,ne),t(n,Ze),t(n,U),_(Y,U,null),t(U,Re),t(U,ie),t(n,We),t(n,x),_(K,x,null),t(x,Be),t(x,ae),t(x,He),t(x,de),l(e,Ae,i),_(q,e,i),l(e,be,i),l(e,le,i),Pe=!0},p(e,[i]){const a={};i&2&&(a.$$scope={dirty:i,ctx:e}),V.$set(a)},i(e){Pe||(g(y.$$.fragment,e),g(C.$$.fragment,e),g(J.$$.fragment,e),g(Z.$$.fragment,e),g(V.$$.fragment,e),g(R.$$.fragment,e),g(W.$$.fragment,e),g(B.$$.fragment,e),g(H.$$.fragment,e),g(X.$$.fragment,e),g(N.$$.fragment,e),g(z.$$.fragment,e),g(Y.$$.fragment,e),g(K.$$.fragment,e),g(q.$$.fragment,e),Pe=!0)},o(e){h(y.$$.fragment,e),h(C.$$.fragment,e),h(J.$$.fragment,e),h(Z.$$.fragment,e),h(V.$$.fragment,e),h(R.$$.fragment,e),h(W.$$.fragment,e),h(B.$$.fragment,e),h(H.$$.fragment,e),h(X.$$.fragment,e),h(N.$$.fragment,e),h(z.$$.fragment,e),h(Y.$$.fragment,e),h(K.$$.fragment,e),h(q.$$.fragment,e),Pe=!1},d(e){e&&(s(G),s(D),s(v),s(f),s(pe),s(I),s(ue),s(j),s(me),s(E),s(_e),s(S),s(ge),s(he),s(n),s(Ae),s(be),s(le)),s(p),A(y,e),A(C,e),A(J,e),A(Z),A(V),A(R),A(W),A(B),A(H),A(X),A(N),A(z),A(Y),A(K),A(q,e)}}}const Pt='{"title":"Consistency Decoder","local":"consistency-decoder","sections":[{"title":"ConsistencyDecoderVAE","local":"diffusers.ConsistencyDecoderVAE","sections":[],"depth":2}],"depth":1}';function vt(fe){return ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Vt extends ft{constructor(p){super(),pt(this,p,vt,bt,dt,{})}}export{Vt as component};
