import{s as Xo,o as Yo,n as Zo}from"../chunks/scheduler.182ea377.js";import{S as Bo,i as Qo,g as r,s as o,r as u,A as en,h as a,f as s,c as n,j as v,u as f,x as _,k as $,y as t,a as l,v as p,d as m,t as g,w as h}from"../chunks/index.abf12888.js";import{T as No}from"../chunks/Tip.230e2334.js";import{D as x}from"../chunks/Docstring.93f6f462.js";import{C as tn}from"../chunks/CodeBlock.57fe6e13.js";import{H as R}from"../chunks/Heading.16916d63.js";function on(Le){let b,D="This API is 🧪 experimental.";return{c(){b=r("p"),b.textContent=D},l(A){b=a(A,"P",{"data-svelte-h":!0}),_(b)!=="svelte-89q1io"&&(b.textContent=D)},m(A,E){l(A,b,E)},p:Zo,d(A){A&&s(b)}}}function nn(Le){let b,D="This API is 🧪 experimental.";return{c(){b=r("p"),b.textContent=D},l(A){b=a(A,"P",{"data-svelte-h":!0}),_(b)!=="svelte-89q1io"&&(b.textContent=D)},m(A,E){l(A,b,E)},p:Zo,d(A){A&&s(b)}}}function sn(Le){let b,D,A,E,q,nt,G,vo='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.',st,N,$o="The abstract from the paper is:",rt,Z,xo="<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>",at,X,it,Y,Ao=`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>FromOriginalVAEMixin.from_single_file</code> as follows:`,lt,B,dt,Q,ct,d,ee,Et,Te,yo="A VAE model with KL loss for encoding images into latents and decoding latent representations into images.",Vt,De,wo=`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).`,Mt,V,te,Ot,Ke,Lo=`Disable sliced VAE decoding. If <code>enable_slicing</code> was previously enabled, this method will go back to computing
decoding in one step.`,It,M,oe,zt,ke,To=`Disable tiled VAE decoding. If <code>enable_tiling</code> was previously enabled, this method will go back to computing
decoding in one step.`,jt,O,ne,Ht,Ce,Do=`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.`,Jt,I,se,Wt,Fe,Ko=`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.`,St,Pe,re,Ut,K,ae,Rt,Ee,ko=`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.`,qt,z,Gt,j,ie,Nt,Ve,Co="Sets the attention processor to use to compute attention.",Zt,H,le,Xt,Me,Fo="Disables custom attention processors and sets the default attention implementation.",Yt,J,de,Bt,Oe,Po="Decode a batch of images using a tiled decoder.",Qt,k,ce,eo,Ie,Eo="Encode a batch of images using a tiled encoder.",to,ze,Vo=`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.`,oo,C,ue,no,je,Mo="Disables the fused QKV projection if enabled.",so,W,ut,fe,ft,F,pe,ro,He,Oo="Output of AutoencoderKL encoding method.",pt,me,mt,P,ge,ao,Je,Io="Output of decoding method.",gt,he,ht,y,_e,io,We,zo="Flax implementation of a VAE model with KL loss for decoding latent representations.",lo,Se,jo=`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).`,co,Ue,Ho=`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.`,uo,Re,Jo="Inherent JAX features such as the following are supported:",fo,qe,Wo='<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>',_t,be,bt,L,ve,po,Ge,So="Output of AutoencoderKL encoding method.",mo,S,$e,go,Ne,Uo="“Returns a new object replacing the specified fields with new values.",vt,xe,$t,T,Ae,ho,Ze,Ro="Output of decoding method.",_o,U,ye,bo,Xe,qo="“Returns a new object replacing the specified fields with new values.",xt,ot,At;return q=new R({props:{title:"AutoencoderKL",local:"autoencoderkl",headingTag:"h1"}}),X=new R({props:{title:"Loading from the original format",local:"loading-from-the-original-format",headingTag:"h2"}}),B=new tn({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 R({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:": 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:"force_upcast",val:": float = 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/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L35"}}),te=new x({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#L152"}}),oe=new x({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#L138"}}),ne=new x({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#L145"}}),se=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/main/src/diffusers/models/autoencoders/autoencoder_kl.py#L130"}}),re=new x({props:{name:"forward",anchor:"diffusers.AutoencoderKL.forward",parameters:[{name:"sample",val:": FloatTensor"},{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.FloatTensor</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#L425"}}),ae=new x({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#L454"}}),z=new No({props:{warning:!0,$$slots:{default:[on]},$$scope:{ctx:Le}}}),ie=new x({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.AttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_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.AttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor]]]"},{name:"_remove_lora",val:" = False"}],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#L185"}}),le=new x({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#L222"}}),de=new x({props:{name:"tiled_decode",anchor:"diffusers.AutoencoderKL.tiled_decode",parameters:[{name:"z",val:": FloatTensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_decode.z",description:"<strong>z</strong> (<code>torch.FloatTensor</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#L377",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>
`}}),ce=new x({props:{name:"tiled_encode",anchor:"diffusers.AutoencoderKL.tiled_encode",parameters:[{name:"x",val:": FloatTensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_encode.x",description:"<strong>x</strong> (<code>torch.FloatTensor</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#L323",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>
`}}),ue=new x({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#L478"}}),W=new No({props:{warning:!0,$$slots:{default:[nn]},$$scope:{ctx:Le}}}),fe=new R({props:{title:"AutoencoderKLOutput",local:"diffusers.models.modeling_outputs.AutoencoderKLOutput",headingTag:"h2"}}),pe=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/main/src/diffusers/models/modeling_outputs.py#L7"}}),me=new R({props:{title:"DecoderOutput",local:"diffusers.models.autoencoders.vae.DecoderOutput",headingTag:"h2"}}),ge=new x({props:{name:"class diffusers.models.autoencoders.vae.DecoderOutput",anchor:"diffusers.models.autoencoders.vae.DecoderOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.autoencoders.vae.DecoderOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</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#L34"}}),he=new R({props:{title:"FlaxAutoencoderKL",local:"diffusers.FlaxAutoencoderKL",headingTag:"h2"}}),_e=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:": 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[typing.Type[flax.linen.module.Module], typing.Type[flax.core.scope.Scope], typing.Type[flax.linen.module._Sentinel], NoneType] = <flax.linen.module._Sentinel object at 0x7f47d6224ee0>"},{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#L727"}}),be=new R({props:{title:"FlaxAutoencoderKLOutput",local:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput",headingTag:"h2"}}),ve=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/main/src/diffusers/models/vae_flax.py#L48"}}),$e=new x({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#L111"}}),xe=new R({props:{title:"FlaxDecoderOutput",local:"diffusers.models.vae_flax.FlaxDecoderOutput",headingTag:"h2"}}),Ae=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/main/src/diffusers/models/vae_flax.py#L33"}}),ye=new x({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#L111"}}),{c(){b=r("meta"),D=o(),A=r("p"),E=o(),u(q.$$.fragment),nt=o(),G=r("p"),G.innerHTML=vo,st=o(),N=r("p"),N.textContent=$o,rt=o(),Z=r("p"),Z.innerHTML=xo,at=o(),u(X.$$.fragment),it=o(),Y=r("p"),Y.innerHTML=Ao,lt=o(),u(B.$$.fragment),dt=o(),u(Q.$$.fragment),ct=o(),d=r("div"),u(ee.$$.fragment),Et=o(),Te=r("p"),Te.textContent=yo,Vt=o(),De=r("p"),De.innerHTML=wo,Mt=o(),V=r("div"),u(te.$$.fragment),Ot=o(),Ke=r("p"),Ke.innerHTML=Lo,It=o(),M=r("div"),u(oe.$$.fragment),zt=o(),ke=r("p"),ke.innerHTML=To,jt=o(),O=r("div"),u(ne.$$.fragment),Ht=o(),Ce=r("p"),Ce.textContent=Do,Jt=o(),I=r("div"),u(se.$$.fragment),Wt=o(),Fe=r("p"),Fe.textContent=Ko,St=o(),Pe=r("div"),u(re.$$.fragment),Ut=o(),K=r("div"),u(ae.$$.fragment),Rt=o(),Ee=r("p"),Ee.textContent=ko,qt=o(),u(z.$$.fragment),Gt=o(),j=r("div"),u(ie.$$.fragment),Nt=o(),Ve=r("p"),Ve.textContent=Co,Zt=o(),H=r("div"),u(le.$$.fragment),Xt=o(),Me=r("p"),Me.textContent=Fo,Yt=o(),J=r("div"),u(de.$$.fragment),Bt=o(),Oe=r("p"),Oe.textContent=Po,Qt=o(),k=r("div"),u(ce.$$.fragment),eo=o(),Ie=r("p"),Ie.textContent=Eo,to=o(),ze=r("p"),ze.textContent=Vo,oo=o(),C=r("div"),u(ue.$$.fragment),no=o(),je=r("p"),je.textContent=Mo,so=o(),u(W.$$.fragment),ut=o(),u(fe.$$.fragment),ft=o(),F=r("div"),u(pe.$$.fragment),ro=o(),He=r("p"),He.textContent=Oo,pt=o(),u(me.$$.fragment),mt=o(),P=r("div"),u(ge.$$.fragment),ao=o(),Je=r("p"),Je.textContent=Io,gt=o(),u(he.$$.fragment),ht=o(),y=r("div"),u(_e.$$.fragment),io=o(),We=r("p"),We.textContent=zo,lo=o(),Se=r("p"),Se.innerHTML=jo,co=o(),Ue=r("p"),Ue.innerHTML=Ho,uo=o(),Re=r("p"),Re.textContent=Jo,fo=o(),qe=r("ul"),qe.innerHTML=Wo,_t=o(),u(be.$$.fragment),bt=o(),L=r("div"),u(ve.$$.fragment),po=o(),Ge=r("p"),Ge.textContent=So,mo=o(),S=r("div"),u($e.$$.fragment),go=o(),Ne=r("p"),Ne.textContent=Uo,vt=o(),u(xe.$$.fragment),$t=o(),T=r("div"),u(Ae.$$.fragment),ho=o(),Ze=r("p"),Ze.textContent=Ro,_o=o(),U=r("div"),u(ye.$$.fragment),bo=o(),Xe=r("p"),Xe.textContent=qo,xt=o(),ot=r("p"),this.h()},l(e){const i=en("svelte-u9bgzb",document.head);b=a(i,"META",{name:!0,content:!0}),i.forEach(s),D=n(e),A=a(e,"P",{}),v(A).forEach(s),E=n(e),f(q.$$.fragment,e),nt=n(e),G=a(e,"P",{"data-svelte-h":!0}),_(G)!=="svelte-rb5qpx"&&(G.innerHTML=vo),st=n(e),N=a(e,"P",{"data-svelte-h":!0}),_(N)!=="svelte-1cwsb16"&&(N.textContent=$o),rt=n(e),Z=a(e,"P",{"data-svelte-h":!0}),_(Z)!=="svelte-1e786c4"&&(Z.innerHTML=xo),at=n(e),f(X.$$.fragment,e),it=n(e),Y=a(e,"P",{"data-svelte-h":!0}),_(Y)!=="svelte-1vtmdxd"&&(Y.innerHTML=Ao),lt=n(e),f(B.$$.fragment,e),dt=n(e),f(Q.$$.fragment,e),ct=n(e),d=a(e,"DIV",{class:!0});var c=v(d);f(ee.$$.fragment,c),Et=n(c),Te=a(c,"P",{"data-svelte-h":!0}),_(Te)!=="svelte-1nia2sn"&&(Te.textContent=yo),Vt=n(c),De=a(c,"P",{"data-svelte-h":!0}),_(De)!=="svelte-1hyu2ru"&&(De.innerHTML=wo),Mt=n(c),V=a(c,"DIV",{class:!0});var we=v(V);f(te.$$.fragment,we),Ot=n(we),Ke=a(we,"P",{"data-svelte-h":!0}),_(Ke)!=="svelte-189cc7b"&&(Ke.innerHTML=Lo),we.forEach(s),It=n(c),M=a(c,"DIV",{class:!0});var yt=v(M);f(oe.$$.fragment,yt),zt=n(yt),ke=a(yt,"P",{"data-svelte-h":!0}),_(ke)!=="svelte-1f366pl"&&(ke.innerHTML=To),yt.forEach(s),jt=n(c),O=a(c,"DIV",{class:!0});var wt=v(O);f(ne.$$.fragment,wt),Ht=n(wt),Ce=a(wt,"P",{"data-svelte-h":!0}),_(Ce)!=="svelte-14bnrb6"&&(Ce.textContent=Do),wt.forEach(s),Jt=n(c),I=a(c,"DIV",{class:!0});var Lt=v(I);f(se.$$.fragment,Lt),Wt=n(Lt),Fe=a(Lt,"P",{"data-svelte-h":!0}),_(Fe)!=="svelte-1xwrf7t"&&(Fe.textContent=Ko),Lt.forEach(s),St=n(c),Pe=a(c,"DIV",{class:!0});var Go=v(Pe);f(re.$$.fragment,Go),Go.forEach(s),Ut=n(c),K=a(c,"DIV",{class:!0});var Ye=v(K);f(ae.$$.fragment,Ye),Rt=n(Ye),Ee=a(Ye,"P",{"data-svelte-h":!0}),_(Ee)!=="svelte-le0q9u"&&(Ee.textContent=ko),qt=n(Ye),f(z.$$.fragment,Ye),Ye.forEach(s),Gt=n(c),j=a(c,"DIV",{class:!0});var Tt=v(j);f(ie.$$.fragment,Tt),Nt=n(Tt),Ve=a(Tt,"P",{"data-svelte-h":!0}),_(Ve)!=="svelte-1o77hl2"&&(Ve.textContent=Co),Tt.forEach(s),Zt=n(c),H=a(c,"DIV",{class:!0});var Dt=v(H);f(le.$$.fragment,Dt),Xt=n(Dt),Me=a(Dt,"P",{"data-svelte-h":!0}),_(Me)!=="svelte-1lxcwhv"&&(Me.textContent=Fo),Dt.forEach(s),Yt=n(c),J=a(c,"DIV",{class:!0});var Kt=v(J);f(de.$$.fragment,Kt),Bt=n(Kt),Oe=a(Kt,"P",{"data-svelte-h":!0}),_(Oe)!=="svelte-1vrxp2b"&&(Oe.textContent=Po),Kt.forEach(s),Qt=n(c),k=a(c,"DIV",{class:!0});var Be=v(k);f(ce.$$.fragment,Be),eo=n(Be),Ie=a(Be,"P",{"data-svelte-h":!0}),_(Ie)!=="svelte-1un5fcn"&&(Ie.textContent=Eo),to=n(Be),ze=a(Be,"P",{"data-svelte-h":!0}),_(ze)!=="svelte-lbfkqr"&&(ze.textContent=Vo),Be.forEach(s),oo=n(c),C=a(c,"DIV",{class:!0});var Qe=v(C);f(ue.$$.fragment,Qe),no=n(Qe),je=a(Qe,"P",{"data-svelte-h":!0}),_(je)!=="svelte-1vhtc74"&&(je.textContent=Mo),so=n(Qe),f(W.$$.fragment,Qe),Qe.forEach(s),c.forEach(s),ut=n(e),f(fe.$$.fragment,e),ft=n(e),F=a(e,"DIV",{class:!0});var kt=v(F);f(pe.$$.fragment,kt),ro=n(kt),He=a(kt,"P",{"data-svelte-h":!0}),_(He)!=="svelte-1vsc7ag"&&(He.textContent=Oo),kt.forEach(s),pt=n(e),f(me.$$.fragment,e),mt=n(e),P=a(e,"DIV",{class:!0});var Ct=v(P);f(ge.$$.fragment,Ct),ao=n(Ct),Je=a(Ct,"P",{"data-svelte-h":!0}),_(Je)!=="svelte-18u8upa"&&(Je.textContent=Io),Ct.forEach(s),gt=n(e),f(he.$$.fragment,e),ht=n(e),y=a(e,"DIV",{class:!0});var w=v(y);f(_e.$$.fragment,w),io=n(w),We=a(w,"P",{"data-svelte-h":!0}),_(We)!=="svelte-184pm5e"&&(We.textContent=zo),lo=n(w),Se=a(w,"P",{"data-svelte-h":!0}),_(Se)!=="svelte-sibkts"&&(Se.innerHTML=jo),co=n(w),Ue=a(w,"P",{"data-svelte-h":!0}),_(Ue)!=="svelte-1dpnydg"&&(Ue.innerHTML=Ho),uo=n(w),Re=a(w,"P",{"data-svelte-h":!0}),_(Re)!=="svelte-ngiliw"&&(Re.textContent=Jo),fo=n(w),qe=a(w,"UL",{"data-svelte-h":!0}),_(qe)!=="svelte-1w7z84m"&&(qe.innerHTML=Wo),w.forEach(s),_t=n(e),f(be.$$.fragment,e),bt=n(e),L=a(e,"DIV",{class:!0});var et=v(L);f(ve.$$.fragment,et),po=n(et),Ge=a(et,"P",{"data-svelte-h":!0}),_(Ge)!=="svelte-1vsc7ag"&&(Ge.textContent=So),mo=n(et),S=a(et,"DIV",{class:!0});var Ft=v(S);f($e.$$.fragment,Ft),go=n(Ft),Ne=a(Ft,"P",{"data-svelte-h":!0}),_(Ne)!=="svelte-5ihtpa"&&(Ne.textContent=Uo),Ft.forEach(s),et.forEach(s),vt=n(e),f(xe.$$.fragment,e),$t=n(e),T=a(e,"DIV",{class:!0});var tt=v(T);f(Ae.$$.fragment,tt),ho=n(tt),Ze=a(tt,"P",{"data-svelte-h":!0}),_(Ze)!=="svelte-18u8upa"&&(Ze.textContent=Ro),_o=n(tt),U=a(tt,"DIV",{class:!0});var Pt=v(U);f(ye.$$.fragment,Pt),bo=n(Pt),Xe=a(Pt,"P",{"data-svelte-h":!0}),_(Xe)!=="svelte-5ihtpa"&&(Xe.textContent=qo),Pt.forEach(s),tt.forEach(s),xt=n(e),ot=a(e,"P",{}),v(ot).forEach(s),this.h()},h(){$(b,"name","hf:doc:metadata"),$(b,"content",rn),$(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(M,"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"),$(Pe,"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"),$(d,"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"),$(P,"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"),$(S,"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"),$(U,"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")},m(e,i){t(document.head,b),l(e,D,i),l(e,A,i),l(e,E,i),p(q,e,i),l(e,nt,i),l(e,G,i),l(e,st,i),l(e,N,i),l(e,rt,i),l(e,Z,i),l(e,at,i),p(X,e,i),l(e,it,i),l(e,Y,i),l(e,lt,i),p(B,e,i),l(e,dt,i),p(Q,e,i),l(e,ct,i),l(e,d,i),p(ee,d,null),t(d,Et),t(d,Te),t(d,Vt),t(d,De),t(d,Mt),t(d,V),p(te,V,null),t(V,Ot),t(V,Ke),t(d,It),t(d,M),p(oe,M,null),t(M,zt),t(M,ke),t(d,jt),t(d,O),p(ne,O,null),t(O,Ht),t(O,Ce),t(d,Jt),t(d,I),p(se,I,null),t(I,Wt),t(I,Fe),t(d,St),t(d,Pe),p(re,Pe,null),t(d,Ut),t(d,K),p(ae,K,null),t(K,Rt),t(K,Ee),t(K,qt),p(z,K,null),t(d,Gt),t(d,j),p(ie,j,null),t(j,Nt),t(j,Ve),t(d,Zt),t(d,H),p(le,H,null),t(H,Xt),t(H,Me),t(d,Yt),t(d,J),p(de,J,null),t(J,Bt),t(J,Oe),t(d,Qt),t(d,k),p(ce,k,null),t(k,eo),t(k,Ie),t(k,to),t(k,ze),t(d,oo),t(d,C),p(ue,C,null),t(C,no),t(C,je),t(C,so),p(W,C,null),l(e,ut,i),p(fe,e,i),l(e,ft,i),l(e,F,i),p(pe,F,null),t(F,ro),t(F,He),l(e,pt,i),p(me,e,i),l(e,mt,i),l(e,P,i),p(ge,P,null),t(P,ao),t(P,Je),l(e,gt,i),p(he,e,i),l(e,ht,i),l(e,y,i),p(_e,y,null),t(y,io),t(y,We),t(y,lo),t(y,Se),t(y,co),t(y,Ue),t(y,uo),t(y,Re),t(y,fo),t(y,qe),l(e,_t,i),p(be,e,i),l(e,bt,i),l(e,L,i),p(ve,L,null),t(L,po),t(L,Ge),t(L,mo),t(L,S),p($e,S,null),t(S,go),t(S,Ne),l(e,vt,i),p(xe,e,i),l(e,$t,i),l(e,T,i),p(Ae,T,null),t(T,ho),t(T,Ze),t(T,_o),t(T,U),p(ye,U,null),t(U,bo),t(U,Xe),l(e,xt,i),l(e,ot,i),At=!0},p(e,[i]){const c={};i&2&&(c.$$scope={dirty:i,ctx:e}),z.$set(c);const we={};i&2&&(we.$$scope={dirty:i,ctx:e}),W.$set(we)},i(e){At||(m(q.$$.fragment,e),m(X.$$.fragment,e),m(B.$$.fragment,e),m(Q.$$.fragment,e),m(ee.$$.fragment,e),m(te.$$.fragment,e),m(oe.$$.fragment,e),m(ne.$$.fragment,e),m(se.$$.fragment,e),m(re.$$.fragment,e),m(ae.$$.fragment,e),m(z.$$.fragment,e),m(ie.$$.fragment,e),m(le.$$.fragment,e),m(de.$$.fragment,e),m(ce.$$.fragment,e),m(ue.$$.fragment,e),m(W.$$.fragment,e),m(fe.$$.fragment,e),m(pe.$$.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(Ae.$$.fragment,e),m(ye.$$.fragment,e),At=!0)},o(e){g(q.$$.fragment,e),g(X.$$.fragment,e),g(B.$$.fragment,e),g(Q.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(ne.$$.fragment,e),g(se.$$.fragment,e),g(re.$$.fragment,e),g(ae.$$.fragment,e),g(z.$$.fragment,e),g(ie.$$.fragment,e),g(le.$$.fragment,e),g(de.$$.fragment,e),g(ce.$$.fragment,e),g(ue.$$.fragment,e),g(W.$$.fragment,e),g(fe.$$.fragment,e),g(pe.$$.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(Ae.$$.fragment,e),g(ye.$$.fragment,e),At=!1},d(e){e&&(s(D),s(A),s(E),s(nt),s(G),s(st),s(N),s(rt),s(Z),s(at),s(it),s(Y),s(lt),s(dt),s(ct),s(d),s(ut),s(ft),s(F),s(pt),s(mt),s(P),s(gt),s(ht),s(y),s(_t),s(bt),s(L),s(vt),s($t),s(T),s(xt),s(ot)),s(b),h(q,e),h(X,e),h(B,e),h(Q,e),h(ee),h(te),h(oe),h(ne),h(se),h(re),h(ae),h(z),h(ie),h(le),h(de),h(ce),h(ue),h(W),h(fe,e),h(pe),h(me,e),h(ge),h(he,e),h(_e),h(be,e),h(ve),h($e),h(xe,e),h(Ae),h(ye)}}}const rn='{"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 an(Le){return Yo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mn extends Bo{constructor(b){super(),Qo(this,b,an,sn,Xo,{})}}export{mn as component};
