import{s as an,o as ln,n as sn}from"../chunks/scheduler.8c3d61f6.js";import{S as dn,i as cn,g as s,s as o,r as u,A as un,h as a,f as r,c as n,j as v,u as f,x as _,k as $,y as t,a as d,v as p,d as m,t as g,w as h}from"../chunks/index.589a98e8.js";import{T as rn}from"../chunks/Tip.42aa8582.js";import{D as x}from"../chunks/Docstring.27406313.js";import{C as fn}from"../chunks/CodeBlock.36627b28.js";import{H as U,E as pn}from"../chunks/EditOnGithub.e5a8d9cb.js";function mn(De){let b,D="This API is 🧪 experimental.";return{c(){b=s("p"),b.textContent=D},l(w){b=a(w,"P",{"data-svelte-h":!0}),_(b)!=="svelte-89q1io"&&(b.textContent=D)},m(w,M){d(w,b,M)},p:sn,d(w){w&&r(b)}}}function gn(De){let b,D="This API is 🧪 experimental.";return{c(){b=s("p"),b.textContent=D},l(w){b=a(w,"P",{"data-svelte-h":!0}),_(b)!=="svelte-89q1io"&&(b.textContent=D)},m(w,M){d(w,b,M)},p:sn,d(w){w&&r(b)}}}function hn(De){let b,D,w,M,G,it,Z,ko='The variational autoencoder (VAE) model with KL loss was introduced in <a href="https://arxiv.org/abs/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.',dt,S,Ko="The abstract from the paper is:",ct,R,Co="<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>",ut,Y,ft,B,Fo=`By default the <a href="/docs/diffusers/pr_8404/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a> should be loaded with <a href="/docs/diffusers/pr_8404/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:`,pt,Q,mt,X,gt,i,ee,Ht,ke,Eo="A VAE model with KL loss for encoding images into latents and decoding latent representations into images.",Jt,Ke,Mo=`This model inherits from <a href="/docs/diffusers/pr_8404/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).`,Wt,Ce,te,qt,Fe,oe,Nt,O,ne,Ut,Ee,Oo=`Disable sliced VAE decoding. If <code>enable_slicing</code> was previously enabled, this method will go back to computing
decoding in one step.`,Gt,I,re,Zt,Me,Io=`Disable tiled VAE decoding. If <code>enable_tiling</code> was previously enabled, this method will go back to computing
decoding in one step.`,St,V,se,Rt,Oe,Vo=`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.`,Yt,z,ae,Bt,Ie,zo=`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.`,Qt,Ve,le,Xt,k,ie,eo,ze,Po=`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.`,to,P,oo,j,de,no,Pe,jo="Sets the attention processor to use to compute attention.",ro,H,ce,so,je,Ho="Disables custom attention processors and sets the default attention implementation.",ao,J,ue,lo,He,Jo="Decode a batch of images using a tiled decoder.",io,K,fe,co,Je,Wo="Encode a batch of images using a tiled encoder.",uo,We,qo=`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.`,fo,C,pe,po,qe,No="Disables the fused QKV projection if enabled.",mo,W,ht,me,_t,F,ge,go,Ne,Uo="Output of AutoencoderKL encoding method.",bt,he,vt,E,_e,ho,Ue,Go="Output of decoding method.",$t,be,xt,L,ve,_o,Ge,Zo="Flax implementation of a VAE model with KL loss for decoding latent representations.",bo,Ze,So=`This model inherits from <a href="/docs/diffusers/pr_8404/en/api/models/overview#diffusers.FlaxModelMixin">FlaxModelMixin</a>. Check the superclass documentation for it’s generic methods
implemented for all models (such as downloading or saving).`,vo,Se,Ro=`This model is a Flax Linen <a href="https://flax.readthedocs.io/en/latest/flax.linen.html#module" rel="nofollow">flax.linen.Module</a>
subclass. Use it as a regular Flax Linen module and refer to the Flax documentation for all matter related to its
general usage and behavior.`,$o,Re,Yo="Inherent JAX features such as the following are supported:",xo,Ye,Bo='<li><a href="https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit" rel="nofollow">Just-In-Time (JIT) compilation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation" rel="nofollow">Automatic Differentiation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap" rel="nofollow">Vectorization</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap" rel="nofollow">Parallelization</a></li>',wt,$e,Lt,T,xe,wo,Be,Qo="Output of AutoencoderKL encoding method.",Lo,q,we,yo,Qe,Xo="“Returns a new object replacing the specified fields with new values.",yt,Le,Tt,A,ye,To,Xe,en="Output of decoding method.",Ao,N,Te,Do,et,tn="“Returns a new object replacing the specified fields with new values.",At,Ae,Dt,at,kt;return G=new U({props:{title:"AutoencoderKL",local:"autoencoderkl",headingTag:"h1"}}),Y=new U({props:{title:"Loading from the original format",local:"loading-from-the-original-format",headingTag:"h2"}}),Q=new fn({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}}),X=new U({props:{title:"AutoencoderKL",local:"diffusers.AutoencoderKL",headingTag:"h2"}}),ee=new x({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:": Tuple = ('DownEncoderBlock2D',)"},{name:"up_block_types",val:": Tuple = ('UpDecoderBlock2D',)"},{name:"block_out_channels",val:": Tuple = (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:": Optional = None"},{name:"latents_mean",val:": Optional = None"},{name:"latents_std",val:": Optional = None"},{name:"force_upcast",val:": float = True"},{name:"use_quant_conv",val:": bool = True"},{name:"use_post_quant_conv",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://arxiv.org/abs/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 loosing 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"}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L35"}}),te=new x({props:{name:"wrapper",anchor:"diffusers.AutoencoderKL.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/utils/accelerate_utils.py#L43"}}),oe=new x({props:{name:"wrapper",anchor:"diffusers.AutoencoderKL.encode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/utils/accelerate_utils.py#L43"}}),ne=new x({props:{name:"disable_slicing",anchor:"diffusers.AutoencoderKL.disable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L158"}}),re=new x({props:{name:"disable_tiling",anchor:"diffusers.AutoencoderKL.disable_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L144"}}),se=new x({props:{name:"enable_slicing",anchor:"diffusers.AutoencoderKL.enable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L151"}}),ae=new x({props:{name:"enable_tiling",anchor:"diffusers.AutoencoderKL.enable_tiling",parameters:[{name:"use_tiling",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L136"}}),le=new x({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:": Optional = 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/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L435"}}),ie=new x({props:{name:"fuse_qkv_projections",anchor:"diffusers.AutoencoderKL.fuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L464"}}),P=new rn({props:{warning:!0,$$slots:{default:[mn]},$$scope:{ctx:De}}}),de=new x({props:{name:"set_attn_processor",anchor:"diffusers.AutoencoderKL.set_attn_processor",parameters:[{name:"processor",val:": Union"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.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_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L191"}}),ce=new x({props:{name:"set_default_attn_processor",anchor:"diffusers.AutoencoderKL.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L226"}}),ue=new x({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/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L387",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>
`}}),fe=new x({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/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L333",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>
`}}),pe=new x({props:{name:"unfuse_qkv_projections",anchor:"diffusers.AutoencoderKL.unfuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/autoencoders/autoencoder_kl.py#L488"}}),W=new rn({props:{warning:!0,$$slots:{default:[gn]},$$scope:{ctx:De}}}),me=new U({props:{title:"AutoencoderKLOutput",local:"diffusers.models.modeling_outputs.AutoencoderKLOutput",headingTag:"h2"}}),ge=new x({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/vr_8404/src/diffusers/models/modeling_outputs.py#L6"}}),he=new U({props:{title:"DecoderOutput",local:"diffusers.models.autoencoders.vae.DecoderOutput",headingTag:"h2"}}),_e=new x({props:{name:"class diffusers.models.autoencoders.vae.DecoderOutput",anchor:"diffusers.models.autoencoders.vae.DecoderOutput",parameters:[{name:"sample",val:": Tensor"},{name:"commit_loss",val:": Optional = 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/vr_8404/src/diffusers/models/autoencoders/vae.py#L33"}}),be=new U({props:{title:"FlaxAutoencoderKL",local:"diffusers.FlaxAutoencoderKL",headingTag:"h2"}}),ve=new x({props:{name:"class diffusers.FlaxAutoencoderKL",anchor:"diffusers.FlaxAutoencoderKL",parameters:[{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 3"},{name:"down_block_types",val:": Tuple = ('DownEncoderBlock2D',)"},{name:"up_block_types",val:": Tuple = ('UpDecoderBlock2D',)"},{name:"block_out_channels",val:": Tuple = (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:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"parent",val:": Union = <flax.linen.module._Sentinel object at 0x7f9a4a3e6260>"},{name:"name",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.FlaxAutoencoderKL.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Number of channels in the input image.`,name:"in_channels"},{anchor:"diffusers.FlaxAutoencoderKL.out_channels",description:`<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Number of channels in the output.`,name:"out_channels"},{anchor:"diffusers.FlaxAutoencoderKL.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(DownEncoderBlock2D)</code>) &#x2014;
Tuple of downsample block types.`,name:"down_block_types"},{anchor:"diffusers.FlaxAutoencoderKL.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(UpDecoderBlock2D)</code>) &#x2014;
Tuple of upsample block types.`,name:"up_block_types"},{anchor:"diffusers.FlaxAutoencoderKL.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(64,)</code>) &#x2014;
Tuple of block output channels.`,name:"block_out_channels"},{anchor:"diffusers.FlaxAutoencoderKL.layers_per_block",description:`<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to <code>2</code>) &#x2014;
Number of ResNet layer for each block.`,name:"layers_per_block"},{anchor:"diffusers.FlaxAutoencoderKL.act_fn",description:`<strong>act_fn</strong> (<code>str</code>, <em>optional</em>, defaults to <code>silu</code>) &#x2014;
The activation function to use.`,name:"act_fn"},{anchor:"diffusers.FlaxAutoencoderKL.latent_channels",description:`<strong>latent_channels</strong> (<code>int</code>, <em>optional</em>, defaults to <code>4</code>) &#x2014;
Number of channels in the latent space.`,name:"latent_channels"},{anchor:"diffusers.FlaxAutoencoderKL.norm_num_groups",description:`<strong>norm_num_groups</strong> (<code>int</code>, <em>optional</em>, defaults to <code>32</code>) &#x2014;
The number of groups for normalization.`,name:"norm_num_groups"},{anchor:"diffusers.FlaxAutoencoderKL.sample_size",description:`<strong>sample_size</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Sample input size.`,name:"sample_size"},{anchor:"diffusers.FlaxAutoencoderKL.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://arxiv.org/abs/2112.10752" rel="nofollow">High-Resolution Image
Synthesis with Latent Diffusion Models</a> paper.`,name:"scaling_factor"},{anchor:"diffusers.FlaxAutoencoderKL.dtype",description:`<strong>dtype</strong> (<code>jnp.dtype</code>, <em>optional</em>, defaults to <code>jnp.float32</code>) &#x2014;
The <code>dtype</code> of the parameters.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/vae_flax.py#L726"}}),$e=new U({props:{title:"FlaxAutoencoderKLOutput",local:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput",headingTag:"h2"}}),xe=new x({props:{name:"class diffusers.models.vae_flax.FlaxAutoencoderKLOutput",anchor:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput",parameters:[{name:"latent_dist",val:": FlaxDiagonalGaussianDistribution"}],parametersDescription:[{anchor:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput.latent_dist",description:`<strong>latent_dist</strong> (<code>FlaxDiagonalGaussianDistribution</code>) &#x2014;
Encoded outputs of <code>Encoder</code> represented as the mean and logvar of <code>FlaxDiagonalGaussianDistribution</code>.
<code>FlaxDiagonalGaussianDistribution</code> allows for sampling latents from the distribution.`,name:"latent_dist"}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/vae_flax.py#L47"}}),we=new x({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/flax/struct.py#L120"}}),Le=new U({props:{title:"FlaxDecoderOutput",local:"diffusers.models.vae_flax.FlaxDecoderOutput",headingTag:"h2"}}),ye=new x({props:{name:"class diffusers.models.vae_flax.FlaxDecoderOutput",anchor:"diffusers.models.vae_flax.FlaxDecoderOutput",parameters:[{name:"sample",val:": Array"}],parametersDescription:[{anchor:"diffusers.models.vae_flax.FlaxDecoderOutput.sample",description:`<strong>sample</strong> (<code>jnp.ndarray</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"},{anchor:"diffusers.models.vae_flax.FlaxDecoderOutput.dtype",description:`<strong>dtype</strong> (<code>jnp.dtype</code>, <em>optional</em>, defaults to <code>jnp.float32</code>) &#x2014;
The <code>dtype</code> of the parameters.`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/diffusers/models/vae_flax.py#L32"}}),Te=new x({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxDecoderOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_8404/src/flax/struct.py#L120"}}),Ae=new pn({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/autoencoderkl.md"}}),{c(){b=s("meta"),D=o(),w=s("p"),M=o(),u(G.$$.fragment),it=o(),Z=s("p"),Z.innerHTML=ko,dt=o(),S=s("p"),S.textContent=Ko,ct=o(),R=s("p"),R.innerHTML=Co,ut=o(),u(Y.$$.fragment),ft=o(),B=s("p"),B.innerHTML=Fo,pt=o(),u(Q.$$.fragment),mt=o(),u(X.$$.fragment),gt=o(),i=s("div"),u(ee.$$.fragment),Ht=o(),ke=s("p"),ke.textContent=Eo,Jt=o(),Ke=s("p"),Ke.innerHTML=Mo,Wt=o(),Ce=s("div"),u(te.$$.fragment),qt=o(),Fe=s("div"),u(oe.$$.fragment),Nt=o(),O=s("div"),u(ne.$$.fragment),Ut=o(),Ee=s("p"),Ee.innerHTML=Oo,Gt=o(),I=s("div"),u(re.$$.fragment),Zt=o(),Me=s("p"),Me.innerHTML=Io,St=o(),V=s("div"),u(se.$$.fragment),Rt=o(),Oe=s("p"),Oe.textContent=Vo,Yt=o(),z=s("div"),u(ae.$$.fragment),Bt=o(),Ie=s("p"),Ie.textContent=zo,Qt=o(),Ve=s("div"),u(le.$$.fragment),Xt=o(),k=s("div"),u(ie.$$.fragment),eo=o(),ze=s("p"),ze.textContent=Po,to=o(),u(P.$$.fragment),oo=o(),j=s("div"),u(de.$$.fragment),no=o(),Pe=s("p"),Pe.textContent=jo,ro=o(),H=s("div"),u(ce.$$.fragment),so=o(),je=s("p"),je.textContent=Ho,ao=o(),J=s("div"),u(ue.$$.fragment),lo=o(),He=s("p"),He.textContent=Jo,io=o(),K=s("div"),u(fe.$$.fragment),co=o(),Je=s("p"),Je.textContent=Wo,uo=o(),We=s("p"),We.textContent=qo,fo=o(),C=s("div"),u(pe.$$.fragment),po=o(),qe=s("p"),qe.textContent=No,mo=o(),u(W.$$.fragment),ht=o(),u(me.$$.fragment),_t=o(),F=s("div"),u(ge.$$.fragment),go=o(),Ne=s("p"),Ne.textContent=Uo,bt=o(),u(he.$$.fragment),vt=o(),E=s("div"),u(_e.$$.fragment),ho=o(),Ue=s("p"),Ue.textContent=Go,$t=o(),u(be.$$.fragment),xt=o(),L=s("div"),u(ve.$$.fragment),_o=o(),Ge=s("p"),Ge.textContent=Zo,bo=o(),Ze=s("p"),Ze.innerHTML=So,vo=o(),Se=s("p"),Se.innerHTML=Ro,$o=o(),Re=s("p"),Re.textContent=Yo,xo=o(),Ye=s("ul"),Ye.innerHTML=Bo,wt=o(),u($e.$$.fragment),Lt=o(),T=s("div"),u(xe.$$.fragment),wo=o(),Be=s("p"),Be.textContent=Qo,Lo=o(),q=s("div"),u(we.$$.fragment),yo=o(),Qe=s("p"),Qe.textContent=Xo,yt=o(),u(Le.$$.fragment),Tt=o(),A=s("div"),u(ye.$$.fragment),To=o(),Xe=s("p"),Xe.textContent=en,Ao=o(),N=s("div"),u(Te.$$.fragment),Do=o(),et=s("p"),et.textContent=tn,At=o(),u(Ae.$$.fragment),Dt=o(),at=s("p"),this.h()},l(e){const l=un("svelte-u9bgzb",document.head);b=a(l,"META",{name:!0,content:!0}),l.forEach(r),D=n(e),w=a(e,"P",{}),v(w).forEach(r),M=n(e),f(G.$$.fragment,e),it=n(e),Z=a(e,"P",{"data-svelte-h":!0}),_(Z)!=="svelte-rb5qpx"&&(Z.innerHTML=ko),dt=n(e),S=a(e,"P",{"data-svelte-h":!0}),_(S)!=="svelte-1cwsb16"&&(S.textContent=Ko),ct=n(e),R=a(e,"P",{"data-svelte-h":!0}),_(R)!=="svelte-1e786c4"&&(R.innerHTML=Co),ut=n(e),f(Y.$$.fragment,e),ft=n(e),B=a(e,"P",{"data-svelte-h":!0}),_(B)!=="svelte-1wztlqs"&&(B.innerHTML=Fo),pt=n(e),f(Q.$$.fragment,e),mt=n(e),f(X.$$.fragment,e),gt=n(e),i=a(e,"DIV",{class:!0});var c=v(i);f(ee.$$.fragment,c),Ht=n(c),ke=a(c,"P",{"data-svelte-h":!0}),_(ke)!=="svelte-1nia2sn"&&(ke.textContent=Eo),Jt=n(c),Ke=a(c,"P",{"data-svelte-h":!0}),_(Ke)!=="svelte-17rmrfq"&&(Ke.innerHTML=Mo),Wt=n(c),Ce=a(c,"DIV",{class:!0});var lt=v(Ce);f(te.$$.fragment,lt),lt.forEach(r),qt=n(c),Fe=a(c,"DIV",{class:!0});var on=v(Fe);f(oe.$$.fragment,on),on.forEach(r),Nt=n(c),O=a(c,"DIV",{class:!0});var Kt=v(O);f(ne.$$.fragment,Kt),Ut=n(Kt),Ee=a(Kt,"P",{"data-svelte-h":!0}),_(Ee)!=="svelte-189cc7b"&&(Ee.innerHTML=Oo),Kt.forEach(r),Gt=n(c),I=a(c,"DIV",{class:!0});var Ct=v(I);f(re.$$.fragment,Ct),Zt=n(Ct),Me=a(Ct,"P",{"data-svelte-h":!0}),_(Me)!=="svelte-1f366pl"&&(Me.innerHTML=Io),Ct.forEach(r),St=n(c),V=a(c,"DIV",{class:!0});var Ft=v(V);f(se.$$.fragment,Ft),Rt=n(Ft),Oe=a(Ft,"P",{"data-svelte-h":!0}),_(Oe)!=="svelte-14bnrb6"&&(Oe.textContent=Vo),Ft.forEach(r),Yt=n(c),z=a(c,"DIV",{class:!0});var Et=v(z);f(ae.$$.fragment,Et),Bt=n(Et),Ie=a(Et,"P",{"data-svelte-h":!0}),_(Ie)!=="svelte-1xwrf7t"&&(Ie.textContent=zo),Et.forEach(r),Qt=n(c),Ve=a(c,"DIV",{class:!0});var nn=v(Ve);f(le.$$.fragment,nn),nn.forEach(r),Xt=n(c),k=a(c,"DIV",{class:!0});var tt=v(k);f(ie.$$.fragment,tt),eo=n(tt),ze=a(tt,"P",{"data-svelte-h":!0}),_(ze)!=="svelte-1254b9i"&&(ze.textContent=Po),to=n(tt),f(P.$$.fragment,tt),tt.forEach(r),oo=n(c),j=a(c,"DIV",{class:!0});var Mt=v(j);f(de.$$.fragment,Mt),no=n(Mt),Pe=a(Mt,"P",{"data-svelte-h":!0}),_(Pe)!=="svelte-1o77hl2"&&(Pe.textContent=jo),Mt.forEach(r),ro=n(c),H=a(c,"DIV",{class:!0});var Ot=v(H);f(ce.$$.fragment,Ot),so=n(Ot),je=a(Ot,"P",{"data-svelte-h":!0}),_(je)!=="svelte-1lxcwhv"&&(je.textContent=Ho),Ot.forEach(r),ao=n(c),J=a(c,"DIV",{class:!0});var It=v(J);f(ue.$$.fragment,It),lo=n(It),He=a(It,"P",{"data-svelte-h":!0}),_(He)!=="svelte-1vrxp2b"&&(He.textContent=Jo),It.forEach(r),io=n(c),K=a(c,"DIV",{class:!0});var ot=v(K);f(fe.$$.fragment,ot),co=n(ot),Je=a(ot,"P",{"data-svelte-h":!0}),_(Je)!=="svelte-1un5fcn"&&(Je.textContent=Wo),uo=n(ot),We=a(ot,"P",{"data-svelte-h":!0}),_(We)!=="svelte-lbfkqr"&&(We.textContent=qo),ot.forEach(r),fo=n(c),C=a(c,"DIV",{class:!0});var nt=v(C);f(pe.$$.fragment,nt),po=n(nt),qe=a(nt,"P",{"data-svelte-h":!0}),_(qe)!=="svelte-1vhtc74"&&(qe.textContent=No),mo=n(nt),f(W.$$.fragment,nt),nt.forEach(r),c.forEach(r),ht=n(e),f(me.$$.fragment,e),_t=n(e),F=a(e,"DIV",{class:!0});var Vt=v(F);f(ge.$$.fragment,Vt),go=n(Vt),Ne=a(Vt,"P",{"data-svelte-h":!0}),_(Ne)!=="svelte-1vsc7ag"&&(Ne.textContent=Uo),Vt.forEach(r),bt=n(e),f(he.$$.fragment,e),vt=n(e),E=a(e,"DIV",{class:!0});var zt=v(E);f(_e.$$.fragment,zt),ho=n(zt),Ue=a(zt,"P",{"data-svelte-h":!0}),_(Ue)!=="svelte-18u8upa"&&(Ue.textContent=Go),zt.forEach(r),$t=n(e),f(be.$$.fragment,e),xt=n(e),L=a(e,"DIV",{class:!0});var y=v(L);f(ve.$$.fragment,y),_o=n(y),Ge=a(y,"P",{"data-svelte-h":!0}),_(Ge)!=="svelte-184pm5e"&&(Ge.textContent=Zo),bo=n(y),Ze=a(y,"P",{"data-svelte-h":!0}),_(Ze)!=="svelte-1dpsjr0"&&(Ze.innerHTML=So),vo=n(y),Se=a(y,"P",{"data-svelte-h":!0}),_(Se)!=="svelte-1dpnydg"&&(Se.innerHTML=Ro),$o=n(y),Re=a(y,"P",{"data-svelte-h":!0}),_(Re)!=="svelte-ngiliw"&&(Re.textContent=Yo),xo=n(y),Ye=a(y,"UL",{"data-svelte-h":!0}),_(Ye)!=="svelte-1w7z84m"&&(Ye.innerHTML=Bo),y.forEach(r),wt=n(e),f($e.$$.fragment,e),Lt=n(e),T=a(e,"DIV",{class:!0});var rt=v(T);f(xe.$$.fragment,rt),wo=n(rt),Be=a(rt,"P",{"data-svelte-h":!0}),_(Be)!=="svelte-1vsc7ag"&&(Be.textContent=Qo),Lo=n(rt),q=a(rt,"DIV",{class:!0});var Pt=v(q);f(we.$$.fragment,Pt),yo=n(Pt),Qe=a(Pt,"P",{"data-svelte-h":!0}),_(Qe)!=="svelte-5ihtpa"&&(Qe.textContent=Xo),Pt.forEach(r),rt.forEach(r),yt=n(e),f(Le.$$.fragment,e),Tt=n(e),A=a(e,"DIV",{class:!0});var st=v(A);f(ye.$$.fragment,st),To=n(st),Xe=a(st,"P",{"data-svelte-h":!0}),_(Xe)!=="svelte-18u8upa"&&(Xe.textContent=en),Ao=n(st),N=a(st,"DIV",{class:!0});var jt=v(N);f(Te.$$.fragment,jt),Do=n(jt),et=a(jt,"P",{"data-svelte-h":!0}),_(et)!=="svelte-5ihtpa"&&(et.textContent=tn),jt.forEach(r),st.forEach(r),At=n(e),f(Ae.$$.fragment,e),Dt=n(e),at=a(e,"P",{}),v(at).forEach(r),this.h()},h(){$(b,"name","hf:doc:metadata"),$(b,"content",_n),$(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(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,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Ve,"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"),$(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(J,"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"),$(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(i,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(q,"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"),$(N,"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")},m(e,l){t(document.head,b),d(e,D,l),d(e,w,l),d(e,M,l),p(G,e,l),d(e,it,l),d(e,Z,l),d(e,dt,l),d(e,S,l),d(e,ct,l),d(e,R,l),d(e,ut,l),p(Y,e,l),d(e,ft,l),d(e,B,l),d(e,pt,l),p(Q,e,l),d(e,mt,l),p(X,e,l),d(e,gt,l),d(e,i,l),p(ee,i,null),t(i,Ht),t(i,ke),t(i,Jt),t(i,Ke),t(i,Wt),t(i,Ce),p(te,Ce,null),t(i,qt),t(i,Fe),p(oe,Fe,null),t(i,Nt),t(i,O),p(ne,O,null),t(O,Ut),t(O,Ee),t(i,Gt),t(i,I),p(re,I,null),t(I,Zt),t(I,Me),t(i,St),t(i,V),p(se,V,null),t(V,Rt),t(V,Oe),t(i,Yt),t(i,z),p(ae,z,null),t(z,Bt),t(z,Ie),t(i,Qt),t(i,Ve),p(le,Ve,null),t(i,Xt),t(i,k),p(ie,k,null),t(k,eo),t(k,ze),t(k,to),p(P,k,null),t(i,oo),t(i,j),p(de,j,null),t(j,no),t(j,Pe),t(i,ro),t(i,H),p(ce,H,null),t(H,so),t(H,je),t(i,ao),t(i,J),p(ue,J,null),t(J,lo),t(J,He),t(i,io),t(i,K),p(fe,K,null),t(K,co),t(K,Je),t(K,uo),t(K,We),t(i,fo),t(i,C),p(pe,C,null),t(C,po),t(C,qe),t(C,mo),p(W,C,null),d(e,ht,l),p(me,e,l),d(e,_t,l),d(e,F,l),p(ge,F,null),t(F,go),t(F,Ne),d(e,bt,l),p(he,e,l),d(e,vt,l),d(e,E,l),p(_e,E,null),t(E,ho),t(E,Ue),d(e,$t,l),p(be,e,l),d(e,xt,l),d(e,L,l),p(ve,L,null),t(L,_o),t(L,Ge),t(L,bo),t(L,Ze),t(L,vo),t(L,Se),t(L,$o),t(L,Re),t(L,xo),t(L,Ye),d(e,wt,l),p($e,e,l),d(e,Lt,l),d(e,T,l),p(xe,T,null),t(T,wo),t(T,Be),t(T,Lo),t(T,q),p(we,q,null),t(q,yo),t(q,Qe),d(e,yt,l),p(Le,e,l),d(e,Tt,l),d(e,A,l),p(ye,A,null),t(A,To),t(A,Xe),t(A,Ao),t(A,N),p(Te,N,null),t(N,Do),t(N,et),d(e,At,l),p(Ae,e,l),d(e,Dt,l),d(e,at,l),kt=!0},p(e,[l]){const c={};l&2&&(c.$$scope={dirty:l,ctx:e}),P.$set(c);const lt={};l&2&&(lt.$$scope={dirty:l,ctx:e}),W.$set(lt)},i(e){kt||(m(G.$$.fragment,e),m(Y.$$.fragment,e),m(Q.$$.fragment,e),m(X.$$.fragment,e),m(ee.$$.fragment,e),m(te.$$.fragment,e),m(oe.$$.fragment,e),m(ne.$$.fragment,e),m(re.$$.fragment,e),m(se.$$.fragment,e),m(ae.$$.fragment,e),m(le.$$.fragment,e),m(ie.$$.fragment,e),m(P.$$.fragment,e),m(de.$$.fragment,e),m(ce.$$.fragment,e),m(ue.$$.fragment,e),m(fe.$$.fragment,e),m(pe.$$.fragment,e),m(W.$$.fragment,e),m(me.$$.fragment,e),m(ge.$$.fragment,e),m(he.$$.fragment,e),m(_e.$$.fragment,e),m(be.$$.fragment,e),m(ve.$$.fragment,e),m($e.$$.fragment,e),m(xe.$$.fragment,e),m(we.$$.fragment,e),m(Le.$$.fragment,e),m(ye.$$.fragment,e),m(Te.$$.fragment,e),m(Ae.$$.fragment,e),kt=!0)},o(e){g(G.$$.fragment,e),g(Y.$$.fragment,e),g(Q.$$.fragment,e),g(X.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(ne.$$.fragment,e),g(re.$$.fragment,e),g(se.$$.fragment,e),g(ae.$$.fragment,e),g(le.$$.fragment,e),g(ie.$$.fragment,e),g(P.$$.fragment,e),g(de.$$.fragment,e),g(ce.$$.fragment,e),g(ue.$$.fragment,e),g(fe.$$.fragment,e),g(pe.$$.fragment,e),g(W.$$.fragment,e),g(me.$$.fragment,e),g(ge.$$.fragment,e),g(he.$$.fragment,e),g(_e.$$.fragment,e),g(be.$$.fragment,e),g(ve.$$.fragment,e),g($e.$$.fragment,e),g(xe.$$.fragment,e),g(we.$$.fragment,e),g(Le.$$.fragment,e),g(ye.$$.fragment,e),g(Te.$$.fragment,e),g(Ae.$$.fragment,e),kt=!1},d(e){e&&(r(D),r(w),r(M),r(it),r(Z),r(dt),r(S),r(ct),r(R),r(ut),r(ft),r(B),r(pt),r(mt),r(gt),r(i),r(ht),r(_t),r(F),r(bt),r(vt),r(E),r($t),r(xt),r(L),r(wt),r(Lt),r(T),r(yt),r(Tt),r(A),r(At),r(Dt),r(at)),r(b),h(G,e),h(Y,e),h(Q,e),h(X,e),h(ee),h(te),h(oe),h(ne),h(re),h(se),h(ae),h(le),h(ie),h(P),h(de),h(ce),h(ue),h(fe),h(pe),h(W),h(me,e),h(ge),h(he,e),h(_e),h(be,e),h(ve),h($e,e),h(xe),h(we),h(Le,e),h(ye),h(Te),h(Ae,e)}}}const _n='{"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},{"title":"FlaxAutoencoderKL","local":"diffusers.FlaxAutoencoderKL","sections":[],"depth":2},{"title":"FlaxAutoencoderKLOutput","local":"diffusers.models.vae_flax.FlaxAutoencoderKLOutput","sections":[],"depth":2},{"title":"FlaxDecoderOutput","local":"diffusers.models.vae_flax.FlaxDecoderOutput","sections":[],"depth":2}],"depth":1}';function bn(De){return ln(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Tn extends dn{constructor(b){super(),cn(this,b,bn,hn,an,{})}}export{Tn as component};
