import{s as At,n as Dt,o as Kt}from"../chunks/scheduler.53228c21.js";import{S as Ct,i as Mt,e as a,s as r,c as u,h as Et,a as i,d as t,b as s,f as v,g as m,j as b,k as _,l as o,m as l,n as f,t as p,o as g,p as h}from"../chunks/index.100fac89.js";import{C as Ot}from"../chunks/CopyLLMTxtMenu.20a72e0e.js";import{D as $}from"../chunks/Docstring.49101787.js";import{C as It}from"../chunks/CodeBlock.d30a6509.js";import{H as _e,E as Vt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.4d82655d.js";function zt(it){let L,ve,he,$e,K,xe,C,we,M,dt='The variational autoencoder (VAE) model with KL loss was introduced in <a href="https://huggingface.co/papers/1312.6114v11" rel="nofollow">Auto-Encoding Variational Bayes</a> by Diederik P. Kingma and Max Welling. The model is used in 🤗 Diffusers to encode images into latents and to decode latent representations into images.',ye,E,lt="The abstract from the paper is:",Le,O,ct="<em>How can we perform efficient inference and learning in directed probabilistic models, in the presence of continuous latent variables with intractable posterior distributions, and large datasets? We introduce a stochastic variational inference and learning algorithm that scales to large datasets and, under some mild differentiability conditions, even works in the intractable case. Our contributions are two-fold. First, we show that a reparameterization of the variational lower bound yields a lower bound estimator that can be straightforwardly optimized using standard stochastic gradient methods. Second, we show that for i.i.d. datasets with continuous latent variables per datapoint, posterior inference can be made especially efficient by fitting an approximate inference model (also called a recognition model) to the intractable posterior using the proposed lower bound estimator. Theoretical advantages are reflected in experimental results.</em>",Te,I,ke,V,ut=`By default the <a href="/docs/diffusers/main/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a> should be loaded with <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a>, but it can also be loaded
from the original format using <code>FromOriginalModelMixin.from_single_file</code> as follows:`,Ae,z,De,P,Ke,d,q,He,ee,mt="A VAE model with KL loss for encoding images into latents and decoding latent representations into images.",je,te,ft=`This model inherits from <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin">ModelMixin</a>. Check the superclass documentation for it’s generic methods implemented
for all models (such as downloading or saving).`,Ue,oe,J,Ze,ne,W,Ge,re,H,Ne,x,j,Fe,se,pt=`Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value)
are fused. For cross-attention modules, key and value projection matrices are fused.`,Se,U,gt="<p>&gt; This API is 🧪 experimental.</p>",Ye,A,Z,Qe,ae,ht="Disables custom attention processors and sets the default attention implementation.",Be,D,G,Re,ie,bt="Decode a batch of images using a tiled decoder.",Xe,w,N,et,de,_t="Encode a batch of images using a tiled encoder.",tt,le,vt=`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.`,ot,y,F,nt,ce,$t="Disables the fused QKV projection if enabled.",rt,S,xt="<p>&gt; This API is 🧪 experimental.</p>",Ce,Y,Me,T,Q,st,ue,wt="Output of AutoencoderKL encoding method.",Ee,B,Oe,k,R,at,me,yt="Output of decoding method.",Ie,X,Ve,be,ze;return K=new Ot({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new _e({props:{title:"AutoencoderKL",local:"autoencoderkl",headingTag:"h1"}}),I=new _e({props:{title:"Loading from the original format",local:"loading-from-the-original-format",headingTag:"h2"}}),z=new It({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9lbmNvZGVyS0wlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc3RhYmlsaXR5YWklMkZzZC12YWUtZnQtbXNlLW9yaWdpbmFsJTJGYmxvYiUyRm1haW4lMkZ2YWUtZnQtbXNlLTg0MDAwMC1lbWEtcHJ1bmVkLnNhZmV0ZW5zb3JzJTIyJTIwJTIwJTIzJTIwY2FuJTIwYWxzbyUyMGJlJTIwYSUyMGxvY2FsJTIwZmlsZSUwQW1vZGVsJTIwJTNEJTIwQXV0b2VuY29kZXJLTC5mcm9tX3NpbmdsZV9maWxlKHVybCk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoencoderKL

url = <span class="hljs-string">&quot;https://huggingface.co/stabilityai/sd-vae-ft-mse-original/blob/main/vae-ft-mse-840000-ema-pruned.safetensors&quot;</span>  <span class="hljs-comment"># can also be a local file</span>
model = AutoencoderKL.from_single_file(url)`,wrap:!1}}),P=new _e({props:{title:"AutoencoderKL",local:"diffusers.AutoencoderKL",headingTag:"h2"}}),q=new $({props:{name:"class diffusers.AutoencoderKL",anchor:"diffusers.AutoencoderKL",parameters:[{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 3"},{name:"down_block_types",val:": typing.Tuple[str, ...] = ('DownEncoderBlock2D',)"},{name:"up_block_types",val:": typing.Tuple[str, ...] = ('UpDecoderBlock2D',)"},{name:"block_out_channels",val:": typing.Tuple[int, ...] = (64,)"},{name:"layers_per_block",val:": int = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"latent_channels",val:": int = 4"},{name:"norm_num_groups",val:": int = 32"},{name:"sample_size",val:": int = 32"},{name:"scaling_factor",val:": float = 0.18215"},{name:"shift_factor",val:": typing.Optional[float] = None"},{name:"latents_mean",val:": typing.Optional[typing.Tuple[float]] = None"},{name:"latents_std",val:": typing.Optional[typing.Tuple[float]] = None"},{name:"force_upcast",val:": bool = True"},{name:"use_quant_conv",val:": bool = True"},{name:"use_post_quant_conv",val:": bool = True"},{name:"mid_block_add_attention",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.in_channels",description:"<strong>in_channels</strong> (int, <em>optional</em>, defaults to 3) &#x2014; Number of channels in the input image.",name:"in_channels"},{anchor:"diffusers.AutoencoderKL.out_channels",description:"<strong>out_channels</strong> (int,  <em>optional</em>, defaults to 3) &#x2014; Number of channels in the output.",name:"out_channels"},{anchor:"diffusers.AutoencoderKL.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;DownEncoderBlock2D&quot;,)</code>) &#x2014;
Tuple of downsample block types.`,name:"down_block_types"},{anchor:"diffusers.AutoencoderKL.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;UpDecoderBlock2D&quot;,)</code>) &#x2014;
Tuple of upsample block types.`,name:"up_block_types"},{anchor:"diffusers.AutoencoderKL.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to <code>(64,)</code>) &#x2014;
Tuple of block output channels.`,name:"block_out_channels"},{anchor:"diffusers.AutoencoderKL.act_fn",description:"<strong>act_fn</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;silu&quot;</code>) &#x2014; The activation function to use.",name:"act_fn"},{anchor:"diffusers.AutoencoderKL.latent_channels",description:"<strong>latent_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; Number of channels in the latent space.",name:"latent_channels"},{anchor:"diffusers.AutoencoderKL.sample_size",description:"<strong>sample_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>32</code>) &#x2014; Sample input size.",name:"sample_size"},{anchor:"diffusers.AutoencoderKL.scaling_factor",description:`<strong>scaling_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.18215) &#x2014;
The component-wise standard deviation of the trained latent space computed using the first batch of the
training set. This is used to scale the latent space to have unit variance when training the diffusion
model. The latents are scaled with the formula <code>z = z * scaling_factor</code> before being passed to the
diffusion model. When decoding, the latents are scaled back to the original scale with the formula: <code>z = 1 / scaling_factor * z</code>. For more details, refer to sections 4.3.2 and D.1 of the <a href="https://huggingface.co/papers/2112.10752" rel="nofollow">High-Resolution Image
Synthesis with Latent Diffusion Models</a> paper.`,name:"scaling_factor"},{anchor:"diffusers.AutoencoderKL.force_upcast",description:`<strong>force_upcast</strong> (<code>bool</code>, <em>optional</em>, default to <code>True</code>) &#x2014;
If enabled it will force the VAE to run in float32 for high image resolution pipelines, such as SD-XL. VAE
can be fine-tuned / trained to a lower range without losing too much precision in which case <code>force_upcast</code>
can be set to <code>False</code> - see: <a href="https://huggingface.co/madebyollin/sdxl-vae-fp16-fix" rel="nofollow">https://huggingface.co/madebyollin/sdxl-vae-fp16-fix</a>`,name:"force_upcast"},{anchor:"diffusers.AutoencoderKL.mid_block_add_attention",description:`<strong>mid_block_add_attention</strong> (<code>bool</code>, <em>optional</em>, default to <code>True</code>) &#x2014;
If enabled, the mid_block of the Encoder and Decoder will have attention blocks. If set to false, the
mid_block will only have resnet blocks`,name:"mid_block_add_attention"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L38"}}),J=new $({props:{name:"wrapper",anchor:"diffusers.AutoencoderKL.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 $({props:{name:"wrapper",anchor:"diffusers.AutoencoderKL.encode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/accelerate_utils.py#L43"}}),H=new $({props:{name:"forward",anchor:"diffusers.AutoencoderKL.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.AutoencoderKL.forward.sample",description:"<strong>sample</strong> (<code>torch.Tensor</code>) &#x2014; Input sample.",name:"sample"},{anchor:"diffusers.AutoencoderKL.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.AutoencoderKL.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"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L415"}}),j=new $({props:{name:"fuse_qkv_projections",anchor:"diffusers.AutoencoderKL.fuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L444"}}),Z=new $({props:{name:"set_default_attn_processor",anchor:"diffusers.AutoencoderKL.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L145"}}),G=new $({props:{name:"tiled_decode",anchor:"diffusers.AutoencoderKL.tiled_decode",parameters:[{name:"z",val:": Tensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_decode.z",description:"<strong>z</strong> (<code>torch.Tensor</code>) &#x2014; Input batch of latent vectors.",name:"z"},{anchor:"diffusers.AutoencoderKL.tiled_decode.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>~models.vae.DecoderOutput</code> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L366",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>~models.vae.DecoderOutput</code> or <code>tuple</code></p>
`}}),N=new $({props:{name:"tiled_encode",anchor:"diffusers.AutoencoderKL.tiled_encode",parameters:[{name:"x",val:": Tensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_encode.x",description:"<strong>x</strong> (<code>torch.Tensor</code>) &#x2014; Input batch of images.",name:"x"},{anchor:"diffusers.AutoencoderKL.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>~models.autoencoder_kl.AutoencoderKLOutput</code> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L304",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>~models.autoencoder_kl.AutoencoderKLOutput</code> or <code>tuple</code></p>
`}}),F=new $({props:{name:"unfuse_qkv_projections",anchor:"diffusers.AutoencoderKL.unfuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L466"}}),Y=new _e({props:{title:"AutoencoderKLOutput",local:"diffusers.models.modeling_outputs.AutoencoderKLOutput",headingTag:"h2"}}),Q=new $({props:{name:"class diffusers.models.modeling_outputs.AutoencoderKLOutput",anchor:"diffusers.models.modeling_outputs.AutoencoderKLOutput",parameters:[{name:"latent_dist",val:": DiagonalGaussianDistribution"}],parametersDescription:[{anchor:"diffusers.models.modeling_outputs.AutoencoderKLOutput.latent_dist",description:`<strong>latent_dist</strong> (<code>DiagonalGaussianDistribution</code>) &#x2014;
Encoded outputs of <code>Encoder</code> represented as the mean and logvar of <code>DiagonalGaussianDistribution</code>.
<code>DiagonalGaussianDistribution</code> allows for sampling latents from the distribution.`,name:"latent_dist"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_outputs.py#L7"}}),B=new _e({props:{title:"DecoderOutput",local:"diffusers.models.autoencoders.vae.DecoderOutput",headingTag:"h2"}}),R=new $({props:{name:"class diffusers.models.autoencoders.vae.DecoderOutput",anchor:"diffusers.models.autoencoders.vae.DecoderOutput",parameters:[{name:"sample",val:": Tensor"},{name:"commit_loss",val:": typing.Optional[torch.FloatTensor] = None"}],parametersDescription:[{anchor:"diffusers.models.autoencoders.vae.DecoderOutput.sample",description:`<strong>sample</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
The decoded output sample from the last layer of the model.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/vae.py#L47"}}),X=new Vt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/autoencoderkl.md"}}),{c(){L=a("meta"),ve=r(),he=a("p"),$e=r(),u(K.$$.fragment),xe=r(),u(C.$$.fragment),we=r(),M=a("p"),M.innerHTML=dt,ye=r(),E=a("p"),E.textContent=lt,Le=r(),O=a("p"),O.innerHTML=ct,Te=r(),u(I.$$.fragment),ke=r(),V=a("p"),V.innerHTML=ut,Ae=r(),u(z.$$.fragment),De=r(),u(P.$$.fragment),Ke=r(),d=a("div"),u(q.$$.fragment),He=r(),ee=a("p"),ee.textContent=mt,je=r(),te=a("p"),te.innerHTML=ft,Ue=r(),oe=a("div"),u(J.$$.fragment),Ze=r(),ne=a("div"),u(W.$$.fragment),Ge=r(),re=a("div"),u(H.$$.fragment),Ne=r(),x=a("div"),u(j.$$.fragment),Fe=r(),se=a("p"),se.textContent=pt,Se=r(),U=a("blockquote"),U.innerHTML=gt,Ye=r(),A=a("div"),u(Z.$$.fragment),Qe=r(),ae=a("p"),ae.textContent=ht,Be=r(),D=a("div"),u(G.$$.fragment),Re=r(),ie=a("p"),ie.textContent=bt,Xe=r(),w=a("div"),u(N.$$.fragment),et=r(),de=a("p"),de.textContent=_t,tt=r(),le=a("p"),le.textContent=vt,ot=r(),y=a("div"),u(F.$$.fragment),nt=r(),ce=a("p"),ce.textContent=$t,rt=r(),S=a("blockquote"),S.innerHTML=xt,Ce=r(),u(Y.$$.fragment),Me=r(),T=a("div"),u(Q.$$.fragment),st=r(),ue=a("p"),ue.textContent=wt,Ee=r(),u(B.$$.fragment),Oe=r(),k=a("div"),u(R.$$.fragment),at=r(),me=a("p"),me.textContent=yt,Ie=r(),u(X.$$.fragment),Ve=r(),be=a("p"),this.h()},l(e){const n=Et("svelte-u9bgzb",document.head);L=i(n,"META",{name:!0,content:!0}),n.forEach(t),ve=s(e),he=i(e,"P",{}),v(he).forEach(t),$e=s(e),m(K.$$.fragment,e),xe=s(e),m(C.$$.fragment,e),we=s(e),M=i(e,"P",{"data-svelte-h":!0}),b(M)!=="svelte-wvy0bs"&&(M.innerHTML=dt),ye=s(e),E=i(e,"P",{"data-svelte-h":!0}),b(E)!=="svelte-1cwsb16"&&(E.textContent=lt),Le=s(e),O=i(e,"P",{"data-svelte-h":!0}),b(O)!=="svelte-1e786c4"&&(O.innerHTML=ct),Te=s(e),m(I.$$.fragment,e),ke=s(e),V=i(e,"P",{"data-svelte-h":!0}),b(V)!=="svelte-11w0rji"&&(V.innerHTML=ut),Ae=s(e),m(z.$$.fragment,e),De=s(e),m(P.$$.fragment,e),Ke=s(e),d=i(e,"DIV",{class:!0});var c=v(d);m(q.$$.fragment,c),He=s(c),ee=i(c,"P",{"data-svelte-h":!0}),b(ee)!=="svelte-1nia2sn"&&(ee.textContent=mt),je=s(c),te=i(c,"P",{"data-svelte-h":!0}),b(te)!=="svelte-1hyu2ru"&&(te.innerHTML=ft),Ue=s(c),oe=i(c,"DIV",{class:!0});var Lt=v(oe);m(J.$$.fragment,Lt),Lt.forEach(t),Ze=s(c),ne=i(c,"DIV",{class:!0});var Tt=v(ne);m(W.$$.fragment,Tt),Tt.forEach(t),Ge=s(c),re=i(c,"DIV",{class:!0});var kt=v(re);m(H.$$.fragment,kt),kt.forEach(t),Ne=s(c),x=i(c,"DIV",{class:!0});var fe=v(x);m(j.$$.fragment,fe),Fe=s(fe),se=i(fe,"P",{"data-svelte-h":!0}),b(se)!=="svelte-1254b9i"&&(se.textContent=pt),Se=s(fe),U=i(fe,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),b(U)!=="svelte-6y4o4y"&&(U.innerHTML=gt),fe.forEach(t),Ye=s(c),A=i(c,"DIV",{class:!0});var Pe=v(A);m(Z.$$.fragment,Pe),Qe=s(Pe),ae=i(Pe,"P",{"data-svelte-h":!0}),b(ae)!=="svelte-1lxcwhv"&&(ae.textContent=ht),Pe.forEach(t),Be=s(c),D=i(c,"DIV",{class:!0});var qe=v(D);m(G.$$.fragment,qe),Re=s(qe),ie=i(qe,"P",{"data-svelte-h":!0}),b(ie)!=="svelte-1vrxp2b"&&(ie.textContent=bt),qe.forEach(t),Xe=s(c),w=i(c,"DIV",{class:!0});var pe=v(w);m(N.$$.fragment,pe),et=s(pe),de=i(pe,"P",{"data-svelte-h":!0}),b(de)!=="svelte-1un5fcn"&&(de.textContent=_t),tt=s(pe),le=i(pe,"P",{"data-svelte-h":!0}),b(le)!=="svelte-lbfkqr"&&(le.textContent=vt),pe.forEach(t),ot=s(c),y=i(c,"DIV",{class:!0});var ge=v(y);m(F.$$.fragment,ge),nt=s(ge),ce=i(ge,"P",{"data-svelte-h":!0}),b(ce)!=="svelte-1vhtc74"&&(ce.textContent=$t),rt=s(ge),S=i(ge,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),b(S)!=="svelte-6y4o4y"&&(S.innerHTML=xt),ge.forEach(t),c.forEach(t),Ce=s(e),m(Y.$$.fragment,e),Me=s(e),T=i(e,"DIV",{class:!0});var Je=v(T);m(Q.$$.fragment,Je),st=s(Je),ue=i(Je,"P",{"data-svelte-h":!0}),b(ue)!=="svelte-1vsc7ag"&&(ue.textContent=wt),Je.forEach(t),Ee=s(e),m(B.$$.fragment,e),Oe=s(e),k=i(e,"DIV",{class:!0});var We=v(k);m(R.$$.fragment,We),at=s(We),me=i(We,"P",{"data-svelte-h":!0}),b(me)!=="svelte-18u8upa"&&(me.textContent=yt),We.forEach(t),Ie=s(e),m(X.$$.fragment,e),Ve=s(e),be=i(e,"P",{}),v(be).forEach(t),this.h()},h(){_(L,"name","hf:doc:metadata"),_(L,"content",Pt),_(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(U,"class","warning"),_(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(S,"class","warning"),_(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(k,"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){o(document.head,L),l(e,ve,n),l(e,he,n),l(e,$e,n),f(K,e,n),l(e,xe,n),f(C,e,n),l(e,we,n),l(e,M,n),l(e,ye,n),l(e,E,n),l(e,Le,n),l(e,O,n),l(e,Te,n),f(I,e,n),l(e,ke,n),l(e,V,n),l(e,Ae,n),f(z,e,n),l(e,De,n),f(P,e,n),l(e,Ke,n),l(e,d,n),f(q,d,null),o(d,He),o(d,ee),o(d,je),o(d,te),o(d,Ue),o(d,oe),f(J,oe,null),o(d,Ze),o(d,ne),f(W,ne,null),o(d,Ge),o(d,re),f(H,re,null),o(d,Ne),o(d,x),f(j,x,null),o(x,Fe),o(x,se),o(x,Se),o(x,U),o(d,Ye),o(d,A),f(Z,A,null),o(A,Qe),o(A,ae),o(d,Be),o(d,D),f(G,D,null),o(D,Re),o(D,ie),o(d,Xe),o(d,w),f(N,w,null),o(w,et),o(w,de),o(w,tt),o(w,le),o(d,ot),o(d,y),f(F,y,null),o(y,nt),o(y,ce),o(y,rt),o(y,S),l(e,Ce,n),f(Y,e,n),l(e,Me,n),l(e,T,n),f(Q,T,null),o(T,st),o(T,ue),l(e,Ee,n),f(B,e,n),l(e,Oe,n),l(e,k,n),f(R,k,null),o(k,at),o(k,me),l(e,Ie,n),f(X,e,n),l(e,Ve,n),l(e,be,n),ze=!0},p:Dt,i(e){ze||(p(K.$$.fragment,e),p(C.$$.fragment,e),p(I.$$.fragment,e),p(z.$$.fragment,e),p(P.$$.fragment,e),p(q.$$.fragment,e),p(J.$$.fragment,e),p(W.$$.fragment,e),p(H.$$.fragment,e),p(j.$$.fragment,e),p(Z.$$.fragment,e),p(G.$$.fragment,e),p(N.$$.fragment,e),p(F.$$.fragment,e),p(Y.$$.fragment,e),p(Q.$$.fragment,e),p(B.$$.fragment,e),p(R.$$.fragment,e),p(X.$$.fragment,e),ze=!0)},o(e){g(K.$$.fragment,e),g(C.$$.fragment,e),g(I.$$.fragment,e),g(z.$$.fragment,e),g(P.$$.fragment,e),g(q.$$.fragment,e),g(J.$$.fragment,e),g(W.$$.fragment,e),g(H.$$.fragment,e),g(j.$$.fragment,e),g(Z.$$.fragment,e),g(G.$$.fragment,e),g(N.$$.fragment,e),g(F.$$.fragment,e),g(Y.$$.fragment,e),g(Q.$$.fragment,e),g(B.$$.fragment,e),g(R.$$.fragment,e),g(X.$$.fragment,e),ze=!1},d(e){e&&(t(ve),t(he),t($e),t(xe),t(we),t(M),t(ye),t(E),t(Le),t(O),t(Te),t(ke),t(V),t(Ae),t(De),t(Ke),t(d),t(Ce),t(Me),t(T),t(Ee),t(Oe),t(k),t(Ie),t(Ve),t(be)),t(L),h(K,e),h(C,e),h(I,e),h(z,e),h(P,e),h(q),h(J),h(W),h(H),h(j),h(Z),h(G),h(N),h(F),h(Y,e),h(Q),h(B,e),h(R),h(X,e)}}}const Pt='{"title":"AutoencoderKL","local":"autoencoderkl","sections":[{"title":"Loading from the original format","local":"loading-from-the-original-format","sections":[],"depth":2},{"title":"AutoencoderKL","local":"diffusers.AutoencoderKL","sections":[],"depth":2},{"title":"AutoencoderKLOutput","local":"diffusers.models.modeling_outputs.AutoencoderKLOutput","sections":[],"depth":2},{"title":"DecoderOutput","local":"diffusers.models.autoencoders.vae.DecoderOutput","sections":[],"depth":2}],"depth":1}';function qt(it){return Kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Gt extends Ct{constructor(L){super(),Mt(this,L,qt,zt,At,{})}}export{Gt as component};
