Buckets:

HuggingFaceDocBuilder's picture
download
raw
24.6 kB
import{s as At,n as Dt,o as Kt}from"../chunks/scheduler.53228c21.js";import{S as Ct,i as Mt,e as a,s as r,c as u,h as Et,a as i,d as t,b as s,f as v,g as m,j as _,k as b,l as o,m as l,n as f,t as p,o as g,p as h}from"../chunks/index.cac5d66a.js";import{C as It}from"../chunks/CopyLLMTxtMenu.efae84b2.js";import{D as $}from"../chunks/Docstring.494cc782.js";import{C as Ot}from"../chunks/CodeBlock.606cbaf4.js";import{H as be,E as Vt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.de76e98b.js";function zt(it){let L,ve,he,$e,K,xe,C,we,M,dt='The variational autoencoder (VAE) model with KL loss was introduced in <a href="https://huggingface.co/papers/1312.6114v11" rel="nofollow">Auto-Encoding Variational Bayes</a> by Diederik P. Kingma and Max Welling. The model is used in 🤗 Diffusers to encode images into latents and to decode latent representations into images.',ye,E,lt="The abstract from the paper is:",Le,I,ct="<em>How can we perform efficient inference and learning in directed probabilistic models, in the presence of continuous latent variables with intractable posterior distributions, and large datasets? We introduce a stochastic variational inference and learning algorithm that scales to large datasets and, under some mild differentiability conditions, even works in the intractable case. Our contributions are two-fold. First, we show that a reparameterization of the variational lower bound yields a lower bound estimator that can be straightforwardly optimized using standard stochastic gradient methods. Second, we show that for i.i.d. datasets with continuous latent variables per datapoint, posterior inference can be made especially efficient by fitting an approximate inference model (also called a recognition model) to the intractable posterior using the proposed lower bound estimator. Theoretical advantages are reflected in experimental results.</em>",Te,O,ke,V,ut=`By default the <a href="/docs/diffusers/pr_13832/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a> should be loaded with <a href="/docs/diffusers/pr_13832/en/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a>, but it can also be loaded
from the original format using <code>FromOriginalModelMixin.from_single_file</code> as follows:`,Ae,z,De,P,Ke,d,q,We,ee,mt="A VAE model with KL loss for encoding images into latents and decoding latent representations into images.",Ge,te,ft=`This model inherits from <a href="/docs/diffusers/pr_13832/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).`,He,oe,J,Ue,ne,N,Ze,re,W,je,x,G,Fe,se,pt=`Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value)
are fused. For cross-attention modules, key and value projection matrices are fused.`,Se,H,gt="<p>&gt; This API is 🧪 experimental.</p>",Ye,A,U,Qe,ae,ht="Disables custom attention processors and sets the default attention implementation.",Be,D,Z,Re,ie,_t="Decode a batch of images using a tiled decoder.",Xe,w,j,et,de,bt="Encode a batch of images using a tiled encoder.",tt,le,vt=`When this option is enabled, the VAE will split the input tensor into tiles to compute encoding in several
steps. This is useful to keep memory use constant regardless of image size. The end result of tiled encoding is
different from non-tiled encoding because each tile uses a different encoder. To avoid tiling artifacts, the
tiles overlap and are blended together to form a smooth output. You may still see tile-sized changes in the
output, but they should be much less noticeable.`,ot,y,F,nt,ce,$t="Disables the fused QKV projection if enabled.",rt,S,xt="<p>&gt; This API is 🧪 experimental.</p>",Ce,Y,Me,T,Q,st,ue,wt="Output of AutoencoderKL encoding method.",Ee,B,Ie,k,R,at,me,yt="Output of decoding method.",Oe,X,Ve,_e,ze;return K=new It({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new be({props:{title:"AutoencoderKL",local:"autoencoderkl",headingTag:"h1"}}),O=new be({props:{title:"Loading from the original format",local:"loading-from-the-original-format",headingTag:"h2"}}),z=new Ot({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)`,lang:"py",wrap:!1}}),P=new be({props:{title:"AutoencoderKL",local:"diffusers.AutoencoderKL",headingTag:"h2"}}),q=new $({props:{name:"class diffusers.AutoencoderKL",anchor:"diffusers.AutoencoderKL",parameters:[{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 3"},{name:"down_block_types",val:": 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:": float | None = None"},{name:"latents_mean",val:": tuple[float] | None = None"},{name:"latents_std",val:": tuple[float] | None = None"},{name:"force_upcast",val:": bool = True"},{name:"use_quant_conv",val:": bool = True"},{name:"use_post_quant_conv",val:": bool = True"},{name:"mid_block_add_attention",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.in_channels",description:"<strong>in_channels</strong> (int, <em>optional</em>, defaults to 3) &#x2014; Number of channels in the input image.",name:"in_channels"},{anchor:"diffusers.AutoencoderKL.out_channels",description:"<strong>out_channels</strong> (int, <em>optional</em>, defaults to 3) &#x2014; Number of channels in the output.",name:"out_channels"},{anchor:"diffusers.AutoencoderKL.down_block_types",description:`<strong>down_block_types</strong> (<code>tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;DownEncoderBlock2D&quot;,)</code>) &#x2014;
tuple of downsample block types.`,name:"down_block_types"},{anchor:"diffusers.AutoencoderKL.up_block_types",description:`<strong>up_block_types</strong> (<code>tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;UpDecoderBlock2D&quot;,)</code>) &#x2014;
tuple of upsample block types.`,name:"up_block_types"},{anchor:"diffusers.AutoencoderKL.block_out_channels",description:`<strong>block_out_channels</strong> (<code>tuple[int]</code>, <em>optional</em>, defaults to <code>(64,)</code>) &#x2014;
tuple of block output channels.`,name:"block_out_channels"},{anchor:"diffusers.AutoencoderKL.act_fn",description:"<strong>act_fn</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;silu&quot;</code>) &#x2014; The activation function to use.",name:"act_fn"},{anchor:"diffusers.AutoencoderKL.latent_channels",description:"<strong>latent_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; Number of channels in the latent space.",name:"latent_channels"},{anchor:"diffusers.AutoencoderKL.sample_size",description:"<strong>sample_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>32</code>) &#x2014; Sample input size.",name:"sample_size"},{anchor:"diffusers.AutoencoderKL.scaling_factor",description:`<strong>scaling_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.18215) &#x2014;
The component-wise standard deviation of the trained latent space computed using the first batch of the
training set. This is used to scale the latent space to have unit variance when training the diffusion
model. The latents are scaled with the formula <code>z = z * scaling_factor</code> before being passed to the
diffusion model. When decoding, the latents are scaled back to the original scale with the formula: <code>z = 1 / scaling_factor * z</code>. For more details, refer to sections 4.3.2 and D.1 of the <a href="https://huggingface.co/papers/2112.10752" rel="nofollow">High-Resolution Image
Synthesis with Latent Diffusion Models</a> paper.`,name:"scaling_factor"},{anchor:"diffusers.AutoencoderKL.force_upcast",description:`<strong>force_upcast</strong> (<code>bool</code>, <em>optional</em>, default to <code>True</code>) &#x2014;
If enabled it will force the VAE to run in float32 for high image resolution pipelines, such as SD-XL. VAE
can be fine-tuned / trained to a lower range without losing too much precision in which case <code>force_upcast</code>
can be set to <code>False</code> - see: <a href="https://huggingface.co/madebyollin/sdxl-vae-fp16-fix" rel="nofollow">https://huggingface.co/madebyollin/sdxl-vae-fp16-fix</a>`,name:"force_upcast"},{anchor:"diffusers.AutoencoderKL.mid_block_add_attention",description:`<strong>mid_block_add_attention</strong> (<code>bool</code>, <em>optional</em>, default to <code>True</code>) &#x2014;
If enabled, the mid_block of the Encoder and Decoder will have attention blocks. If set to false, the
mid_block will only have resnet blocks`,name:"mid_block_add_attention"}],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/autoencoders/autoencoder_kl.py#L36"}}),J=new $({props:{name:"wrapper",anchor:"diffusers.AutoencoderKL.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/utils/accelerate_utils.py#L43"}}),N=new $({props:{name:"wrapper",anchor:"diffusers.AutoencoderKL.encode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/utils/accelerate_utils.py#L43"}}),W=new $({props:{name:"forward",anchor:"diffusers.AutoencoderKL.forward",parameters:[{name:"sample",val:": Tensor"},{name:"sample_posterior",val:": bool = False"},{name:"return_dict",val:": bool = True"},{name:"generator",val:": torch._C.Generator | None = 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"},{anchor:"diffusers.AutoencoderKL.forward.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make sampling
deterministic.`,name:"generator"}],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/autoencoders/autoencoder_kl.py#L413",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If <code>return_dict</code> 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>
`}}),G=new $({props:{name:"fuse_qkv_projections",anchor:"diffusers.AutoencoderKL.fuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/autoencoders/autoencoder_kl.py#L450"}}),U=new $({props:{name:"set_default_attn_processor",anchor:"diffusers.AutoencoderKL.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/autoencoders/autoencoder_kl.py#L143"}}),Z=new $({props:{name:"tiled_decode",anchor:"diffusers.AutoencoderKL.tiled_decode",parameters:[{name:"z",val:": Tensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_decode.z",description:"<strong>z</strong> (<code>torch.Tensor</code>) &#x2014; Input batch of latent vectors.",name:"z"},{anchor:"diffusers.AutoencoderKL.tiled_decode.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <code>~models.vae.DecoderOutput</code> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/autoencoders/autoencoder_kl.py#L364",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>
`}}),j=new $({props:{name:"tiled_encode",anchor:"diffusers.AutoencoderKL.tiled_encode",parameters:[{name:"x",val:": Tensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_encode.x",description:"<strong>x</strong> (<code>torch.Tensor</code>) &#x2014; Input batch of images.",name:"x"},{anchor:"diffusers.AutoencoderKL.tiled_encode.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <code>~models.autoencoder_kl.AutoencoderKLOutput</code> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/autoencoders/autoencoder_kl.py#L302",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If return_dict is True, a <code>~models.autoencoder_kl.AutoencoderKLOutput</code> is returned, otherwise a plain
<code>tuple</code> is returned.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>~models.autoencoder_kl.AutoencoderKLOutput</code> or <code>tuple</code></p>
`}}),F=new $({props:{name:"unfuse_qkv_projections",anchor:"diffusers.AutoencoderKL.unfuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/autoencoders/autoencoder_kl.py#L472"}}),Y=new be({props:{title:"AutoencoderKLOutput",local:"diffusers.models.modeling_outputs.AutoencoderKLOutput",headingTag:"h2"}}),Q=new $({props:{name:"class diffusers.models.modeling_outputs.AutoencoderKLOutput",anchor:"diffusers.models.modeling_outputs.AutoencoderKLOutput",parameters:[{name:"latent_dist",val:": DiagonalGaussianDistribution"}],parametersDescription:[{anchor:"diffusers.models.modeling_outputs.AutoencoderKLOutput.latent_dist",description:`<strong>latent_dist</strong> (<code>DiagonalGaussianDistribution</code>) &#x2014;
Encoded outputs of <code>Encoder</code> represented as the mean and logvar of <code>DiagonalGaussianDistribution</code>.
<code>DiagonalGaussianDistribution</code> allows for sampling latents from the distribution.`,name:"latent_dist"}],source:"https://github.com/huggingface/diffusers/blob/vr_13832/src/diffusers/models/modeling_outputs.py#L7"}}),B=new be({props:{title:"DecoderOutput",local:"diffusers.models.autoencoders.vae.DecoderOutput",headingTag:"h2"}}),R=new $({props:{name:"class diffusers.models.autoencoders.vae.DecoderOutput",anchor:"diffusers.models.autoencoders.vae.DecoderOutput",parameters:[{name:"sample",val:": Tensor"},{name:"commit_loss",val:": torch.FloatTensor | None = 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_13832/src/diffusers/models/autoencoders/vae.py#L46"}}),X=new Vt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/autoencoderkl.md"}}),{c(){L=a("meta"),ve=r(),he=a("p"),$e=r(),u(K.$$.fragment),xe=r(),u(C.$$.fragment),we=r(),M=a("p"),M.innerHTML=dt,ye=r(),E=a("p"),E.textContent=lt,Le=r(),I=a("p"),I.innerHTML=ct,Te=r(),u(O.$$.fragment),ke=r(),V=a("p"),V.innerHTML=ut,Ae=r(),u(z.$$.fragment),De=r(),u(P.$$.fragment),Ke=r(),d=a("div"),u(q.$$.fragment),We=r(),ee=a("p"),ee.textContent=mt,Ge=r(),te=a("p"),te.innerHTML=ft,He=r(),oe=a("div"),u(J.$$.fragment),Ue=r(),ne=a("div"),u(N.$$.fragment),Ze=r(),re=a("div"),u(W.$$.fragment),je=r(),x=a("div"),u(G.$$.fragment),Fe=r(),se=a("p"),se.textContent=pt,Se=r(),H=a("blockquote"),H.innerHTML=gt,Ye=r(),A=a("div"),u(U.$$.fragment),Qe=r(),ae=a("p"),ae.textContent=ht,Be=r(),D=a("div"),u(Z.$$.fragment),Re=r(),ie=a("p"),ie.textContent=_t,Xe=r(),w=a("div"),u(j.$$.fragment),et=r(),de=a("p"),de.textContent=bt,tt=r(),le=a("p"),le.textContent=vt,ot=r(),y=a("div"),u(F.$$.fragment),nt=r(),ce=a("p"),ce.textContent=$t,rt=r(),S=a("blockquote"),S.innerHTML=xt,Ce=r(),u(Y.$$.fragment),Me=r(),T=a("div"),u(Q.$$.fragment),st=r(),ue=a("p"),ue.textContent=wt,Ee=r(),u(B.$$.fragment),Ie=r(),k=a("div"),u(R.$$.fragment),at=r(),me=a("p"),me.textContent=yt,Oe=r(),u(X.$$.fragment),Ve=r(),_e=a("p"),this.h()},l(e){const n=Et("svelte-u9bgzb",document.head);L=i(n,"META",{name:!0,content:!0}),n.forEach(t),ve=s(e),he=i(e,"P",{}),v(he).forEach(t),$e=s(e),m(K.$$.fragment,e),xe=s(e),m(C.$$.fragment,e),we=s(e),M=i(e,"P",{"data-svelte-h":!0}),_(M)!=="svelte-wvy0bs"&&(M.innerHTML=dt),ye=s(e),E=i(e,"P",{"data-svelte-h":!0}),_(E)!=="svelte-1cwsb16"&&(E.textContent=lt),Le=s(e),I=i(e,"P",{"data-svelte-h":!0}),_(I)!=="svelte-1e786c4"&&(I.innerHTML=ct),Te=s(e),m(O.$$.fragment,e),ke=s(e),V=i(e,"P",{"data-svelte-h":!0}),_(V)!=="svelte-1hz6eoy"&&(V.innerHTML=ut),Ae=s(e),m(z.$$.fragment,e),De=s(e),m(P.$$.fragment,e),Ke=s(e),d=i(e,"DIV",{class:!0});var c=v(d);m(q.$$.fragment,c),We=s(c),ee=i(c,"P",{"data-svelte-h":!0}),_(ee)!=="svelte-1nia2sn"&&(ee.textContent=mt),Ge=s(c),te=i(c,"P",{"data-svelte-h":!0}),_(te)!=="svelte-1k0q9sp"&&(te.innerHTML=ft),He=s(c),oe=i(c,"DIV",{class:!0});var Lt=v(oe);m(J.$$.fragment,Lt),Lt.forEach(t),Ue=s(c),ne=i(c,"DIV",{class:!0});var Tt=v(ne);m(N.$$.fragment,Tt),Tt.forEach(t),Ze=s(c),re=i(c,"DIV",{class:!0});var kt=v(re);m(W.$$.fragment,kt),kt.forEach(t),je=s(c),x=i(c,"DIV",{class:!0});var fe=v(x);m(G.$$.fragment,fe),Fe=s(fe),se=i(fe,"P",{"data-svelte-h":!0}),_(se)!=="svelte-1254b9i"&&(se.textContent=pt),Se=s(fe),H=i(fe,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),_(H)!=="svelte-6y4o4y"&&(H.innerHTML=gt),fe.forEach(t),Ye=s(c),A=i(c,"DIV",{class:!0});var Pe=v(A);m(U.$$.fragment,Pe),Qe=s(Pe),ae=i(Pe,"P",{"data-svelte-h":!0}),_(ae)!=="svelte-1lxcwhv"&&(ae.textContent=ht),Pe.forEach(t),Be=s(c),D=i(c,"DIV",{class:!0});var qe=v(D);m(Z.$$.fragment,qe),Re=s(qe),ie=i(qe,"P",{"data-svelte-h":!0}),_(ie)!=="svelte-1vrxp2b"&&(ie.textContent=_t),qe.forEach(t),Xe=s(c),w=i(c,"DIV",{class:!0});var pe=v(w);m(j.$$.fragment,pe),et=s(pe),de=i(pe,"P",{"data-svelte-h":!0}),_(de)!=="svelte-1un5fcn"&&(de.textContent=bt),tt=s(pe),le=i(pe,"P",{"data-svelte-h":!0}),_(le)!=="svelte-lbfkqr"&&(le.textContent=vt),pe.forEach(t),ot=s(c),y=i(c,"DIV",{class:!0});var ge=v(y);m(F.$$.fragment,ge),nt=s(ge),ce=i(ge,"P",{"data-svelte-h":!0}),_(ce)!=="svelte-1vhtc74"&&(ce.textContent=$t),rt=s(ge),S=i(ge,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),_(S)!=="svelte-6y4o4y"&&(S.innerHTML=xt),ge.forEach(t),c.forEach(t),Ce=s(e),m(Y.$$.fragment,e),Me=s(e),T=i(e,"DIV",{class:!0});var Je=v(T);m(Q.$$.fragment,Je),st=s(Je),ue=i(Je,"P",{"data-svelte-h":!0}),_(ue)!=="svelte-1vsc7ag"&&(ue.textContent=wt),Je.forEach(t),Ee=s(e),m(B.$$.fragment,e),Ie=s(e),k=i(e,"DIV",{class:!0});var Ne=v(k);m(R.$$.fragment,Ne),at=s(Ne),me=i(Ne,"P",{"data-svelte-h":!0}),_(me)!=="svelte-18u8upa"&&(me.textContent=yt),Ne.forEach(t),Oe=s(e),m(X.$$.fragment,e),Ve=s(e),_e=i(e,"P",{}),v(_e).forEach(t),this.h()},h(){b(L,"name","hf:doc:metadata"),b(L,"content",Pt),b(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(H,"class","warning"),b(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(S,"class","warning"),b(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,n){o(document.head,L),l(e,ve,n),l(e,he,n),l(e,$e,n),f(K,e,n),l(e,xe,n),f(C,e,n),l(e,we,n),l(e,M,n),l(e,ye,n),l(e,E,n),l(e,Le,n),l(e,I,n),l(e,Te,n),f(O,e,n),l(e,ke,n),l(e,V,n),l(e,Ae,n),f(z,e,n),l(e,De,n),f(P,e,n),l(e,Ke,n),l(e,d,n),f(q,d,null),o(d,We),o(d,ee),o(d,Ge),o(d,te),o(d,He),o(d,oe),f(J,oe,null),o(d,Ue),o(d,ne),f(N,ne,null),o(d,Ze),o(d,re),f(W,re,null),o(d,je),o(d,x),f(G,x,null),o(x,Fe),o(x,se),o(x,Se),o(x,H),o(d,Ye),o(d,A),f(U,A,null),o(A,Qe),o(A,ae),o(d,Be),o(d,D),f(Z,D,null),o(D,Re),o(D,ie),o(d,Xe),o(d,w),f(j,w,null),o(w,et),o(w,de),o(w,tt),o(w,le),o(d,ot),o(d,y),f(F,y,null),o(y,nt),o(y,ce),o(y,rt),o(y,S),l(e,Ce,n),f(Y,e,n),l(e,Me,n),l(e,T,n),f(Q,T,null),o(T,st),o(T,ue),l(e,Ee,n),f(B,e,n),l(e,Ie,n),l(e,k,n),f(R,k,null),o(k,at),o(k,me),l(e,Oe,n),f(X,e,n),l(e,Ve,n),l(e,_e,n),ze=!0},p:Dt,i(e){ze||(p(K.$$.fragment,e),p(C.$$.fragment,e),p(O.$$.fragment,e),p(z.$$.fragment,e),p(P.$$.fragment,e),p(q.$$.fragment,e),p(J.$$.fragment,e),p(N.$$.fragment,e),p(W.$$.fragment,e),p(G.$$.fragment,e),p(U.$$.fragment,e),p(Z.$$.fragment,e),p(j.$$.fragment,e),p(F.$$.fragment,e),p(Y.$$.fragment,e),p(Q.$$.fragment,e),p(B.$$.fragment,e),p(R.$$.fragment,e),p(X.$$.fragment,e),ze=!0)},o(e){g(K.$$.fragment,e),g(C.$$.fragment,e),g(O.$$.fragment,e),g(z.$$.fragment,e),g(P.$$.fragment,e),g(q.$$.fragment,e),g(J.$$.fragment,e),g(N.$$.fragment,e),g(W.$$.fragment,e),g(G.$$.fragment,e),g(U.$$.fragment,e),g(Z.$$.fragment,e),g(j.$$.fragment,e),g(F.$$.fragment,e),g(Y.$$.fragment,e),g(Q.$$.fragment,e),g(B.$$.fragment,e),g(R.$$.fragment,e),g(X.$$.fragment,e),ze=!1},d(e){e&&(t(ve),t(he),t($e),t(xe),t(we),t(M),t(ye),t(E),t(Le),t(I),t(Te),t(ke),t(V),t(Ae),t(De),t(Ke),t(d),t(Ce),t(Me),t(T),t(Ee),t(Ie),t(k),t(Oe),t(Ve),t(_e)),t(L),h(K,e),h(C,e),h(O,e),h(z,e),h(P,e),h(q),h(J),h(N),h(W),h(G),h(U),h(Z),h(j),h(F),h(Y,e),h(Q),h(B,e),h(R),h(X,e)}}}const Pt='{"title":"AutoencoderKL","local":"autoencoderkl","sections":[{"title":"Loading from the original format","local":"loading-from-the-original-format","sections":[],"depth":2},{"title":"AutoencoderKL","local":"diffusers.AutoencoderKL","sections":[],"depth":2},{"title":"AutoencoderKLOutput","local":"diffusers.models.modeling_outputs.AutoencoderKLOutput","sections":[],"depth":2},{"title":"DecoderOutput","local":"diffusers.models.autoencoders.vae.DecoderOutput","sections":[],"depth":2}],"depth":1}';function qt(it){return Kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Zt extends Ct{constructor(L){super(),Mt(this,L,qt,zt,At,{})}}export{Zt as component};

Xet Storage Details

Size:
24.6 kB
·
Xet hash:
17a049f8127d3493e5659ed135a1c737bd172e9aad9959fd194bec3aba00552c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.