import{s as as,o as is,n as rs}from"../chunks/scheduler.8c3d61f6.js";import{S as ds,i as ls,g as r,s as o,r as u,A as cs,h as a,f as n,c as s,j as v,u as f,x as h,k as $,y as t,a as l,v as p,d as m,t as g,w as _}from"../chunks/index.da70eac4.js";import{T as ns}from"../chunks/Tip.1d9b8c37.js";import{D as A}from"../chunks/Docstring.6b390b9a.js";import{C as us}from"../chunks/CodeBlock.00a903b3.js";import{H as U,E as fs}from"../chunks/EditOnGithub.1e64e623.js";function ps(Te){let b,T="This API is 🧪 experimental.";return{c(){b=r("p"),b.textContent=T},l(x){b=a(x,"P",{"data-svelte-h":!0}),h(b)!=="svelte-89q1io"&&(b.textContent=T)},m(x,M){l(x,b,M)},p:rs,d(x){x&&n(b)}}}function ms(Te){let b,T="This API is 🧪 experimental.";return{c(){b=r("p"),b.textContent=T},l(x){b=a(x,"P",{"data-svelte-h":!0}),h(b)!=="svelte-89q1io"&&(b.textContent=T)},m(x,M){l(x,b,M)},p:rs,d(x){x&&n(b)}}}function gs(Te){let b,T,x,M,X,dt,W,Do='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.',lt,R,Fo="The abstract from the paper is:",ct,q,ko="<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,Z,ft,Y,Co=`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:`,pt,B,mt,Q,gt,d,ee,jt,De,Ko="A VAE model with KL loss for encoding images into latents and decoding latent representations into images.",St,Fe,Mo=`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).`,Ht,ke,te,Jt,Ce,oe,Nt,V,se,Ut,Ke,Vo=`Disable sliced VAE decoding. If <code>enable_slicing</code> was previously enabled, this method will go back to computing
decoding in one step.`,Xt,I,ne,Wt,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.`,Rt,E,re,qt,Ve,Eo=`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.`,Zt,O,ae,Yt,Ie,Oo=`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.`,Bt,Ee,ie,Qt,D,de,eo,Oe,Go=`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,G,oo,z,le,so,Ge,zo="Sets the attention processor to use to compute attention.",no,j,ce,ro,ze,jo="Disables custom attention processors and sets the default attention implementation.",ao,S,ue,io,je,So="Decode a batch of images using a tiled decoder.",lo,F,fe,co,Se,Ho="Encode a batch of images using a tiled encoder.",uo,He,Jo=`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,k,pe,po,Je,No="Disables the fused QKV projection if enabled.",mo,H,_t,me,ht,C,ge,go,Ne,Uo="Output of AutoencoderKL encoding method.",bt,_e,vt,K,he,_o,Ue,Xo="Output of decoding method.",$t,be,At,y,ve,ho,Xe,Wo="Flax implementation of a VAE model with KL loss for decoding latent representations.",bo,We,Ro=`This model inherits from <a href="/docs/diffusers/main/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,Re,qo=`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,qe,Zo="Inherent JAX features such as the following are supported:",Ao,Ze,Yo='<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>',xt,$e,yt,w,Ae,xo,Ye,Bo="Output of AutoencoderKL encoding method.",yo,J,xe,Po,Be,Qo="Returns a new object replacing the specified fields with new values.",Pt,ye,wt,L,Pe,wo,Qe,es="Output of decoding method.",Lo,N,we,To,et,ts="Returns a new object replacing the specified fields with new values.",Lt,Le,Tt,at,Dt;return X=new U({props:{title:"AutoencoderKL",local:"autoencoderkl",headingTag:"h1"}}),Z=new U({props:{title:"Loading from the original format",local:"loading-from-the-original-format",headingTag:"h2"}}),B=new us({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}}),Q=new U({props:{title:"AutoencoderKL",local:"diffusers.AutoencoderKL",headingTag:"h2"}}),ee=new A({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:": float = 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://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"},{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"}}),te=new A({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"}}),oe=new A({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"}}),se=new A({props:{name:"disable_slicing",anchor:"diffusers.AutoencoderKL.disable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L167"}}),ne=new A({props:{name:"disable_tiling",anchor:"diffusers.AutoencoderKL.disable_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L153"}}),re=new A({props:{name:"enable_slicing",anchor:"diffusers.AutoencoderKL.enable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L160"}}),ae=new A({props:{name:"enable_tiling",anchor:"diffusers.AutoencoderKL.enable_tiling",parameters:[{name:"use_tiling",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L145"}}),ie=new A({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#L505"}}),de=new A({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#L534"}}),G=new ns({props:{warning:!0,$$slots:{default:[ps]},$$scope:{ctx:Te}}}),le=new A({props:{name:"set_attn_processor",anchor:"diffusers.AutoencoderKL.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.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.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.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/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L200"}}),ce=new A({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#L235"}}),ue=new A({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#L456",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 A({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#L394",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 A({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#L560"}}),H=new ns({props:{warning:!0,$$slots:{default:[ms]},$$scope:{ctx:Te}}}),me=new U({props:{title:"AutoencoderKLOutput",local:"diffusers.models.modeling_outputs.AutoencoderKLOutput",headingTag:"h2"}}),ge=new A({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#L6"}}),_e=new U({props:{title:"DecoderOutput",local:"diffusers.models.autoencoders.vae.DecoderOutput",headingTag:"h2"}}),he=new A({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#L46"}}),be=new U({props:{title:"FlaxAutoencoderKL",local:"diffusers.FlaxAutoencoderKL",headingTag:"h2"}}),ve=new A({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:": 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:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"parent",val:": typing.Union[flax.linen.module.Module, flax.core.scope.Scope, flax.linen.module._Sentinel, NoneType] = <flax.linen.module._Sentinel object at 0x7ff9cc591450>"},{name:"name",val:": typing.Optional[str] = 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/main/src/diffusers/models/vae_flax.py#L726"}}),$e=new U({props:{title:"FlaxAutoencoderKLOutput",local:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput",headingTag:"h2"}}),Ae=new A({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/main/src/diffusers/models/vae_flax.py#L47"}}),xe=new A({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/flax/struct.py#L144"}}),ye=new U({props:{title:"FlaxDecoderOutput",local:"diffusers.models.vae_flax.FlaxDecoderOutput",headingTag:"h2"}}),Pe=new A({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/main/src/diffusers/models/vae_flax.py#L32"}}),we=new A({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxDecoderOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/flax/struct.py#L144"}}),Le=new fs({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/autoencoderkl.md"}}),{c(){b=r("meta"),T=o(),x=r("p"),M=o(),u(X.$$.fragment),dt=o(),W=r("p"),W.innerHTML=Do,lt=o(),R=r("p"),R.textContent=Fo,ct=o(),q=r("p"),q.innerHTML=ko,ut=o(),u(Z.$$.fragment),ft=o(),Y=r("p"),Y.innerHTML=Co,pt=o(),u(B.$$.fragment),mt=o(),u(Q.$$.fragment),gt=o(),d=r("div"),u(ee.$$.fragment),jt=o(),De=r("p"),De.textContent=Ko,St=o(),Fe=r("p"),Fe.innerHTML=Mo,Ht=o(),ke=r("div"),u(te.$$.fragment),Jt=o(),Ce=r("div"),u(oe.$$.fragment),Nt=o(),V=r("div"),u(se.$$.fragment),Ut=o(),Ke=r("p"),Ke.innerHTML=Vo,Xt=o(),I=r("div"),u(ne.$$.fragment),Wt=o(),Me=r("p"),Me.innerHTML=Io,Rt=o(),E=r("div"),u(re.$$.fragment),qt=o(),Ve=r("p"),Ve.textContent=Eo,Zt=o(),O=r("div"),u(ae.$$.fragment),Yt=o(),Ie=r("p"),Ie.textContent=Oo,Bt=o(),Ee=r("div"),u(ie.$$.fragment),Qt=o(),D=r("div"),u(de.$$.fragment),eo=o(),Oe=r("p"),Oe.textContent=Go,to=o(),u(G.$$.fragment),oo=o(),z=r("div"),u(le.$$.fragment),so=o(),Ge=r("p"),Ge.textContent=zo,no=o(),j=r("div"),u(ce.$$.fragment),ro=o(),ze=r("p"),ze.textContent=jo,ao=o(),S=r("div"),u(ue.$$.fragment),io=o(),je=r("p"),je.textContent=So,lo=o(),F=r("div"),u(fe.$$.fragment),co=o(),Se=r("p"),Se.textContent=Ho,uo=o(),He=r("p"),He.textContent=Jo,fo=o(),k=r("div"),u(pe.$$.fragment),po=o(),Je=r("p"),Je.textContent=No,mo=o(),u(H.$$.fragment),_t=o(),u(me.$$.fragment),ht=o(),C=r("div"),u(ge.$$.fragment),go=o(),Ne=r("p"),Ne.textContent=Uo,bt=o(),u(_e.$$.fragment),vt=o(),K=r("div"),u(he.$$.fragment),_o=o(),Ue=r("p"),Ue.textContent=Xo,$t=o(),u(be.$$.fragment),At=o(),y=r("div"),u(ve.$$.fragment),ho=o(),Xe=r("p"),Xe.textContent=Wo,bo=o(),We=r("p"),We.innerHTML=Ro,vo=o(),Re=r("p"),Re.innerHTML=qo,$o=o(),qe=r("p"),qe.textContent=Zo,Ao=o(),Ze=r("ul"),Ze.innerHTML=Yo,xt=o(),u($e.$$.fragment),yt=o(),w=r("div"),u(Ae.$$.fragment),xo=o(),Ye=r("p"),Ye.textContent=Bo,yo=o(),J=r("div"),u(xe.$$.fragment),Po=o(),Be=r("p"),Be.textContent=Qo,Pt=o(),u(ye.$$.fragment),wt=o(),L=r("div"),u(Pe.$$.fragment),wo=o(),Qe=r("p"),Qe.textContent=es,Lo=o(),N=r("div"),u(we.$$.fragment),To=o(),et=r("p"),et.textContent=ts,Lt=o(),u(Le.$$.fragment),Tt=o(),at=r("p"),this.h()},l(e){const i=cs("svelte-u9bgzb",document.head);b=a(i,"META",{name:!0,content:!0}),i.forEach(n),T=s(e),x=a(e,"P",{}),v(x).forEach(n),M=s(e),f(X.$$.fragment,e),dt=s(e),W=a(e,"P",{"data-svelte-h":!0}),h(W)!=="svelte-rb5qpx"&&(W.innerHTML=Do),lt=s(e),R=a(e,"P",{"data-svelte-h":!0}),h(R)!=="svelte-1cwsb16"&&(R.textContent=Fo),ct=s(e),q=a(e,"P",{"data-svelte-h":!0}),h(q)!=="svelte-1e786c4"&&(q.innerHTML=ko),ut=s(e),f(Z.$$.fragment,e),ft=s(e),Y=a(e,"P",{"data-svelte-h":!0}),h(Y)!=="svelte-11w0rji"&&(Y.innerHTML=Co),pt=s(e),f(B.$$.fragment,e),mt=s(e),f(Q.$$.fragment,e),gt=s(e),d=a(e,"DIV",{class:!0});var c=v(d);f(ee.$$.fragment,c),jt=s(c),De=a(c,"P",{"data-svelte-h":!0}),h(De)!=="svelte-1nia2sn"&&(De.textContent=Ko),St=s(c),Fe=a(c,"P",{"data-svelte-h":!0}),h(Fe)!=="svelte-1hyu2ru"&&(Fe.innerHTML=Mo),Ht=s(c),ke=a(c,"DIV",{class:!0});var it=v(ke);f(te.$$.fragment,it),it.forEach(n),Jt=s(c),Ce=a(c,"DIV",{class:!0});var os=v(Ce);f(oe.$$.fragment,os),os.forEach(n),Nt=s(c),V=a(c,"DIV",{class:!0});var Ft=v(V);f(se.$$.fragment,Ft),Ut=s(Ft),Ke=a(Ft,"P",{"data-svelte-h":!0}),h(Ke)!=="svelte-189cc7b"&&(Ke.innerHTML=Vo),Ft.forEach(n),Xt=s(c),I=a(c,"DIV",{class:!0});var kt=v(I);f(ne.$$.fragment,kt),Wt=s(kt),Me=a(kt,"P",{"data-svelte-h":!0}),h(Me)!=="svelte-1f366pl"&&(Me.innerHTML=Io),kt.forEach(n),Rt=s(c),E=a(c,"DIV",{class:!0});var Ct=v(E);f(re.$$.fragment,Ct),qt=s(Ct),Ve=a(Ct,"P",{"data-svelte-h":!0}),h(Ve)!=="svelte-14bnrb6"&&(Ve.textContent=Eo),Ct.forEach(n),Zt=s(c),O=a(c,"DIV",{class:!0});var Kt=v(O);f(ae.$$.fragment,Kt),Yt=s(Kt),Ie=a(Kt,"P",{"data-svelte-h":!0}),h(Ie)!=="svelte-1xwrf7t"&&(Ie.textContent=Oo),Kt.forEach(n),Bt=s(c),Ee=a(c,"DIV",{class:!0});var ss=v(Ee);f(ie.$$.fragment,ss),ss.forEach(n),Qt=s(c),D=a(c,"DIV",{class:!0});var tt=v(D);f(de.$$.fragment,tt),eo=s(tt),Oe=a(tt,"P",{"data-svelte-h":!0}),h(Oe)!=="svelte-1254b9i"&&(Oe.textContent=Go),to=s(tt),f(G.$$.fragment,tt),tt.forEach(n),oo=s(c),z=a(c,"DIV",{class:!0});var Mt=v(z);f(le.$$.fragment,Mt),so=s(Mt),Ge=a(Mt,"P",{"data-svelte-h":!0}),h(Ge)!=="svelte-1o77hl2"&&(Ge.textContent=zo),Mt.forEach(n),no=s(c),j=a(c,"DIV",{class:!0});var Vt=v(j);f(ce.$$.fragment,Vt),ro=s(Vt),ze=a(Vt,"P",{"data-svelte-h":!0}),h(ze)!=="svelte-1lxcwhv"&&(ze.textContent=jo),Vt.forEach(n),ao=s(c),S=a(c,"DIV",{class:!0});var It=v(S);f(ue.$$.fragment,It),io=s(It),je=a(It,"P",{"data-svelte-h":!0}),h(je)!=="svelte-1vrxp2b"&&(je.textContent=So),It.forEach(n),lo=s(c),F=a(c,"DIV",{class:!0});var ot=v(F);f(fe.$$.fragment,ot),co=s(ot),Se=a(ot,"P",{"data-svelte-h":!0}),h(Se)!=="svelte-1un5fcn"&&(Se.textContent=Ho),uo=s(ot),He=a(ot,"P",{"data-svelte-h":!0}),h(He)!=="svelte-lbfkqr"&&(He.textContent=Jo),ot.forEach(n),fo=s(c),k=a(c,"DIV",{class:!0});var st=v(k);f(pe.$$.fragment,st),po=s(st),Je=a(st,"P",{"data-svelte-h":!0}),h(Je)!=="svelte-1vhtc74"&&(Je.textContent=No),mo=s(st),f(H.$$.fragment,st),st.forEach(n),c.forEach(n),_t=s(e),f(me.$$.fragment,e),ht=s(e),C=a(e,"DIV",{class:!0});var Et=v(C);f(ge.$$.fragment,Et),go=s(Et),Ne=a(Et,"P",{"data-svelte-h":!0}),h(Ne)!=="svelte-1vsc7ag"&&(Ne.textContent=Uo),Et.forEach(n),bt=s(e),f(_e.$$.fragment,e),vt=s(e),K=a(e,"DIV",{class:!0});var Ot=v(K);f(he.$$.fragment,Ot),_o=s(Ot),Ue=a(Ot,"P",{"data-svelte-h":!0}),h(Ue)!=="svelte-18u8upa"&&(Ue.textContent=Xo),Ot.forEach(n),$t=s(e),f(be.$$.fragment,e),At=s(e),y=a(e,"DIV",{class:!0});var P=v(y);f(ve.$$.fragment,P),ho=s(P),Xe=a(P,"P",{"data-svelte-h":!0}),h(Xe)!=="svelte-184pm5e"&&(Xe.textContent=Wo),bo=s(P),We=a(P,"P",{"data-svelte-h":!0}),h(We)!=="svelte-sibkts"&&(We.innerHTML=Ro),vo=s(P),Re=a(P,"P",{"data-svelte-h":!0}),h(Re)!=="svelte-1dpnydg"&&(Re.innerHTML=qo),$o=s(P),qe=a(P,"P",{"data-svelte-h":!0}),h(qe)!=="svelte-ngiliw"&&(qe.textContent=Zo),Ao=s(P),Ze=a(P,"UL",{"data-svelte-h":!0}),h(Ze)!=="svelte-1w7z84m"&&(Ze.innerHTML=Yo),P.forEach(n),xt=s(e),f($e.$$.fragment,e),yt=s(e),w=a(e,"DIV",{class:!0});var nt=v(w);f(Ae.$$.fragment,nt),xo=s(nt),Ye=a(nt,"P",{"data-svelte-h":!0}),h(Ye)!=="svelte-1vsc7ag"&&(Ye.textContent=Bo),yo=s(nt),J=a(nt,"DIV",{class:!0});var Gt=v(J);f(xe.$$.fragment,Gt),Po=s(Gt),Be=a(Gt,"P",{"data-svelte-h":!0}),h(Be)!=="svelte-brjshm"&&(Be.textContent=Qo),Gt.forEach(n),nt.forEach(n),Pt=s(e),f(ye.$$.fragment,e),wt=s(e),L=a(e,"DIV",{class:!0});var rt=v(L);f(Pe.$$.fragment,rt),wo=s(rt),Qe=a(rt,"P",{"data-svelte-h":!0}),h(Qe)!=="svelte-18u8upa"&&(Qe.textContent=es),Lo=s(rt),N=a(rt,"DIV",{class:!0});var zt=v(N);f(we.$$.fragment,zt),To=s(zt),et=a(zt,"P",{"data-svelte-h":!0}),h(et)!=="svelte-brjshm"&&(et.textContent=ts),zt.forEach(n),rt.forEach(n),Lt=s(e),f(Le.$$.fragment,e),Tt=s(e),at=a(e,"P",{}),v(at).forEach(n),this.h()},h(){$(b,"name","hf:doc:metadata"),$(b,"content",_s),$(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Ce,"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"),$(I,"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"),$(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Ee,"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"),$(z,"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"),$(S,"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"),$(k,"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"),$(C,"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"),$(y,"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"),$(w,"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"),$(L,"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,b),l(e,T,i),l(e,x,i),l(e,M,i),p(X,e,i),l(e,dt,i),l(e,W,i),l(e,lt,i),l(e,R,i),l(e,ct,i),l(e,q,i),l(e,ut,i),p(Z,e,i),l(e,ft,i),l(e,Y,i),l(e,pt,i),p(B,e,i),l(e,mt,i),p(Q,e,i),l(e,gt,i),l(e,d,i),p(ee,d,null),t(d,jt),t(d,De),t(d,St),t(d,Fe),t(d,Ht),t(d,ke),p(te,ke,null),t(d,Jt),t(d,Ce),p(oe,Ce,null),t(d,Nt),t(d,V),p(se,V,null),t(V,Ut),t(V,Ke),t(d,Xt),t(d,I),p(ne,I,null),t(I,Wt),t(I,Me),t(d,Rt),t(d,E),p(re,E,null),t(E,qt),t(E,Ve),t(d,Zt),t(d,O),p(ae,O,null),t(O,Yt),t(O,Ie),t(d,Bt),t(d,Ee),p(ie,Ee,null),t(d,Qt),t(d,D),p(de,D,null),t(D,eo),t(D,Oe),t(D,to),p(G,D,null),t(d,oo),t(d,z),p(le,z,null),t(z,so),t(z,Ge),t(d,no),t(d,j),p(ce,j,null),t(j,ro),t(j,ze),t(d,ao),t(d,S),p(ue,S,null),t(S,io),t(S,je),t(d,lo),t(d,F),p(fe,F,null),t(F,co),t(F,Se),t(F,uo),t(F,He),t(d,fo),t(d,k),p(pe,k,null),t(k,po),t(k,Je),t(k,mo),p(H,k,null),l(e,_t,i),p(me,e,i),l(e,ht,i),l(e,C,i),p(ge,C,null),t(C,go),t(C,Ne),l(e,bt,i),p(_e,e,i),l(e,vt,i),l(e,K,i),p(he,K,null),t(K,_o),t(K,Ue),l(e,$t,i),p(be,e,i),l(e,At,i),l(e,y,i),p(ve,y,null),t(y,ho),t(y,Xe),t(y,bo),t(y,We),t(y,vo),t(y,Re),t(y,$o),t(y,qe),t(y,Ao),t(y,Ze),l(e,xt,i),p($e,e,i),l(e,yt,i),l(e,w,i),p(Ae,w,null),t(w,xo),t(w,Ye),t(w,yo),t(w,J),p(xe,J,null),t(J,Po),t(J,Be),l(e,Pt,i),p(ye,e,i),l(e,wt,i),l(e,L,i),p(Pe,L,null),t(L,wo),t(L,Qe),t(L,Lo),t(L,N),p(we,N,null),t(N,To),t(N,et),l(e,Lt,i),p(Le,e,i),l(e,Tt,i),l(e,at,i),Dt=!0},p(e,[i]){const c={};i&2&&(c.$$scope={dirty:i,ctx:e}),G.$set(c);const it={};i&2&&(it.$$scope={dirty:i,ctx:e}),H.$set(it)},i(e){Dt||(m(X.$$.fragment,e),m(Z.$$.fragment,e),m(B.$$.fragment,e),m(Q.$$.fragment,e),m(ee.$$.fragment,e),m(te.$$.fragment,e),m(oe.$$.fragment,e),m(se.$$.fragment,e),m(ne.$$.fragment,e),m(re.$$.fragment,e),m(ae.$$.fragment,e),m(ie.$$.fragment,e),m(de.$$.fragment,e),m(G.$$.fragment,e),m(le.$$.fragment,e),m(ce.$$.fragment,e),m(ue.$$.fragment,e),m(fe.$$.fragment,e),m(pe.$$.fragment,e),m(H.$$.fragment,e),m(me.$$.fragment,e),m(ge.$$.fragment,e),m(_e.$$.fragment,e),m(he.$$.fragment,e),m(be.$$.fragment,e),m(ve.$$.fragment,e),m($e.$$.fragment,e),m(Ae.$$.fragment,e),m(xe.$$.fragment,e),m(ye.$$.fragment,e),m(Pe.$$.fragment,e),m(we.$$.fragment,e),m(Le.$$.fragment,e),Dt=!0)},o(e){g(X.$$.fragment,e),g(Z.$$.fragment,e),g(B.$$.fragment,e),g(Q.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(se.$$.fragment,e),g(ne.$$.fragment,e),g(re.$$.fragment,e),g(ae.$$.fragment,e),g(ie.$$.fragment,e),g(de.$$.fragment,e),g(G.$$.fragment,e),g(le.$$.fragment,e),g(ce.$$.fragment,e),g(ue.$$.fragment,e),g(fe.$$.fragment,e),g(pe.$$.fragment,e),g(H.$$.fragment,e),g(me.$$.fragment,e),g(ge.$$.fragment,e),g(_e.$$.fragment,e),g(he.$$.fragment,e),g(be.$$.fragment,e),g(ve.$$.fragment,e),g($e.$$.fragment,e),g(Ae.$$.fragment,e),g(xe.$$.fragment,e),g(ye.$$.fragment,e),g(Pe.$$.fragment,e),g(we.$$.fragment,e),g(Le.$$.fragment,e),Dt=!1},d(e){e&&(n(T),n(x),n(M),n(dt),n(W),n(lt),n(R),n(ct),n(q),n(ut),n(ft),n(Y),n(pt),n(mt),n(gt),n(d),n(_t),n(ht),n(C),n(bt),n(vt),n(K),n($t),n(At),n(y),n(xt),n(yt),n(w),n(Pt),n(wt),n(L),n(Lt),n(Tt),n(at)),n(b),_(X,e),_(Z,e),_(B,e),_(Q,e),_(ee),_(te),_(oe),_(se),_(ne),_(re),_(ae),_(ie),_(de),_(G),_(le),_(ce),_(ue),_(fe),_(pe),_(H),_(me,e),_(ge),_(_e,e),_(he),_(be,e),_(ve),_($e,e),_(Ae),_(xe),_(ye,e),_(Pe),_(we),_(Le,e)}}}const _s='{"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 hs(Te){return is(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ps extends ds{constructor(b){super(),ls(this,b,hs,gs,as,{})}}export{Ps as component};
