import{S as r_,i as a_,s as i_,e as n,k as l,w as u,t as a,M as l_,c as s,d as o,m as d,a as r,x as h,h as i,b as c,G as e,g as m,y as g,q as _,o as v,B as b,v as d_,L as gl}from"../../chunks/vendor-hf-doc-builder.js";import{T as s_}from"../../chunks/Tip-hf-doc-builder.js";import{D as $}from"../../chunks/Docstring-hf-doc-builder.js";import{C as _l}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as E}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as hl}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function c_(I){let x,M,w,y,k,f,D,G;return{c(){x=n("p"),M=a("It is required to be logged in ("),w=n("code"),y=a("huggingface-cli login"),k=a(") when you want to use private or "),f=n("a"),D=a(`gated
models`),G=a("."),this.h()},l(xe){x=s(xe,"P",{});var z=r(x);M=i(z,"It is required to be logged in ("),w=s(z,"CODE",{});var S=r(w);y=i(S,"huggingface-cli login"),S.forEach(o),k=i(z,") when you want to use private or "),f=s(z,"A",{href:!0,rel:!0});var Ln=r(f);D=i(Ln,`gated
models`),Ln.forEach(o),G=i(z,"."),z.forEach(o),this.h()},h(){c(f,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),c(f,"rel","nofollow")},m(xe,z){m(xe,x,z),e(x,M),e(x,w),e(w,y),e(x,k),e(x,f),e(f,D),e(x,G)},d(xe){xe&&o(x)}}}function p_(I){let x,M,w,y,k;return{c(){x=n("p"),M=a("Activate the special "),w=n("a"),y=a("\u201Coffline-mode\u201D"),k=a(` to use
this method in a firewalled environment.`),this.h()},l(f){x=s(f,"P",{});var D=r(x);M=i(D,"Activate the special "),w=s(D,"A",{href:!0,rel:!0});var G=r(w);y=i(G,"\u201Coffline-mode\u201D"),G.forEach(o),k=i(D,` to use
this method in a firewalled environment.`),D.forEach(o),this.h()},h(){c(w,"href","https://huggingface.co/diffusers/installation.html#offline-mode"),c(w,"rel","nofollow")},m(f,D){m(f,x,D),e(x,M),e(x,w),e(w,y),e(x,k)},d(f){f&&o(x)}}}function m_(I){let x,M,w,y,k;return y=new _l({props:{code:`from diffusers import FlaxUNet2DConditionModel

# Download model and configuration from huggingface.co and cache.
model, params = FlaxUNet2DConditionModel.from_pretrained("runwayml/stable-diffusion-v1-5")
# Model was saved using *save_pretrained('./test/saved_model/')* (for example purposes, not runnable).
model, params = FlaxUNet2DConditionModel.from_pretrained("./test/saved_model/")`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Model was saved using *save_pretrained(&#x27;./test/saved_model/&#x27;)* (for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;./test/saved_model/&quot;</span>)`}}),{c(){x=n("p"),M=a("Examples:"),w=l(),u(y.$$.fragment)},l(f){x=s(f,"P",{});var D=r(x);M=i(D,"Examples:"),D.forEach(o),w=d(f),h(y.$$.fragment,f)},m(f,D){m(f,x,D),e(x,M),m(f,w,D),g(y,f,D),k=!0},p:gl,i(f){k||(_(y.$$.fragment,f),k=!0)},o(f){v(y.$$.fragment,f),k=!1},d(f){f&&o(x),f&&o(w),b(y,f)}}}function f_(I){let x,M,w,y,k;return y=new _l({props:{code:`from diffusers import FlaxUNet2DConditionModel

# load model
model, params = FlaxUNet2DConditionModel.from_pretrained("runwayml/stable-diffusion-v1-5")
# By default, the model parameters will be in fp32 precision, to cast these to bfloat16 precision
params = model.to_bf16(params)
# If you don't want to cast certain parameters (for example layer norm bias and scale)
# then pass the mask as follows
from flax import traverse_util

model, params = FlaxUNet2DConditionModel.from_pretrained("runwayml/stable-diffusion-v1-5")
flat_params = traverse_util.flatten_dict(params)
mask = {
    path: (path[-2] != ("LayerNorm", "bias") and path[-2:] != ("LayerNorm", "scale"))
    for path in flat_params
}
mask = traverse_util.unflatten_dict(mask)
params = model.to_bf16(params, mask)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model parameters will be in fp32 precision, to cast these to bfloat16 precision</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_bf16(params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># If you don&#x27;t want to cast certain parameters (for example layer norm bias and scale)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># then pass the mask as follows</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> flax <span class="hljs-keyword">import</span> traverse_util

<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>flat_params = traverse_util.flatten_dict(params)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = {
<span class="hljs-meta">... </span>    path: (path[-<span class="hljs-number">2</span>] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;bias&quot;</span>) <span class="hljs-keyword">and</span> path[-<span class="hljs-number">2</span>:] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;scale&quot;</span>))
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> path <span class="hljs-keyword">in</span> flat_params
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = traverse_util.unflatten_dict(mask)
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_bf16(params, mask)`}}),{c(){x=n("p"),M=a("Examples:"),w=l(),u(y.$$.fragment)},l(f){x=s(f,"P",{});var D=r(x);M=i(D,"Examples:"),D.forEach(o),w=d(f),h(y.$$.fragment,f)},m(f,D){m(f,x,D),e(x,M),m(f,w,D),g(y,f,D),k=!0},p:gl,i(f){k||(_(y.$$.fragment,f),k=!0)},o(f){v(y.$$.fragment,f),k=!1},d(f){f&&o(x),f&&o(w),b(y,f)}}}function u_(I){let x,M,w,y,k;return y=new _l({props:{code:`from diffusers import FlaxUNet2DConditionModel

# load model
model, params = FlaxUNet2DConditionModel.from_pretrained("runwayml/stable-diffusion-v1-5")
# By default, the model params will be in fp32, to cast these to float16
params = model.to_fp16(params)
# If you want don't want to cast certain parameters (for example layer norm bias and scale)
# then pass the mask as follows
from flax import traverse_util

model, params = FlaxUNet2DConditionModel.from_pretrained("runwayml/stable-diffusion-v1-5")
flat_params = traverse_util.flatten_dict(params)
mask = {
    path: (path[-2] != ("LayerNorm", "bias") and path[-2:] != ("LayerNorm", "scale"))
    for path in flat_params
}
mask = traverse_util.unflatten_dict(mask)
params = model.to_fp16(params, mask)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model params will be in fp32, to cast these to float16</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_fp16(params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># If you want don&#x27;t want to cast certain parameters (for example layer norm bias and scale)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># then pass the mask as follows</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> flax <span class="hljs-keyword">import</span> traverse_util

<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>flat_params = traverse_util.flatten_dict(params)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = {
<span class="hljs-meta">... </span>    path: (path[-<span class="hljs-number">2</span>] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;bias&quot;</span>) <span class="hljs-keyword">and</span> path[-<span class="hljs-number">2</span>:] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;scale&quot;</span>))
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> path <span class="hljs-keyword">in</span> flat_params
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = traverse_util.unflatten_dict(mask)
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_fp16(params, mask)`}}),{c(){x=n("p"),M=a("Examples:"),w=l(),u(y.$$.fragment)},l(f){x=s(f,"P",{});var D=r(x);M=i(D,"Examples:"),D.forEach(o),w=d(f),h(y.$$.fragment,f)},m(f,D){m(f,x,D),e(x,M),m(f,w,D),g(y,f,D),k=!0},p:gl,i(f){k||(_(y.$$.fragment,f),k=!0)},o(f){v(y.$$.fragment,f),k=!1},d(f){f&&o(x),f&&o(w),b(y,f)}}}function h_(I){let x,M,w,y,k;return y=new _l({props:{code:`from diffusers import FlaxUNet2DConditionModel

# Download model and configuration from huggingface.co
model, params = FlaxUNet2DConditionModel.from_pretrained("runwayml/stable-diffusion-v1-5")
# By default, the model params will be in fp32, to illustrate the use of this method,
# we'll first cast to fp16 and back to fp32
params = model.to_f16(params)
# now cast back to fp32
params = model.to_fp32(params)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model params will be in fp32, to illustrate the use of this method,</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># we&#x27;ll first cast to fp16 and back to fp32</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_f16(params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># now cast back to fp32</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_fp32(params)`}}),{c(){x=n("p"),M=a("Examples:"),w=l(),u(y.$$.fragment)},l(f){x=s(f,"P",{});var D=r(x);M=i(D,"Examples:"),D.forEach(o),w=d(f),h(y.$$.fragment,f)},m(f,D){m(f,x,D),e(x,M),m(f,w,D),g(y,f,D),k=!0},p:gl,i(f){k||(_(y.$$.fragment,f),k=!0)},o(f){v(y.$$.fragment,f),k=!1},d(f){f&&o(x),f&&o(w),b(y,f)}}}function g_(I){let x,M,w,y,k,f,D,G,xe,z,S,Ln,ms,vl,bl,fs,xl,yl,Ta,ye,Ye,us,It,$l,hs,wl,Ea,T,Vt,Dl,gs,kl,Ml,jn,In,Tl,El,Nl,_s,ie,vs,Ul,Al,bs,Fl,Cl,Vn,Pl,Ol,ql,le,Bt,Ll,xs,jl,Il,ys,Vl,Bl,Ge,zt,zl,$s,Sl,Kl,de,St,Wl,ws,Xl,Ql,Ds,Hl,Yl,R,Kt,Gl,ks,Rl,Jl,Ms,Zl,ed,Ts,td,od,A,Wt,nd,Es,sd,rd,$e,ad,Ns,id,ld,Us,dd,cd,pd,Xt,md,As,fd,ud,hd,Qt,gd,Fs,_d,vd,bd,Re,xd,Je,yd,Ze,Ht,$d,Cs,wd,Dd,et,Yt,kd,Gt,Md,Ps,Td,Ed,Na,we,tt,Os,Rt,Nd,qs,Ud,Ua,Jt,Zt,Aa,De,ot,Ls,eo,Ad,js,Fd,Fa,K,to,Cd,Is,Pd,Od,oo,qd,Bn,Ld,jd,Id,zn,no,Ca,ke,nt,Vs,so,Vd,Bs,Bd,Pa,ro,ao,Oa,Me,st,zs,io,zd,Ss,Sd,qa,W,lo,Kd,Ks,Wd,Xd,co,Qd,Sn,Hd,Yd,Gd,Kn,po,La,Te,rt,Ws,mo,Rd,Xs,Jd,ja,fo,uo,Ia,Ee,at,Qs,ho,Zd,Hs,ec,Va,q,go,tc,Ys,oc,nc,_o,sc,Wn,rc,ac,ic,Xn,vo,lc,ce,bo,dc,Gs,cc,pc,Rs,mc,Ba,Ne,it,Js,xo,fc,Zs,uc,za,Ue,yo,hc,er,gc,Sa,Ae,lt,tr,$o,_c,or,vc,Ka,Fe,wo,bc,nr,xc,Wa,Ce,dt,sr,Do,yc,rr,$c,Xa,X,ko,wc,ar,Dc,kc,Mo,Mc,Qn,Tc,Ec,Nc,Hn,To,Qa,Pe,ct,ir,Eo,Uc,lr,Ac,Ha,Oe,No,Fc,dr,Cc,Ya,qe,pt,cr,Uo,Pc,pr,Oc,Ga,F,Ao,qc,mr,Lc,jc,Fo,Ic,Yn,Vc,Bc,zc,mt,Co,Sc,Po,Kc,fr,Wc,Xc,Qc,pe,Oo,Hc,ur,Yc,Gc,hr,Rc,Jc,Gn,qo,Ra,Le,ft,gr,Lo,Zc,_r,ep,Ja,C,jo,tp,vr,op,np,br,sp,rp,Io,ap,xr,ip,lp,dp,yr,cp,pp,Rn,Vo,Za,je,ut,$r,Bo,mp,wr,fp,ei,zo,So,ti,Ie,ht,Dr,Ko,up,kr,hp,oi,L,Wo,gp,Mr,_p,vp,Xo,bp,Jn,xp,yp,$p,Zn,wp,Qo,Dp,kp,es,Ho,ni,Ve,gt,Tr,Yo,Mp,Er,Tp,si,Go,Ro,ri,Be,_t,Nr,Jo,Ep,Ur,Np,ai,U,Zo,Up,Ar,Ap,Fp,ts,os,Cp,Pp,Op,V,en,qp,Fr,Lp,jp,tn,Ip,Cr,Vp,Bp,zp,on,Sp,Pr,Kp,Wp,Xp,vt,Qp,bt,nn,Hp,sn,Yp,Or,Gp,Rp,Jp,J,rn,Zp,Q,em,qr,tm,om,Lr,nm,sm,jr,rm,am,Ir,im,lm,dm,Vr,cm,pm,xt,mm,Z,an,fm,H,um,Br,hm,gm,zr,_m,vm,Sr,bm,xm,Kr,ym,$m,wm,Wr,Dm,km,yt,Mm,me,ln,Tm,Y,Em,Xr,Nm,Um,Qr,Am,Fm,Hr,Cm,Pm,Yr,Om,qm,Lm,$t,ii,ze,wt,Gr,dn,jm,Rr,Im,li,Se,cn,Vm,Dt,pn,Bm,Jr,zm,di,Ke,kt,Zr,mn,Sm,ea,Km,ci,P,fn,Wm,ta,Xm,Qm,un,Hm,ns,Ym,Gm,Rm,hn,Jm,gn,Zm,ef,tf,oa,of,nf,ne,na,_n,sf,rf,sa,vn,af,lf,ra,bn,df,cf,aa,xn,pf,pi,We,Mt,ia,yn,mf,la,ff,mi,se,$n,uf,da,hf,gf,Tt,wn,_f,ca,vf,fi,Xe,Et,pa,Dn,bf,ma,xf,ui,re,kn,yf,fa,$f,wf,Nt,Mn,Df,ua,kf,hi,Qe,Ut,ha,Tn,Mf,ga,Tf,gi,j,En,Ef,_a,Nf,Uf,Nn,Af,Un,Ff,Cf,Pf,va,Of,qf,ae,ba,An,Lf,jf,xa,Fn,If,Vf,ya,Cn,Bf,zf,$a,Pn,Sf,_i;return f=new E({}),It=new E({}),Vt=new $({props:{name:"class diffusers.ModelMixin",anchor:"diffusers.ModelMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L142"}}),Bt=new $({props:{name:"disable_gradient_checkpointing",anchor:"diffusers.ModelMixin.disable_gradient_checkpointing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L180"}}),zt=new $({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.ModelMixin.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L217"}}),St=new $({props:{name:"enable_gradient_checkpointing",anchor:"diffusers.ModelMixin.enable_gradient_checkpointing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L169"}}),Kt=new $({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.ModelMixin.enable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L205"}}),Wt=new $({props:{name:"from_pretrained",anchor:"diffusers.ModelMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModelMixin.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids should have an organization name, like <code>google/ddpm-celebahq-256</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using <code>~ModelMixin.save_config</code>, e.g.,
<code>./my_model_directory/</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.ModelMixin.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"diffusers.ModelMixin.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model under this dtype. If <code>&quot;auto&quot;</code> is passed the dtype
will be automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.ModelMixin.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.ModelMixin.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"diffusers.ModelMixin.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.ModelMixin.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.ModelMixin.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"diffusers.ModelMixin.from_pretrained.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"use_auth_token"},{anchor:"diffusers.ModelMixin.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"},{anchor:"diffusers.ModelMixin.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo (either remote in
huggingface.co or downloaded locally), you can specify the folder name here.`,name:"subfolder"},{anchor:"diffusers.ModelMixin.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to accelerate downloads in China. If you are from China and have an accessibility
problem, you can set this option to resolve it. Note that we do not guarantee the timeliness or safety.
Please refer to the mirror site for more information.`,name:"mirror"},{anchor:"diffusers.ModelMixin.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be refined to each
parameter/buffer name, once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>To have Accelerate compute the most optimized <code>device_map</code> automatically, set <code>device_map=&quot;auto&quot;</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.ModelMixin.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading by not initializing the weights and only loading the pre-trained weights. This
also tries to not use more than 1x model size in CPU memory (including peak memory) while loading the
model. This is only supported when torch version &gt;= 1.9.0. If you are using an older version of torch,
setting this argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L286"}}),Re=new s_({props:{$$slots:{default:[c_]},$$scope:{ctx:I}}}),Je=new s_({props:{$$slots:{default:[p_]},$$scope:{ctx:I}}}),Ht=new $({props:{name:"num_parameters",anchor:"diffusers.ModelMixin.num_parameters",parameters:[{name:"only_trainable",val:": bool = False"},{name:"exclude_embeddings",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.ModelMixin.num_parameters.only_trainable",description:`<strong>only_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of trainable parameters`,name:"only_trainable"},{anchor:"diffusers.ModelMixin.num_parameters.exclude_embeddings",description:`<strong>exclude_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of non-embeddings parameters`,name:"exclude_embeddings"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L772",returnDescription:`
<p>The number of parameters.</p>
`,returnType:`
<p><code>int</code></p>
`}}),Yt=new $({props:{name:"save_pretrained",anchor:"diffusers.ModelMixin.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"is_main_process",val:": bool = True"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.ModelMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.ModelMixin.save_pretrained.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful when in distributed training like
TPUs and need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on
the main process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.ModelMixin.save_pretrained.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful on distributed training like TPUs when one
need to replace <code>torch.save</code> by another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.ModelMixin.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way (that uses <code>pickle</code>).`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_utils.py#L223"}}),Rt=new E({}),Zt=new $({props:{name:"class diffusers.models.unet_2d.UNet2DOutput",anchor:"diffusers.models.unet_2d.UNet2DOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.unet_2d.UNet2DOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Hidden states output. Output of last layer of model.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d.py#L28"}}),eo=new E({}),to=new $({props:{name:"class diffusers.UNet2DModel",anchor:"diffusers.UNet2DModel",parameters:[{name:"sample_size",val:": typing.Union[int, typing.Tuple[int, int], NoneType] = None"},{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 3"},{name:"center_input_sample",val:": bool = False"},{name:"time_embedding_type",val:": str = 'positional'"},{name:"freq_shift",val:": int = 0"},{name:"flip_sin_to_cos",val:": bool = True"},{name:"down_block_types",val:": typing.Tuple[str] = ('DownBlock2D', 'AttnDownBlock2D', 'AttnDownBlock2D', 'AttnDownBlock2D')"},{name:"up_block_types",val:": typing.Tuple[str] = ('AttnUpBlock2D', 'AttnUpBlock2D', 'AttnUpBlock2D', 'UpBlock2D')"},{name:"block_out_channels",val:": typing.Tuple[int] = (224, 448, 672, 896)"},{name:"layers_per_block",val:": int = 2"},{name:"mid_block_scale_factor",val:": float = 1"},{name:"downsample_padding",val:": int = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"attention_head_dim",val:": int = 8"},{name:"norm_num_groups",val:": int = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"resnet_time_scale_shift",val:": str = 'default'"},{name:"add_attention",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.UNet2DModel.sample_size",description:`<strong>sample_size</strong> (<code>int</code> or <code>Tuple[int, int]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Height and width of input/output sample.`,name:"sample_size"},{anchor:"diffusers.UNet2DModel.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.UNet2DModel.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.UNet2DModel.center_input_sample",description:"<strong>center_input_sample</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to center the input sample.",name:"center_input_sample"},{anchor:"diffusers.UNet2DModel.time_embedding_type",description:"<strong>time_embedding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;positional&quot;</code>) &#x2014; Type of time embedding to use.",name:"time_embedding_type"},{anchor:"diffusers.UNet2DModel.freq_shift",description:"<strong>freq_shift</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014; Frequency shift for fourier time embedding.",name:"freq_shift"},{anchor:"diffusers.UNet2DModel.flip_sin_to_cos",description:`<strong>flip_sin_to_cos</strong> (<code>bool</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>True</code>): Whether to flip sin to cos for fourier time embedding.`,name:"flip_sin_to_cos"},{anchor:"diffusers.UNet2DModel.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(&quot;DownBlock2D&quot;, &quot;AttnDownBlock2D&quot;, &quot;AttnDownBlock2D&quot;, &quot;AttnDownBlock2D&quot;)</code>): Tuple of downsample block
types.`,name:"down_block_types"},{anchor:"diffusers.UNet2DModel.mid_block_type",description:`<strong>mid_block_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;UNetMidBlock2D&quot;</code>) &#x2014;
The mid block type. Choose from <code>UNetMidBlock2D</code> or <code>UnCLIPUNetMidBlock2D</code>.`,name:"mid_block_type"},{anchor:"diffusers.UNet2DModel.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(&quot;AttnUpBlock2D&quot;, &quot;AttnUpBlock2D&quot;, &quot;AttnUpBlock2D&quot;, &quot;UpBlock2D&quot;)</code>): Tuple of upsample block types.`,name:"up_block_types"},{anchor:"diffusers.UNet2DModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(224, 448, 672, 896)</code>): Tuple of block output channels.`,name:"block_out_channels"},{anchor:"diffusers.UNet2DModel.layers_per_block",description:"<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to <code>2</code>) &#x2014; The number of layers per block.",name:"layers_per_block"},{anchor:"diffusers.UNet2DModel.mid_block_scale_factor",description:"<strong>mid_block_scale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014; The scale factor for the mid block.",name:"mid_block_scale_factor"},{anchor:"diffusers.UNet2DModel.downsample_padding",description:"<strong>downsample_padding</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014; The padding for the downsample convolution.",name:"downsample_padding"},{anchor:"diffusers.UNet2DModel.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.UNet2DModel.attention_head_dim",description:"<strong>attention_head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>8</code>) &#x2014; The attention head dimension.",name:"attention_head_dim"},{anchor:"diffusers.UNet2DModel.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 the normalization.",name:"norm_num_groups"},{anchor:"diffusers.UNet2DModel.norm_eps",description:"<strong>norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to <code>1e-5</code>) &#x2014; The epsilon for the normalization.",name:"norm_eps"},{anchor:"diffusers.UNet2DModel.resnet_time_scale_shift",description:`<strong>resnet_time_scale_shift</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014; Time scale shift config
for resnet blocks, see <code>ResnetBlock2D</code>. Choose from <code>default</code> or <code>scale_shift</code>.`,name:"resnet_time_scale_shift"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d.py#L38"}}),no=new $({props:{name:"forward",anchor:"diffusers.UNet2DModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.UNet2DModel.forward.sample",description:"<strong>sample</strong> (<code>torch.FloatTensor</code>) &#x2014; (batch, channel, height, width) noisy inputs tensor",name:"sample"},{anchor:"diffusers.UNet2DModel.forward.timestep",description:"<strong>timestep</strong> (<code>torch.FloatTensor</code> or <code>float</code> or `int) &#x2014; (batch) timesteps",name:"timestep"},{anchor:"diffusers.UNet2DModel.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 <a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_2d.UNet2DOutput">UNet2DOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d.py#L189",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_2d.UNet2DOutput"
>UNet2DOutput</a> if <code>return_dict</code> is True,
otherwise a <code>tuple</code>. When returning a tuple, the first element is the sample tensor.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_2d.UNet2DOutput"
>UNet2DOutput</a> or <code>tuple</code></p>
`}}),so=new E({}),ao=new $({props:{name:"class diffusers.models.unet_1d.UNet1DOutput",anchor:"diffusers.models.unet_1d.UNet1DOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.unet_1d.UNet1DOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, sample_size)</code>) &#x2014;
Hidden states output. Output of last layer of model.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_1d.py#L29"}}),io=new E({}),lo=new $({props:{name:"class diffusers.UNet1DModel",anchor:"diffusers.UNet1DModel",parameters:[{name:"sample_size",val:": int = 65536"},{name:"sample_rate",val:": typing.Optional[int] = None"},{name:"in_channels",val:": int = 2"},{name:"out_channels",val:": int = 2"},{name:"extra_in_channels",val:": int = 0"},{name:"time_embedding_type",val:": str = 'fourier'"},{name:"flip_sin_to_cos",val:": bool = True"},{name:"use_timestep_embedding",val:": bool = False"},{name:"freq_shift",val:": float = 0.0"},{name:"down_block_types",val:": typing.Tuple[str] = ('DownBlock1DNoSkip', 'DownBlock1D', 'AttnDownBlock1D')"},{name:"up_block_types",val:": typing.Tuple[str] = ('AttnUpBlock1D', 'UpBlock1D', 'UpBlock1DNoSkip')"},{name:"mid_block_type",val:": typing.Tuple[str] = 'UNetMidBlock1D'"},{name:"out_block_type",val:": str = None"},{name:"block_out_channels",val:": typing.Tuple[int] = (32, 32, 64)"},{name:"act_fn",val:": str = None"},{name:"norm_num_groups",val:": int = 8"},{name:"layers_per_block",val:": int = 1"},{name:"downsample_each_block",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.UNet1DModel.sample_size",description:"<strong>sample_size</strong> (<code>int</code>, <em>optional</em>) &#x2014; Default length of sample. Should be adaptable at runtime.",name:"sample_size"},{anchor:"diffusers.UNet1DModel.in_channels",description:"<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014; Number of channels in the input sample.",name:"in_channels"},{anchor:"diffusers.UNet1DModel.out_channels",description:"<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014; Number of channels in the output.",name:"out_channels"},{anchor:"diffusers.UNet1DModel.time_embedding_type",description:"<strong>time_embedding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;fourier&quot;</code>) &#x2014; Type of time embedding to use.",name:"time_embedding_type"},{anchor:"diffusers.UNet1DModel.freq_shift",description:"<strong>freq_shift</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014; Frequency shift for fourier time embedding.",name:"freq_shift"},{anchor:"diffusers.UNet1DModel.flip_sin_to_cos",description:`<strong>flip_sin_to_cos</strong> (<code>bool</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>False</code>): Whether to flip sin to cos for fourier time embedding.`,name:"flip_sin_to_cos"},{anchor:"diffusers.UNet1DModel.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(&quot;DownBlock1D&quot;, &quot;DownBlock1DNoSkip&quot;, &quot;AttnDownBlock1D&quot;)</code>): Tuple of downsample block types.`,name:"down_block_types"},{anchor:"diffusers.UNet1DModel.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(&quot;UpBlock1D&quot;, &quot;UpBlock1DNoSkip&quot;, &quot;AttnUpBlock1D&quot;)</code>): Tuple of upsample block types.`,name:"up_block_types"},{anchor:"diffusers.UNet1DModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(32, 32, 64)</code>): Tuple of block output channels.`,name:"block_out_channels"},{anchor:"diffusers.UNet1DModel.mid_block_type",description:"<strong>mid_block_type</strong> (<code>str</code>, <em>optional</em>, defaults to &#x201C;UNetMidBlock1D&#x201D;) &#x2014; block type for middle of UNet.",name:"mid_block_type"},{anchor:"diffusers.UNet1DModel.out_block_type",description:"<strong>out_block_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014; optional output processing of UNet.",name:"out_block_type"},{anchor:"diffusers.UNet1DModel.act_fn",description:"<strong>act_fn</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014; optional activitation function in UNet blocks.",name:"act_fn"},{anchor:"diffusers.UNet1DModel.norm_num_groups",description:"<strong>norm_num_groups</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014; group norm member count in UNet blocks.",name:"norm_num_groups"},{anchor:"diffusers.UNet1DModel.layers_per_block",description:"<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014; added number of layers in a UNet block.",name:"layers_per_block"},{anchor:"diffusers.UNet1DModel.downsample_each_block",description:`<strong>downsample_each_block</strong> (<code>int</code>, <em>optional</em>, defaults to False &#x2014;
experimental feature for using a UNet without upsampling.`,name:"downsample_each_block"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_1d.py#L39"}}),po=new $({props:{name:"forward",anchor:"diffusers.UNet1DModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.UNet1DModel.forward.sample",description:"<strong>sample</strong> (<code>torch.FloatTensor</code>) &#x2014; <code>(batch_size, sample_size, num_channels)</code> noisy inputs tensor",name:"sample"},{anchor:"diffusers.UNet1DModel.forward.timestep",description:"<strong>timestep</strong> (<code>torch.FloatTensor</code> or <code>float</code> or `int) &#x2014; (batch) timesteps",name:"timestep"},{anchor:"diffusers.UNet1DModel.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 <a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_1d.UNet1DOutput">UNet1DOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_1d.py#L190",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_1d.UNet1DOutput"
>UNet1DOutput</a> if <code>return_dict</code> is True,
otherwise a <code>tuple</code>. When returning a tuple, the first element is the sample tensor.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_1d.UNet1DOutput"
>UNet1DOutput</a> or <code>tuple</code></p>
`}}),mo=new E({}),uo=new $({props:{name:"class diffusers.models.unet_2d_condition.UNet2DConditionOutput",anchor:"diffusers.models.unet_2d_condition.UNet2DConditionOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.unet_2d_condition.UNet2DConditionOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Hidden states conditioned on <code>encoder_hidden_states</code> input. Output of last layer of model.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d_condition.py#L41"}}),ho=new E({}),go=new $({props:{name:"class diffusers.UNet2DConditionModel",anchor:"diffusers.UNet2DConditionModel",parameters:[{name:"sample_size",val:": typing.Optional[int] = None"},{name:"in_channels",val:": int = 4"},{name:"out_channels",val:": int = 4"},{name:"center_input_sample",val:": bool = False"},{name:"flip_sin_to_cos",val:": bool = True"},{name:"freq_shift",val:": int = 0"},{name:"down_block_types",val:": typing.Tuple[str] = ('CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D')"},{name:"mid_block_type",val:": str = 'UNetMidBlock2DCrossAttn'"},{name:"up_block_types",val:": typing.Tuple[str] = ('UpBlock2D', 'CrossAttnUpBlock2D', 'CrossAttnUpBlock2D', 'CrossAttnUpBlock2D')"},{name:"only_cross_attention",val:": typing.Union[bool, typing.Tuple[bool]] = False"},{name:"block_out_channels",val:": typing.Tuple[int] = (320, 640, 1280, 1280)"},{name:"layers_per_block",val:": int = 2"},{name:"downsample_padding",val:": int = 1"},{name:"mid_block_scale_factor",val:": float = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"norm_num_groups",val:": int = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"cross_attention_dim",val:": int = 1280"},{name:"attention_head_dim",val:": typing.Union[int, typing.Tuple[int]] = 8"},{name:"dual_cross_attention",val:": bool = False"},{name:"use_linear_projection",val:": bool = False"},{name:"class_embed_type",val:": typing.Optional[str] = None"},{name:"num_class_embeds",val:": typing.Optional[int] = None"},{name:"upcast_attention",val:": bool = False"},{name:"resnet_time_scale_shift",val:": str = 'default'"}],parametersDescription:[{anchor:"diffusers.UNet2DConditionModel.sample_size",description:`<strong>sample_size</strong> (<code>int</code> or <code>Tuple[int, int]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Height and width of input/output sample.`,name:"sample_size"},{anchor:"diffusers.UNet2DConditionModel.in_channels",description:"<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; The number of channels in the input sample.",name:"in_channels"},{anchor:"diffusers.UNet2DConditionModel.out_channels",description:"<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; The number of channels in the output.",name:"out_channels"},{anchor:"diffusers.UNet2DConditionModel.center_input_sample",description:"<strong>center_input_sample</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to center the input sample.",name:"center_input_sample"},{anchor:"diffusers.UNet2DConditionModel.flip_sin_to_cos",description:`<strong>flip_sin_to_cos</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to flip the sin to cos in the time embedding.`,name:"flip_sin_to_cos"},{anchor:"diffusers.UNet2DConditionModel.freq_shift",description:"<strong>freq_shift</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014; The frequency shift to apply to the time embedding.",name:"freq_shift"},{anchor:"diffusers.UNet2DConditionModel.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;DownBlock2D&quot;)</code>) &#x2014;
The tuple of downsample blocks to use.`,name:"down_block_types"},{anchor:"diffusers.UNet2DConditionModel.mid_block_type",description:`<strong>mid_block_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;UNetMidBlock2DCrossAttn&quot;</code>) &#x2014;
The mid block type. Choose from <code>UNetMidBlock2DCrossAttn</code> or <code>UNetMidBlock2DSimpleCrossAttn</code>.`,name:"mid_block_type"},{anchor:"diffusers.UNet2DConditionModel.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;UpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;,)</code>) &#x2014;
The tuple of upsample blocks to use.`,name:"up_block_types"},{anchor:"diffusers.UNet2DConditionModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to <code>(320, 640, 1280, 1280)</code>) &#x2014;
The tuple of output channels for each block.`,name:"block_out_channels"},{anchor:"diffusers.UNet2DConditionModel.layers_per_block",description:"<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014; The number of layers per block.",name:"layers_per_block"},{anchor:"diffusers.UNet2DConditionModel.downsample_padding",description:"<strong>downsample_padding</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014; The padding to use for the downsampling convolution.",name:"downsample_padding"},{anchor:"diffusers.UNet2DConditionModel.mid_block_scale_factor",description:"<strong>mid_block_scale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014; The scale factor to use for the mid block.",name:"mid_block_scale_factor"},{anchor:"diffusers.UNet2DConditionModel.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.UNet2DConditionModel.norm_num_groups",description:"<strong>norm_num_groups</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014; The number of groups to use for the normalization.",name:"norm_num_groups"},{anchor:"diffusers.UNet2DConditionModel.norm_eps",description:"<strong>norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014; The epsilon to use for the normalization.",name:"norm_eps"},{anchor:"diffusers.UNet2DConditionModel.cross_attention_dim",description:"<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 1280) &#x2014; The dimension of the cross attention features.",name:"cross_attention_dim"},{anchor:"diffusers.UNet2DConditionModel.attention_head_dim",description:"<strong>attention_head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014; The dimension of the attention heads.",name:"attention_head_dim"},{anchor:"diffusers.UNet2DConditionModel.resnet_time_scale_shift",description:`<strong>resnet_time_scale_shift</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014; Time scale shift config
for resnet blocks, see <code>ResnetBlock2D</code>. Choose from <code>default</code> or <code>scale_shift</code>.`,name:"resnet_time_scale_shift"},{anchor:"diffusers.UNet2DConditionModel.class_embed_type",description:`<strong>class_embed_type</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014; The type of class embedding to use which is ultimately
summed with the time embeddings. Choose from <code>None</code>, <code>&quot;timestep&quot;</code>, or <code>&quot;identity&quot;</code>.`,name:"class_embed_type"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d_condition.py#L51"}}),vo=new $({props:{name:"forward",anchor:"diffusers.UNet2DConditionModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"encoder_hidden_states",val:": Tensor"},{name:"class_labels",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.UNet2DConditionModel.forward.sample",description:"<strong>sample</strong> (<code>torch.FloatTensor</code>) &#x2014; (batch, channel, height, width) noisy inputs tensor",name:"sample"},{anchor:"diffusers.UNet2DConditionModel.forward.timestep",description:"<strong>timestep</strong> (<code>torch.FloatTensor</code> or <code>float</code> or <code>int</code>) &#x2014; (batch) timesteps",name:"timestep"},{anchor:"diffusers.UNet2DConditionModel.forward.encoder_hidden_states",description:"<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code>) &#x2014; (batch, sequence_length, feature_dim) encoder hidden states",name:"encoder_hidden_states"},{anchor:"diffusers.UNet2DConditionModel.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 <a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_2d_condition.UNet2DConditionOutput">models.unet_2d_condition.UNet2DConditionOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d_condition.py#L337",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_2d_condition.UNet2DConditionOutput"
>UNet2DConditionOutput</a> if <code>return_dict</code> is True, otherwise a <code>tuple</code>. When
returning a tuple, the first element is the sample tensor.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_2d_condition.UNet2DConditionOutput"
>UNet2DConditionOutput</a> or <code>tuple</code></p>
`}}),bo=new $({props:{name:"set_attention_slice",anchor:"diffusers.UNet2DConditionModel.set_attention_slice",parameters:[{name:"slice_size",val:""}],parametersDescription:[{anchor:"diffusers.UNet2DConditionModel.set_attention_slice.slice_size",description:`<strong>slice_size</strong> (<code>str</code> or <code>int</code> or <code>list(int)</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
When <code>&quot;auto&quot;</code>, halves the input to the attention heads, so attention will be computed in two steps. If
<code>&quot;max&quot;</code>, maxium amount of memory will be saved by running only one slice at a time. If a number is
provided, uses as many slices as <code>attention_head_dim // slice_size</code>. In this case, <code>attention_head_dim</code>
must be a multiple of <code>slice_size</code>.`,name:"slice_size"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d_condition.py#L268"}}),xo=new E({}),yo=new $({props:{name:"class diffusers.models.vae.DecoderOutput",anchor:"diffusers.models.vae.DecoderOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.vae.DecoderOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Decoded output sample of the model. Output of the last layer of the model.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae.py#L28"}}),$o=new E({}),wo=new $({props:{name:"class diffusers.models.vae.VQEncoderOutput",anchor:"diffusers.models.vae.VQEncoderOutput",parameters:[{name:"latents",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.vae.VQEncoderOutput.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Encoded output sample of the model. Output of the last layer of the model.`,name:"latents"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae.py#L41"}}),Do=new E({}),ko=new $({props:{name:"class diffusers.VQModel",anchor:"diffusers.VQModel",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 = 3"},{name:"sample_size",val:": int = 32"},{name:"num_vq_embeddings",val:": int = 256"},{name:"norm_num_groups",val:": int = 32"},{name:"vq_embed_dim",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.VQModel.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.VQModel.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.VQModel.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(&quot;DownEncoderBlock2D&quot;,)</code>): Tuple of downsample block types.`,name:"down_block_types"},{anchor:"diffusers.VQModel.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(&quot;UpDecoderBlock2D&quot;,)</code>): Tuple of upsample block types.`,name:"up_block_types"},{anchor:"diffusers.VQModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to  &#x2014;
obj:<code>(64,)</code>): Tuple of block output channels.`,name:"block_out_channels"},{anchor:"diffusers.VQModel.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.VQModel.latent_channels",description:"<strong>latent_channels</strong> (<code>int</code>, <em>optional</em>, defaults to <code>3</code>) &#x2014; Number of channels in the latent space.",name:"latent_channels"},{anchor:"diffusers.VQModel.sample_size",description:"<strong>sample_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>32</code>) &#x2014; TODO",name:"sample_size"},{anchor:"diffusers.VQModel.num_vq_embeddings",description:"<strong>num_vq_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to <code>256</code>) &#x2014; Number of codebook vectors in the VQ-VAE.",name:"num_vq_embeddings"},{anchor:"diffusers.VQModel.vq_embed_dim",description:"<strong>vq_embed_dim</strong> (<code>int</code>, <em>optional</em>) &#x2014; Hidden dim of codebook vectors in the VQ-VAE.",name:"vq_embed_dim"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae.py#L389"}}),To=new $({props:{name:"forward",anchor:"diffusers.VQModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.VQModel.forward.sample",description:"<strong>sample</strong> (<code>torch.FloatTensor</code>) &#x2014; Input sample.",name:"sample"},{anchor:"diffusers.VQModel.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/v0.11.0/src/diffusers/models/vae.py#L484"}}),Eo=new E({}),No=new $({props:{name:"class diffusers.models.vae.AutoencoderKLOutput",anchor:"diffusers.models.vae.AutoencoderKLOutput",parameters:[{name:"latent_dist",val:": DiagonalGaussianDistribution"}],parametersDescription:[{anchor:"diffusers.models.vae.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/v0.11.0/src/diffusers/models/vae.py#L54"}}),Uo=new E({}),Ao=new $({props:{name:"class diffusers.AutoencoderKL",anchor:"diffusers.AutoencoderKL",parameters:[{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 3"},{name:"down_block_types",val:": typing.Tuple[str] = ('DownEncoderBlock2D',)"},{name:"up_block_types",val:": typing.Tuple[str] = ('UpDecoderBlock2D',)"},{name:"block_out_channels",val:": typing.Tuple[int] = (64,)"},{name:"layers_per_block",val:": int = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"latent_channels",val:": int = 4"},{name:"norm_num_groups",val:": int = 32"},{name:"sample_size",val:": int = 32"}],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  &#x2014;
obj:<code>(&quot;DownEncoderBlock2D&quot;,)</code>): 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  &#x2014;
obj:<code>(&quot;UpDecoderBlock2D&quot;,)</code>): 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  &#x2014;
obj:<code>(64,)</code>): 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 <code>4</code>) &#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; TODO",name:"sample_size"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae.py#L501"}}),Co=new $({props:{name:"disable_slicing",anchor:"diffusers.AutoencoderKL.disable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae.py#L593"}}),Oo=new $({props:{name:"enable_slicing",anchor:"diffusers.AutoencoderKL.enable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae.py#L584"}}),qo=new $({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/v0.11.0/src/diffusers/models/vae.py#L612"}}),Lo=new E({}),jo=new $({props:{name:"class diffusers.Transformer2DModel",anchor:"diffusers.Transformer2DModel",parameters:[{name:"num_attention_heads",val:": int = 16"},{name:"attention_head_dim",val:": int = 88"},{name:"in_channels",val:": typing.Optional[int] = None"},{name:"num_layers",val:": int = 1"},{name:"dropout",val:": float = 0.0"},{name:"norm_num_groups",val:": int = 32"},{name:"cross_attention_dim",val:": typing.Optional[int] = None"},{name:"attention_bias",val:": bool = False"},{name:"sample_size",val:": typing.Optional[int] = None"},{name:"num_vector_embeds",val:": typing.Optional[int] = None"},{name:"activation_fn",val:": str = 'geglu'"},{name:"num_embeds_ada_norm",val:": typing.Optional[int] = None"},{name:"use_linear_projection",val:": bool = False"},{name:"only_cross_attention",val:": bool = False"},{name:"upcast_attention",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.Transformer2DModel.num_attention_heads",description:"<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014; The number of heads to use for multi-head attention.",name:"num_attention_heads"},{anchor:"diffusers.Transformer2DModel.attention_head_dim",description:"<strong>attention_head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 88) &#x2014; The number of channels in each head.",name:"attention_head_dim"},{anchor:"diffusers.Transformer2DModel.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Pass if the input is continuous. The number of channels in the input and output.`,name:"in_channels"},{anchor:"diffusers.Transformer2DModel.num_layers",description:"<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014; The number of layers of Transformer blocks to use.",name:"num_layers"},{anchor:"diffusers.Transformer2DModel.dropout",description:"<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014; The dropout probability to use.",name:"dropout"},{anchor:"diffusers.Transformer2DModel.cross_attention_dim",description:"<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>) &#x2014; The number of encoder_hidden_states dimensions to use.",name:"cross_attention_dim"},{anchor:"diffusers.Transformer2DModel.sample_size",description:`<strong>sample_size</strong> (<code>int</code>, <em>optional</em>) &#x2014; Pass if the input is discrete. The width of the latent images.
Note that this is fixed at training time as it is used for learning a number of position embeddings. See
<code>ImagePositionalEmbeddings</code>.`,name:"sample_size"},{anchor:"diffusers.Transformer2DModel.num_vector_embeds",description:`<strong>num_vector_embeds</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Pass if the input is discrete. The number of classes of the vector embeddings of the latent pixels.
Includes the class for the masked latent pixel.`,name:"num_vector_embeds"},{anchor:"diffusers.Transformer2DModel.activation_fn",description:"<strong>activation_fn</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;geglu&quot;</code>) &#x2014; Activation function to be used in feed-forward.",name:"activation_fn"},{anchor:"diffusers.Transformer2DModel.num_embeds_ada_norm",description:`<strong>num_embeds_ada_norm</strong> ( <code>int</code>, <em>optional</em>) &#x2014; Pass if at least one of the norm_layers is <code>AdaLayerNorm</code>.
The number of diffusion steps used during training. Note that this is fixed at training time as it is used
to learn a number of embeddings that are added to the hidden states. During inference, you can denoise for
up to but not more than steps than <code>num_embeds_ada_norm</code>.`,name:"num_embeds_ada_norm"},{anchor:"diffusers.Transformer2DModel.attention_bias",description:`<strong>attention_bias</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Configure if the TransformerBlocks&#x2019; attention should contain a bias parameter.`,name:"attention_bias"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/attention.py#L48"}}),Vo=new $({props:{name:"forward",anchor:"diffusers.Transformer2DModel.forward",parameters:[{name:"hidden_states",val:""},{name:"encoder_hidden_states",val:" = None"},{name:"timestep",val:" = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.Transformer2DModel.forward.hidden_states",description:`<strong>hidden_states</strong> ( When discrete, <code>torch.LongTensor</code> of shape <code>(batch size, num latent pixels)</code>. &#x2014;
When continous, <code>torch.FloatTensor</code> of shape <code>(batch size, channel, height, width)</code>): Input
hidden_states`,name:"hidden_states"},{anchor:"diffusers.Transformer2DModel.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> ( <code>torch.LongTensor</code> of shape <code>(batch size, encoder_hidden_states dim)</code>, <em>optional</em>) &#x2014;
Conditional embeddings for cross attention layer. If not given, cross-attention defaults to
self-attention.`,name:"encoder_hidden_states"},{anchor:"diffusers.Transformer2DModel.forward.timestep",description:`<strong>timestep</strong> ( <code>torch.long</code>, <em>optional</em>) &#x2014;
Optional timestep to be applied as an embedding in AdaLayerNorm&#x2019;s. Used to indicate denoising step.`,name:"timestep"},{anchor:"diffusers.Transformer2DModel.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 <a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.unet_2d_condition.UNet2DConditionOutput">models.unet_2d_condition.UNet2DConditionOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/attention.py#L178",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.attention.Transformer2DModelOutput"
>Transformer2DModelOutput</a>
if <code>return_dict</code> is True, otherwise a <code>tuple</code>. When returning a tuple, the first element is the sample
tensor.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.attention.Transformer2DModelOutput"
>Transformer2DModelOutput</a> or <code>tuple</code></p>
`}}),Bo=new E({}),So=new $({props:{name:"class diffusers.models.attention.Transformer2DModelOutput",anchor:"diffusers.models.attention.Transformer2DModelOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.attention.Transformer2DModelOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code> or <code>(batch size, num_vector_embeds - 1, num_latent_pixels)</code> if <a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.Transformer2DModel">Transformer2DModel</a> is discrete) &#x2014;
Hidden states conditioned on <code>encoder_hidden_states</code> input. If discrete, returns probability distributions
for the unnoised latent pixels.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/attention.py#L30"}}),Ko=new E({}),Wo=new $({props:{name:"class diffusers.PriorTransformer",anchor:"diffusers.PriorTransformer",parameters:[{name:"num_attention_heads",val:": int = 32"},{name:"attention_head_dim",val:": int = 64"},{name:"num_layers",val:": int = 20"},{name:"embedding_dim",val:": int = 768"},{name:"num_embeddings",val:" = 77"},{name:"additional_embeddings",val:" = 4"},{name:"dropout",val:": float = 0.0"}],parametersDescription:[{anchor:"diffusers.PriorTransformer.num_attention_heads",description:"<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014; The number of heads to use for multi-head attention.",name:"num_attention_heads"},{anchor:"diffusers.PriorTransformer.attention_head_dim",description:"<strong>attention_head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014; The number of channels in each head.",name:"attention_head_dim"},{anchor:"diffusers.PriorTransformer.num_layers",description:"<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 20) &#x2014; The number of layers of Transformer blocks to use.",name:"num_layers"},{anchor:"diffusers.PriorTransformer.embedding_dim",description:`<strong>embedding_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014; The dimension of the CLIP embeddings. Note that CLIP
image embeddings and text embeddings are both the same dimension.`,name:"embedding_dim"},{anchor:"diffusers.PriorTransformer.num_embeddings",description:`<strong>num_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 77) &#x2014; The max number of clip embeddings allowed. I.e. the
length of the prompt after it has been tokenized.`,name:"num_embeddings"},{anchor:"diffusers.PriorTransformer.additional_embeddings",description:`<strong>additional_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; The number of additional tokens appended to the
projected hidden_states. The actual length of the used hidden_states is <code>num_embeddings + additional_embeddings</code>.`,name:"additional_embeddings"},{anchor:"diffusers.PriorTransformer.dropout",description:"<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014; The dropout probability to use.",name:"dropout"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/prior_transformer.py#L26"}}),Ho=new $({props:{name:"forward",anchor:"diffusers.PriorTransformer.forward",parameters:[{name:"hidden_states",val:""},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"proj_embedding",val:": FloatTensor"},{name:"encoder_hidden_states",val:": FloatTensor"},{name:"attention_mask",val:": typing.Optional[torch.BoolTensor] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.PriorTransformer.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, embedding_dim)</code>) &#x2014;
x_t, the currently predicted image embeddings.`,name:"hidden_states"},{anchor:"diffusers.PriorTransformer.forward.timestep",description:`<strong>timestep</strong> (<code>torch.long</code>) &#x2014;
Current denoising step.`,name:"timestep"},{anchor:"diffusers.PriorTransformer.forward.proj_embedding",description:`<strong>proj_embedding</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, embedding_dim)</code>) &#x2014;
Projected embedding vector the denoising process is conditioned on.`,name:"proj_embedding"},{anchor:"diffusers.PriorTransformer.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_embeddings, embedding_dim)</code>) &#x2014;
Hidden states of the text embeddings the denoising process is conditioned on.`,name:"encoder_hidden_states"},{anchor:"diffusers.PriorTransformer.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.BoolTensor</code> of shape <code>(batch_size, num_embeddings)</code>) &#x2014;
Text mask for the text embeddings.`,name:"attention_mask"},{anchor:"diffusers.PriorTransformer.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 <a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.prior_transformer.PriorTransformerOutput">models.prior_transformer.PriorTransformerOutput</a> instead of a plain
tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/prior_transformer.py#L107",returnDescription:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.prior_transformer.PriorTransformerOutput"
>PriorTransformerOutput</a> if <code>return_dict</code> is True, otherwise a <code>tuple</code>. When
returning a tuple, the first element is the sample tensor.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.11.0/en/api/models#diffusers.models.prior_transformer.PriorTransformerOutput"
>PriorTransformerOutput</a> or <code>tuple</code></p>
`}}),Yo=new E({}),Ro=new $({props:{name:"class diffusers.models.prior_transformer.PriorTransformerOutput",anchor:"diffusers.models.prior_transformer.PriorTransformerOutput",parameters:[{name:"predicted_image_embedding",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.prior_transformer.PriorTransformerOutput.predicted_image_embedding",description:`<strong>predicted_image_embedding</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, embedding_dim)</code>) &#x2014;
The predicted CLIP image embedding conditioned on the CLIP text embedding input.`,name:"predicted_image_embedding"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/prior_transformer.py#L16"}}),Jo=new E({}),Zo=new $({props:{name:"class diffusers.FlaxModelMixin",anchor:"diffusers.FlaxModelMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_flax_utils.py#L45"}}),en=new $({props:{name:"from_pretrained",anchor:"diffusers.FlaxModelMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"*model_args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids are namespaced under a user or organization name, like
<code>runwayml/stable-diffusion-v1-5</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using <a href="/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin.save_pretrained">save_pretrained()</a>,
e.g., <code>./my_model_directory/</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <code>~ModelMixin.to_fp16</code> and
<code>~ModelMixin.to_bf16</code>.`,name:"dtype"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch checkpoint save file.`,name:"from_pt"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to update the configuration object (after it being loaded) and initiate the model (e.g.,
<code>output_attentions=True</code>). Behaves differently depending on whether a <code>config</code> is provided or
automatically loaded:</p>
<ul>
<li>If a configuration is provided with <code>config</code>, <code>**kwargs</code> will be directly passed to the
underlying model&#x2019;s <code>__init__</code> method (we assume all relevant updates to the configuration have
already been done)</li>
<li>If a configuration is not provided, <code>kwargs</code> will be first passed to the configuration class
initialization function (<a href="/docs/diffusers/v0.11.0/en/api/configuration#diffusers.ConfigMixin.from_config">from_config()</a>). Each key of <code>kwargs</code> that corresponds to
a configuration attribute will be used to override said attribute with the supplied <code>kwargs</code>
value. Remaining keys that do not correspond to any configuration attribute will be passed to the
underlying model&#x2019;s <code>__init__</code> function.</li>
</ul>`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_flax_utils.py#L195"}}),vt=new hl({props:{anchor:"diffusers.FlaxModelMixin.from_pretrained.example",$$slots:{default:[m_]},$$scope:{ctx:I}}}),nn=new $({props:{name:"save_pretrained",anchor:"diffusers.FlaxModelMixin.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"is_main_process",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.FlaxModelMixin.save_pretrained.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.save_pretrained.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful when in distributed training like
TPUs and need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on
the main process to avoid race conditions.`,name:"is_main_process"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_flax_utils.py#L487"}}),rn=new $({props:{name:"to_bf16",anchor:"diffusers.FlaxModelMixin.to_bf16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.to_bf16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.to_bf16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip.`,name:"mask"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_flax_utils.py#L87"}}),xt=new hl({props:{anchor:"diffusers.FlaxModelMixin.to_bf16.example",$$slots:{default:[f_]},$$scope:{ctx:I}}}),an=new $({props:{name:"to_fp16",anchor:"diffusers.FlaxModelMixin.to_fp16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.to_fp16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.to_fp16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_flax_utils.py#L153"}}),yt=new hl({props:{anchor:"diffusers.FlaxModelMixin.to_fp16.example",$$slots:{default:[u_]},$$scope:{ctx:I}}}),ln=new $({props:{name:"to_fp32",anchor:"diffusers.FlaxModelMixin.to_fp32",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.to_fp32.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.to_fp32.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/modeling_flax_utils.py#L126"}}),$t=new hl({props:{anchor:"diffusers.FlaxModelMixin.to_fp32.example",$$slots:{default:[h_]},$$scope:{ctx:I}}}),dn=new E({}),cn=new $({props:{name:"class diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput",anchor:"diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput",parameters:[{name:"sample",val:": ndarray"}],parametersDescription:[{anchor:"diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput.sample",description:`<strong>sample</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Hidden states conditioned on <code>encoder_hidden_states</code> input. Output of last layer of model.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d_condition_flax.py#L36"}}),pn=new $({props:{name:"replace",anchor:"diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/flax/struct.py#L108"}}),mn=new E({}),fn=new $({props:{name:"class diffusers.FlaxUNet2DConditionModel",anchor:"diffusers.FlaxUNet2DConditionModel",parameters:[{name:"sample_size",val:": int = 32"},{name:"in_channels",val:": int = 4"},{name:"out_channels",val:": int = 4"},{name:"down_block_types",val:": typing.Tuple[str] = ('CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D')"},{name:"up_block_types",val:": typing.Tuple[str] = ('UpBlock2D', 'CrossAttnUpBlock2D', 'CrossAttnUpBlock2D', 'CrossAttnUpBlock2D')"},{name:"only_cross_attention",val:": typing.Union[bool, typing.Tuple[bool]] = False"},{name:"block_out_channels",val:": typing.Tuple[int] = (320, 640, 1280, 1280)"},{name:"layers_per_block",val:": int = 2"},{name:"attention_head_dim",val:": typing.Union[int, typing.Tuple[int]] = 8"},{name:"cross_attention_dim",val:": int = 1280"},{name:"dropout",val:": float = 0.0"},{name:"use_linear_projection",val:": bool = False"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"flip_sin_to_cos",val:": bool = True"},{name:"freq_shift",val:": int = 0"},{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 0x7ff068cc7a60>"},{name:"name",val:": str = None"}],parametersDescription:[{anchor:"diffusers.FlaxUNet2DConditionModel.sample_size",description:`<strong>sample_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The size of the input sample.`,name:"sample_size"},{anchor:"diffusers.FlaxUNet2DConditionModel.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of channels in the input sample.`,name:"in_channels"},{anchor:"diffusers.FlaxUNet2DConditionModel.out_channels",description:`<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of channels in the output.`,name:"out_channels"},{anchor:"diffusers.FlaxUNet2DConditionModel.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;DownBlock2D&quot;)</code>) &#x2014;
The tuple of downsample blocks to use. The corresponding class names will be: &#x201C;FlaxCrossAttnDownBlock2D&#x201D;,
&#x201C;FlaxCrossAttnDownBlock2D&#x201D;, &#x201C;FlaxCrossAttnDownBlock2D&#x201D;, &#x201C;FlaxDownBlock2D&#x201D;`,name:"down_block_types"},{anchor:"diffusers.FlaxUNet2DConditionModel.up_block_types",description:`<strong>up_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>(&quot;UpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;, &quot;CrossAttnUpBlock2D&quot;,)</code>) &#x2014;
The tuple of upsample blocks to use. The corresponding class names will be: &#x201C;FlaxUpBlock2D&#x201D;,
&#x201C;FlaxCrossAttnUpBlock2D&#x201D;, &#x201C;FlaxCrossAttnUpBlock2D&#x201D;, &#x201C;FlaxCrossAttnUpBlock2D&#x201D;`,name:"up_block_types"},{anchor:"diffusers.FlaxUNet2DConditionModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to <code>(320, 640, 1280, 1280)</code>) &#x2014;
The tuple of output channels for each block.`,name:"block_out_channels"},{anchor:"diffusers.FlaxUNet2DConditionModel.layers_per_block",description:`<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The number of layers per block.`,name:"layers_per_block"},{anchor:"diffusers.FlaxUNet2DConditionModel.attention_head_dim",description:`<strong>attention_head_dim</strong> (<code>int</code> or <code>Tuple[int]</code>, <em>optional</em>, defaults to 8) &#x2014;
The dimension of the attention heads.`,name:"attention_head_dim"},{anchor:"diffusers.FlaxUNet2DConditionModel.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
The dimension of the cross attention features.`,name:"cross_attention_dim"},{anchor:"diffusers.FlaxUNet2DConditionModel.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
Dropout probability for down, up and bottleneck blocks.`,name:"dropout"},{anchor:"diffusers.FlaxUNet2DConditionModel.flip_sin_to_cos",description:`<strong>flip_sin_to_cos</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to flip the sin to cos in the time embedding.`,name:"flip_sin_to_cos"},{anchor:"diffusers.FlaxUNet2DConditionModel.freq_shift",description:"<strong>freq_shift</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014; The frequency shift to apply to the time embedding.",name:"freq_shift"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/unet_2d_condition_flax.py#L47"}}),yn=new E({}),$n=new $({props:{name:"class diffusers.models.vae_flax.FlaxDecoderOutput",anchor:"diffusers.models.vae_flax.FlaxDecoderOutput",parameters:[{name:"sample",val:": ndarray"}],parametersDescription:[{anchor:"diffusers.models.vae_flax.FlaxDecoderOutput.sample",description:`<strong>sample</strong> (<em>jnp.ndarray</em> of shape <em>(batch_size, num_channels, height, width)</em>) &#x2014;
Decoded output sample of the model. Output of 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 jnp.float32) &#x2014;
Parameters <em>dtype</em>`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae_flax.py#L33"}}),wn=new $({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxDecoderOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/flax/struct.py#L108"}}),Dn=new E({}),kn=new $({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/v0.11.0/src/diffusers/models/vae_flax.py#L48"}}),Mn=new $({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/flax/struct.py#L108"}}),Tn=new E({}),En=new $({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:"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 0x7ff068cc7a60>"},{name:"name",val:": str = None"}],parametersDescription:[{anchor:"diffusers.FlaxAutoencoderKL.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Input channels`,name:"in_channels"},{anchor:"diffusers.FlaxAutoencoderKL.out_channels",description:`<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Output channels`,name:"out_channels"},{anchor:"diffusers.FlaxAutoencoderKL.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <em>(DownEncoderBlock2D)</em>) &#x2014;
DownEncoder block type`,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 <em>(UpDecoderBlock2D)</em>) &#x2014;
UpDecoder block type`,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 <em>(64,)</em>) &#x2014;
Tuple containing the number of output channels for each block`,name:"block_out_channels"},{anchor:"diffusers.FlaxAutoencoderKL.layers_per_block",description:`<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to <em>2</em>) &#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 <em>silu</em>) &#x2014;
Activation function`,name:"act_fn"},{anchor:"diffusers.FlaxAutoencoderKL.latent_channels",description:`<strong>latent_channels</strong> (<code>int</code>, <em>optional</em>, defaults to <em>4</em>) &#x2014;
Latent space channels`,name:"latent_channels"},{anchor:"diffusers.FlaxAutoencoderKL.norm_num_groups",description:`<strong>norm_num_groups</strong> (<code>int</code>, <em>optional</em>, defaults to <em>32</em>) &#x2014;
Norm num group`,name:"norm_num_groups"},{anchor:"diffusers.FlaxAutoencoderKL.sample_size",description:`<strong>sample_size</strong> (<code>int</code>, <em>optional</em>, defaults to <em>32</em>) &#x2014;
Sample input size`,name:"sample_size"},{anchor:"diffusers.FlaxAutoencoderKL.dtype",description:`<strong>dtype</strong> (<code>jnp.dtype</code>, <em>optional</em>, defaults to jnp.float32) &#x2014;
parameters <em>dtype</em>`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/v0.11.0/src/diffusers/models/vae_flax.py#L721"}}),{c(){x=n("meta"),M=l(),w=n("h1"),y=n("a"),k=n("span"),u(f.$$.fragment),D=l(),G=n("span"),xe=a("Models"),z=l(),S=n("p"),Ln=a(`Diffusers contains pretrained models for popular algorithms and modules for creating the next set of diffusion models.
The primary function of these models is to denoise an input sample, by modeling the distribution $p`),ms=n("em"),vl=a("\\theta(\\mathbf{x}"),bl=a(`{t-1}|\\mathbf{x}_t)$.
The models are built on the base class [\u2018ModelMixin\u2019] that is a `),fs=n("code"),xl=a("torch.nn.module"),yl=a(" with basic functionality for saving and loading models both locally and from the HuggingFace hub."),Ta=l(),ye=n("h2"),Ye=n("a"),us=n("span"),u(It.$$.fragment),$l=l(),hs=n("span"),wl=a("ModelMixin"),Ea=l(),T=n("div"),u(Vt.$$.fragment),Dl=l(),gs=n("p"),kl=a("Base class for all models."),Ml=l(),jn=n("p"),In=n("a"),Tl=a("ModelMixin"),El=a(` takes care of storing the configuration of the models and handles methods for loading, downloading
and saving models.`),Nl=l(),_s=n("ul"),ie=n("li"),vs=n("strong"),Ul=a("config_name"),Al=a(" ("),bs=n("code"),Fl=a("str"),Cl=a(`) \u2014 A filename under which the model should be stored when calling
`),Vn=n("a"),Pl=a("save_pretrained()"),Ol=a("."),ql=l(),le=n("div"),u(Bt.$$.fragment),Ll=l(),xs=n("p"),jl=a("Deactivates gradient checkpointing for the current model."),Il=l(),ys=n("p"),Vl=a(`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),Bl=l(),Ge=n("div"),u(zt.$$.fragment),zl=l(),$s=n("p"),Sl=a("Disable memory efficient attention as implemented in xformers."),Kl=l(),de=n("div"),u(St.$$.fragment),Wl=l(),ws=n("p"),Xl=a("Activates gradient checkpointing for the current model."),Ql=l(),Ds=n("p"),Hl=a(`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),Yl=l(),R=n("div"),u(Kt.$$.fragment),Gl=l(),ks=n("p"),Rl=a("Enable memory efficient attention as implemented in xformers."),Jl=l(),Ms=n("p"),Zl=a(`When this option is enabled, you should observe lower GPU memory usage and a potential speed up at inference
time. Speed up at training time is not guaranteed.`),ed=l(),Ts=n("p"),td=a(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),od=l(),A=n("div"),u(Wt.$$.fragment),nd=l(),Es=n("p"),sd=a("Instantiate a pretrained pytorch model from a pre-trained model configuration."),rd=l(),$e=n("p"),ad=a("The model is set in evaluation mode by default using "),Ns=n("code"),id=a("model.eval()"),ld=a(` (Dropout modules are deactivated). To train
the model, you should first set it back in training mode with `),Us=n("code"),dd=a("model.train()"),cd=a("."),pd=l(),Xt=n("p"),md=a("The warning "),As=n("em"),fd=a("Weights from XXX not initialized from pretrained model"),ud=a(` means that the weights of XXX do not come
pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning
task.`),hd=l(),Qt=n("p"),gd=a("The warning "),Fs=n("em"),_d=a("Weights from XXX not used in YYY"),vd=a(` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),bd=l(),u(Re.$$.fragment),xd=l(),u(Je.$$.fragment),yd=l(),Ze=n("div"),u(Ht.$$.fragment),$d=l(),Cs=n("p"),wd=a("Get number of (optionally, trainable or non-embeddings) parameters in the module."),Dd=l(),et=n("div"),u(Yt.$$.fragment),kd=l(),Gt=n("p"),Md=a(`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),Ps=n("code"),Td=a("[from_pretrained()](/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin.from_pretrained)"),Ed=a(" class method."),Na=l(),we=n("h2"),tt=n("a"),Os=n("span"),u(Rt.$$.fragment),Nd=l(),qs=n("span"),Ud=a("UNet2DOutput"),Ua=l(),Jt=n("div"),u(Zt.$$.fragment),Aa=l(),De=n("h2"),ot=n("a"),Ls=n("span"),u(eo.$$.fragment),Ad=l(),js=n("span"),Fd=a("UNet2DModel"),Fa=l(),K=n("div"),u(to.$$.fragment),Cd=l(),Is=n("p"),Pd=a("UNet2DModel is a 2D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),Od=l(),oo=n("p"),qd=a("This model inherits from "),Bn=n("a"),Ld=a("ModelMixin"),jd=a(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Id=l(),zn=n("div"),u(no.$$.fragment),Ca=l(),ke=n("h2"),nt=n("a"),Vs=n("span"),u(so.$$.fragment),Vd=l(),Bs=n("span"),Bd=a("UNet1DOutput"),Pa=l(),ro=n("div"),u(ao.$$.fragment),Oa=l(),Me=n("h2"),st=n("a"),zs=n("span"),u(io.$$.fragment),zd=l(),Ss=n("span"),Sd=a("UNet1DModel"),qa=l(),W=n("div"),u(lo.$$.fragment),Kd=l(),Ks=n("p"),Wd=a("UNet1DModel is a 1D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),Xd=l(),co=n("p"),Qd=a("This model inherits from "),Sn=n("a"),Hd=a("ModelMixin"),Yd=a(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Gd=l(),Kn=n("div"),u(po.$$.fragment),La=l(),Te=n("h2"),rt=n("a"),Ws=n("span"),u(mo.$$.fragment),Rd=l(),Xs=n("span"),Jd=a("UNet2DConditionOutput"),ja=l(),fo=n("div"),u(uo.$$.fragment),Ia=l(),Ee=n("h2"),at=n("a"),Qs=n("span"),u(ho.$$.fragment),Zd=l(),Hs=n("span"),ec=a("UNet2DConditionModel"),Va=l(),q=n("div"),u(go.$$.fragment),tc=l(),Ys=n("p"),oc=a(`UNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a timestep
and returns sample shaped output.`),nc=l(),_o=n("p"),sc=a("This model inherits from "),Wn=n("a"),rc=a("ModelMixin"),ac=a(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),ic=l(),Xn=n("div"),u(vo.$$.fragment),lc=l(),ce=n("div"),u(bo.$$.fragment),dc=l(),Gs=n("p"),cc=a("Enable sliced attention computation."),pc=l(),Rs=n("p"),mc=a(`When this option is enabled, the attention module will split the input tensor in slices, to compute attention
in several steps. This is useful to save some memory in exchange for a small speed decrease.`),Ba=l(),Ne=n("h2"),it=n("a"),Js=n("span"),u(xo.$$.fragment),fc=l(),Zs=n("span"),uc=a("DecoderOutput"),za=l(),Ue=n("div"),u(yo.$$.fragment),hc=l(),er=n("p"),gc=a("Output of decoding method."),Sa=l(),Ae=n("h2"),lt=n("a"),tr=n("span"),u($o.$$.fragment),_c=l(),or=n("span"),vc=a("VQEncoderOutput"),Ka=l(),Fe=n("div"),u(wo.$$.fragment),bc=l(),nr=n("p"),xc=a("Output of VQModel encoding method."),Wa=l(),Ce=n("h2"),dt=n("a"),sr=n("span"),u(Do.$$.fragment),yc=l(),rr=n("span"),$c=a("VQModel"),Xa=l(),X=n("div"),u(ko.$$.fragment),wc=l(),ar=n("p"),Dc=a(`VQ-VAE model from the paper Neural Discrete Representation Learning by Aaron van den Oord, Oriol Vinyals and Koray
Kavukcuoglu.`),kc=l(),Mo=n("p"),Mc=a("This model inherits from "),Qn=n("a"),Tc=a("ModelMixin"),Ec=a(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Nc=l(),Hn=n("div"),u(To.$$.fragment),Qa=l(),Pe=n("h2"),ct=n("a"),ir=n("span"),u(Eo.$$.fragment),Uc=l(),lr=n("span"),Ac=a("AutoencoderKLOutput"),Ha=l(),Oe=n("div"),u(No.$$.fragment),Fc=l(),dr=n("p"),Cc=a("Output of AutoencoderKL encoding method."),Ya=l(),qe=n("h2"),pt=n("a"),cr=n("span"),u(Uo.$$.fragment),Pc=l(),pr=n("span"),Oc=a("AutoencoderKL"),Ga=l(),F=n("div"),u(Ao.$$.fragment),qc=l(),mr=n("p"),Lc=a(`Variational Autoencoder (VAE) model with KL loss from the paper Auto-Encoding Variational Bayes by Diederik P. Kingma
and Max Welling.`),jc=l(),Fo=n("p"),Ic=a("This model inherits from "),Yn=n("a"),Vc=a("ModelMixin"),Bc=a(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),zc=l(),mt=n("div"),u(Co.$$.fragment),Sc=l(),Po=n("p"),Kc=a("Disable sliced VAE decoding. If "),fr=n("code"),Wc=a("enable_slicing"),Xc=a(` was previously invoked, this method will go back to computing
decoding in one step.`),Qc=l(),pe=n("div"),u(Oo.$$.fragment),Hc=l(),ur=n("p"),Yc=a("Enable sliced VAE decoding."),Gc=l(),hr=n("p"),Rc=a(`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.`),Jc=l(),Gn=n("div"),u(qo.$$.fragment),Ra=l(),Le=n("h2"),ft=n("a"),gr=n("span"),u(Lo.$$.fragment),Zc=l(),_r=n("span"),ep=a("Transformer2DModel"),Ja=l(),C=n("div"),u(jo.$$.fragment),tp=l(),vr=n("p"),op=a(`Transformer model for image-like data. Takes either discrete (classes of vector embeddings) or continuous (actual
embeddings) inputs.`),np=l(),br=n("p"),sp=a(`When input is continuous: First, project the input (aka embedding) and reshape to b, t, d. Then apply standard
transformer action. Finally, reshape to image.`),rp=l(),Io=n("p"),ap=a(`When input is discrete: First, input (classes of latent pixels) is converted to embeddings and has positional
embeddings applied, see `),xr=n("code"),ip=a("ImagePositionalEmbeddings"),lp=a(`. Then apply standard transformer action. Finally, predict
classes of unnoised image.`),dp=l(),yr=n("p"),cp=a(`Note that it is assumed one of the input classes is the masked latent pixel. The predicted classes of the unnoised
image do not contain a prediction for the masked pixel as the unnoised image cannot be masked.`),pp=l(),Rn=n("div"),u(Vo.$$.fragment),Za=l(),je=n("h2"),ut=n("a"),$r=n("span"),u(Bo.$$.fragment),mp=l(),wr=n("span"),fp=a("Transformer2DModelOutput"),ei=l(),zo=n("div"),u(So.$$.fragment),ti=l(),Ie=n("h2"),ht=n("a"),Dr=n("span"),u(Ko.$$.fragment),up=l(),kr=n("span"),hp=a("PriorTransformer"),oi=l(),L=n("div"),u(Wo.$$.fragment),gp=l(),Mr=n("p"),_p=a(`The prior transformer from unCLIP is used to predict CLIP image embeddings from CLIP text embeddings. Note that the
transformer predicts the image embeddings through a denoising diffusion process.`),vp=l(),Xo=n("p"),bp=a("This model inherits from "),Jn=n("a"),xp=a("ModelMixin"),yp=a(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),$p=l(),Zn=n("p"),wp=a("For more details, see the original paper: "),Qo=n("a"),Dp=a("https://arxiv.org/abs/2204.06125"),kp=l(),es=n("div"),u(Ho.$$.fragment),ni=l(),Ve=n("h2"),gt=n("a"),Tr=n("span"),u(Yo.$$.fragment),Mp=l(),Er=n("span"),Tp=a("PriorTransformerOutput"),si=l(),Go=n("div"),u(Ro.$$.fragment),ri=l(),Be=n("h2"),_t=n("a"),Nr=n("span"),u(Jo.$$.fragment),Ep=l(),Ur=n("span"),Np=a("FlaxModelMixin"),ai=l(),U=n("div"),u(Zo.$$.fragment),Up=l(),Ar=n("p"),Ap=a("Base class for all flax models."),Fp=l(),ts=n("p"),os=n("a"),Cp=a("FlaxModelMixin"),Pp=a(` takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models.`),Op=l(),V=n("div"),u(en.$$.fragment),qp=l(),Fr=n("p"),Lp=a("Instantiate a pretrained flax model from a pre-trained model configuration."),jp=l(),tn=n("p"),Ip=a("The warning "),Cr=n("em"),Vp=a("Weights from XXX not initialized from pretrained model"),Bp=a(` means that the weights of XXX do not come
pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning
task.`),zp=l(),on=n("p"),Sp=a("The warning "),Pr=n("em"),Kp=a("Weights from XXX not used in YYY"),Wp=a(` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),Xp=l(),u(vt.$$.fragment),Qp=l(),bt=n("div"),u(nn.$$.fragment),Hp=l(),sn=n("p"),Yp=a(`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),Or=n("code"),Gp=a("[from_pretrained()](/docs/diffusers/v0.11.0/en/api/models#diffusers.FlaxModelMixin.from_pretrained)"),Rp=a(" class method"),Jp=l(),J=n("div"),u(rn.$$.fragment),Zp=l(),Q=n("p"),em=a("Cast the floating-point "),qr=n("code"),tm=a("params"),om=a(" to "),Lr=n("code"),nm=a("jax.numpy.bfloat16"),sm=a(". This returns a new "),jr=n("code"),rm=a("params"),am=a(` tree and does not cast
the `),Ir=n("code"),im=a("params"),lm=a(" in place."),dm=l(),Vr=n("p"),cm=a(`This method can be used on TPU to explicitly convert the model parameters to bfloat16 precision to do full
half-precision training or to save weights in bfloat16 for inference in order to save memory and improve speed.`),pm=l(),u(xt.$$.fragment),mm=l(),Z=n("div"),u(an.$$.fragment),fm=l(),H=n("p"),um=a("Cast the floating-point "),Br=n("code"),hm=a("params"),gm=a(" to "),zr=n("code"),_m=a("jax.numpy.float16"),vm=a(". This returns a new "),Sr=n("code"),bm=a("params"),xm=a(` tree and does not cast the
`),Kr=n("code"),ym=a("params"),$m=a(" in place."),wm=l(),Wr=n("p"),Dm=a(`This method can be used on GPU to explicitly convert the model parameters to float16 precision to do full
half-precision training or to save weights in float16 for inference in order to save memory and improve speed.`),km=l(),u(yt.$$.fragment),Mm=l(),me=n("div"),u(ln.$$.fragment),Tm=l(),Y=n("p"),Em=a("Cast the floating-point "),Xr=n("code"),Nm=a("params"),Um=a(" to "),Qr=n("code"),Am=a("jax.numpy.float32"),Fm=a(`. This method can be used to explicitly convert the
model parameters to fp32 precision. This returns a new `),Hr=n("code"),Cm=a("params"),Pm=a(" tree and does not cast the "),Yr=n("code"),Om=a("params"),qm=a(" in place."),Lm=l(),u($t.$$.fragment),ii=l(),ze=n("h2"),wt=n("a"),Gr=n("span"),u(dn.$$.fragment),jm=l(),Rr=n("span"),Im=a("FlaxUNet2DConditionOutput"),li=l(),Se=n("div"),u(cn.$$.fragment),Vm=l(),Dt=n("div"),u(pn.$$.fragment),Bm=l(),Jr=n("p"),zm=a("\u201CReturns a new object replacing the specified fields with new values."),di=l(),Ke=n("h2"),kt=n("a"),Zr=n("span"),u(mn.$$.fragment),Sm=l(),ea=n("span"),Km=a("FlaxUNet2DConditionModel"),ci=l(),P=n("div"),u(fn.$$.fragment),Wm=l(),ta=n("p"),Xm=a(`FlaxUNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a
timestep and returns sample shaped output.`),Qm=l(),un=n("p"),Hm=a("This model inherits from "),ns=n("a"),Ym=a("FlaxModelMixin"),Gm=a(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),Rm=l(),hn=n("p"),Jm=a("Also, this model is a Flax Linen "),gn=n("a"),Zm=a("flax.linen.Module"),ef=a(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),tf=l(),oa=n("p"),of=a("Finally, this model supports inherent JAX features such as:"),nf=l(),ne=n("ul"),na=n("li"),_n=n("a"),sf=a("Just-In-Time (JIT) compilation"),rf=l(),sa=n("li"),vn=n("a"),af=a("Automatic Differentiation"),lf=l(),ra=n("li"),bn=n("a"),df=a("Vectorization"),cf=l(),aa=n("li"),xn=n("a"),pf=a("Parallelization"),pi=l(),We=n("h2"),Mt=n("a"),ia=n("span"),u(yn.$$.fragment),mf=l(),la=n("span"),ff=a("FlaxDecoderOutput"),mi=l(),se=n("div"),u($n.$$.fragment),uf=l(),da=n("p"),hf=a("Output of decoding method."),gf=l(),Tt=n("div"),u(wn.$$.fragment),_f=l(),ca=n("p"),vf=a("\u201CReturns a new object replacing the specified fields with new values."),fi=l(),Xe=n("h2"),Et=n("a"),pa=n("span"),u(Dn.$$.fragment),bf=l(),ma=n("span"),xf=a("FlaxAutoencoderKLOutput"),ui=l(),re=n("div"),u(kn.$$.fragment),yf=l(),fa=n("p"),$f=a("Output of AutoencoderKL encoding method."),wf=l(),Nt=n("div"),u(Mn.$$.fragment),Df=l(),ua=n("p"),kf=a("\u201CReturns a new object replacing the specified fields with new values."),hi=l(),Qe=n("h2"),Ut=n("a"),ha=n("span"),u(Tn.$$.fragment),Mf=l(),ga=n("span"),Tf=a("FlaxAutoencoderKL"),gi=l(),j=n("div"),u(En.$$.fragment),Ef=l(),_a=n("p"),Nf=a(`Flax Implementation of Variational Autoencoder (VAE) model with KL loss from the paper Auto-Encoding Variational
Bayes by Diederik P. Kingma and Max Welling.`),Uf=l(),Nn=n("p"),Af=a("This model is a Flax Linen "),Un=n("a"),Ff=a("flax.linen.Module"),Cf=a(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Pf=l(),va=n("p"),Of=a("Finally, this model supports inherent JAX features such as:"),qf=l(),ae=n("ul"),ba=n("li"),An=n("a"),Lf=a("Just-In-Time (JIT) compilation"),jf=l(),xa=n("li"),Fn=n("a"),If=a("Automatic Differentiation"),Vf=l(),ya=n("li"),Cn=n("a"),Bf=a("Vectorization"),zf=l(),$a=n("li"),Pn=n("a"),Sf=a("Parallelization"),this.h()},l(t){const p=l_('[data-svelte="svelte-1phssyn"]',document.head);x=s(p,"META",{name:!0,content:!0}),p.forEach(o),M=d(t),w=s(t,"H1",{class:!0});var On=r(w);y=s(On,"A",{id:!0,class:!0,href:!0});var wa=r(y);k=s(wa,"SPAN",{});var Da=r(k);h(f.$$.fragment,Da),Da.forEach(o),wa.forEach(o),D=d(On),G=s(On,"SPAN",{});var ka=r(G);xe=i(ka,"Models"),ka.forEach(o),On.forEach(o),z=d(t),S=s(t,"P",{});var He=r(S);Ln=i(He,`Diffusers contains pretrained models for popular algorithms and modules for creating the next set of diffusion models.
The primary function of these models is to denoise an input sample, by modeling the distribution $p`),ms=s(He,"EM",{});var Ma=r(ms);vl=i(Ma,"\\theta(\\mathbf{x}"),Ma.forEach(o),bl=i(He,`{t-1}|\\mathbf{x}_t)$.
The models are built on the base class [\u2018ModelMixin\u2019] that is a `),fs=s(He,"CODE",{});var Qf=r(fs);xl=i(Qf,"torch.nn.module"),Qf.forEach(o),yl=i(He," with basic functionality for saving and loading models both locally and from the HuggingFace hub."),He.forEach(o),Ta=d(t),ye=s(t,"H2",{class:!0});var vi=r(ye);Ye=s(vi,"A",{id:!0,class:!0,href:!0});var Hf=r(Ye);us=s(Hf,"SPAN",{});var Yf=r(us);h(It.$$.fragment,Yf),Yf.forEach(o),Hf.forEach(o),$l=d(vi),hs=s(vi,"SPAN",{});var Gf=r(hs);wl=i(Gf,"ModelMixin"),Gf.forEach(o),vi.forEach(o),Ea=d(t),T=s(t,"DIV",{class:!0});var N=r(T);h(Vt.$$.fragment,N),Dl=d(N),gs=s(N,"P",{});var Rf=r(gs);kl=i(Rf,"Base class for all models."),Rf.forEach(o),Ml=d(N),jn=s(N,"P",{});var Kf=r(jn);In=s(Kf,"A",{href:!0});var Jf=r(In);Tl=i(Jf,"ModelMixin"),Jf.forEach(o),El=i(Kf,` takes care of storing the configuration of the models and handles methods for loading, downloading
and saving models.`),Kf.forEach(o),Nl=d(N),_s=s(N,"UL",{});var Zf=r(_s);ie=s(Zf,"LI",{});var qn=r(ie);vs=s(qn,"STRONG",{});var eu=r(vs);Ul=i(eu,"config_name"),eu.forEach(o),Al=i(qn," ("),bs=s(qn,"CODE",{});var tu=r(bs);Fl=i(tu,"str"),tu.forEach(o),Cl=i(qn,`) \u2014 A filename under which the model should be stored when calling
`),Vn=s(qn,"A",{href:!0});var ou=r(Vn);Pl=i(ou,"save_pretrained()"),ou.forEach(o),Ol=i(qn,"."),qn.forEach(o),Zf.forEach(o),ql=d(N),le=s(N,"DIV",{class:!0});var ss=r(le);h(Bt.$$.fragment,ss),Ll=d(ss),xs=s(ss,"P",{});var nu=r(xs);jl=i(nu,"Deactivates gradient checkpointing for the current model."),nu.forEach(o),Il=d(ss),ys=s(ss,"P",{});var su=r(ys);Vl=i(su,`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),su.forEach(o),ss.forEach(o),Bl=d(N),Ge=s(N,"DIV",{class:!0});var bi=r(Ge);h(zt.$$.fragment,bi),zl=d(bi),$s=s(bi,"P",{});var ru=r($s);Sl=i(ru,"Disable memory efficient attention as implemented in xformers."),ru.forEach(o),bi.forEach(o),Kl=d(N),de=s(N,"DIV",{class:!0});var rs=r(de);h(St.$$.fragment,rs),Wl=d(rs),ws=s(rs,"P",{});var au=r(ws);Xl=i(au,"Activates gradient checkpointing for the current model."),au.forEach(o),Ql=d(rs),Ds=s(rs,"P",{});var iu=r(Ds);Hl=i(iu,`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),iu.forEach(o),rs.forEach(o),Yl=d(N),R=s(N,"DIV",{class:!0});var At=r(R);h(Kt.$$.fragment,At),Gl=d(At),ks=s(At,"P",{});var lu=r(ks);Rl=i(lu,"Enable memory efficient attention as implemented in xformers."),lu.forEach(o),Jl=d(At),Ms=s(At,"P",{});var du=r(Ms);Zl=i(du,`When this option is enabled, you should observe lower GPU memory usage and a potential speed up at inference
time. Speed up at training time is not guaranteed.`),du.forEach(o),ed=d(At),Ts=s(At,"P",{});var cu=r(Ts);td=i(cu,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),cu.forEach(o),At.forEach(o),od=d(N),A=s(N,"DIV",{class:!0});var B=r(A);h(Wt.$$.fragment,B),nd=d(B),Es=s(B,"P",{});var pu=r(Es);sd=i(pu,"Instantiate a pretrained pytorch model from a pre-trained model configuration."),pu.forEach(o),rd=d(B),$e=s(B,"P",{});var as=r($e);ad=i(as,"The model is set in evaluation mode by default using "),Ns=s(as,"CODE",{});var mu=r(Ns);id=i(mu,"model.eval()"),mu.forEach(o),ld=i(as,` (Dropout modules are deactivated). To train
the model, you should first set it back in training mode with `),Us=s(as,"CODE",{});var fu=r(Us);dd=i(fu,"model.train()"),fu.forEach(o),cd=i(as,"."),as.forEach(o),pd=d(B),Xt=s(B,"P",{});var xi=r(Xt);md=i(xi,"The warning "),As=s(xi,"EM",{});var uu=r(As);fd=i(uu,"Weights from XXX not initialized from pretrained model"),uu.forEach(o),ud=i(xi,` means that the weights of XXX do not come
pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning
task.`),xi.forEach(o),hd=d(B),Qt=s(B,"P",{});var yi=r(Qt);gd=i(yi,"The warning "),Fs=s(yi,"EM",{});var hu=r(Fs);_d=i(hu,"Weights from XXX not used in YYY"),hu.forEach(o),vd=i(yi,` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),yi.forEach(o),bd=d(B),h(Re.$$.fragment,B),xd=d(B),h(Je.$$.fragment,B),B.forEach(o),yd=d(N),Ze=s(N,"DIV",{class:!0});var $i=r(Ze);h(Ht.$$.fragment,$i),$d=d($i),Cs=s($i,"P",{});var gu=r(Cs);wd=i(gu,"Get number of (optionally, trainable or non-embeddings) parameters in the module."),gu.forEach(o),$i.forEach(o),Dd=d(N),et=s(N,"DIV",{class:!0});var wi=r(et);h(Yt.$$.fragment,wi),kd=d(wi),Gt=s(wi,"P",{});var Di=r(Gt);Md=i(Di,`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),Ps=s(Di,"CODE",{});var _u=r(Ps);Td=i(_u,"[from_pretrained()](/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin.from_pretrained)"),_u.forEach(o),Ed=i(Di," class method."),Di.forEach(o),wi.forEach(o),N.forEach(o),Na=d(t),we=s(t,"H2",{class:!0});var ki=r(we);tt=s(ki,"A",{id:!0,class:!0,href:!0});var vu=r(tt);Os=s(vu,"SPAN",{});var bu=r(Os);h(Rt.$$.fragment,bu),bu.forEach(o),vu.forEach(o),Nd=d(ki),qs=s(ki,"SPAN",{});var xu=r(qs);Ud=i(xu,"UNet2DOutput"),xu.forEach(o),ki.forEach(o),Ua=d(t),Jt=s(t,"DIV",{class:!0});var yu=r(Jt);h(Zt.$$.fragment,yu),yu.forEach(o),Aa=d(t),De=s(t,"H2",{class:!0});var Mi=r(De);ot=s(Mi,"A",{id:!0,class:!0,href:!0});var $u=r(ot);Ls=s($u,"SPAN",{});var wu=r(Ls);h(eo.$$.fragment,wu),wu.forEach(o),$u.forEach(o),Ad=d(Mi),js=s(Mi,"SPAN",{});var Du=r(js);Fd=i(Du,"UNet2DModel"),Du.forEach(o),Mi.forEach(o),Fa=d(t),K=s(t,"DIV",{class:!0});var Ft=r(K);h(to.$$.fragment,Ft),Cd=d(Ft),Is=s(Ft,"P",{});var ku=r(Is);Pd=i(ku,"UNet2DModel is a 2D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),ku.forEach(o),Od=d(Ft),oo=s(Ft,"P",{});var Ti=r(oo);qd=i(Ti,"This model inherits from "),Bn=s(Ti,"A",{href:!0});var Mu=r(Bn);Ld=i(Mu,"ModelMixin"),Mu.forEach(o),jd=i(Ti,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Ti.forEach(o),Id=d(Ft),zn=s(Ft,"DIV",{class:!0});var Tu=r(zn);h(no.$$.fragment,Tu),Tu.forEach(o),Ft.forEach(o),Ca=d(t),ke=s(t,"H2",{class:!0});var Ei=r(ke);nt=s(Ei,"A",{id:!0,class:!0,href:!0});var Eu=r(nt);Vs=s(Eu,"SPAN",{});var Nu=r(Vs);h(so.$$.fragment,Nu),Nu.forEach(o),Eu.forEach(o),Vd=d(Ei),Bs=s(Ei,"SPAN",{});var Uu=r(Bs);Bd=i(Uu,"UNet1DOutput"),Uu.forEach(o),Ei.forEach(o),Pa=d(t),ro=s(t,"DIV",{class:!0});var Au=r(ro);h(ao.$$.fragment,Au),Au.forEach(o),Oa=d(t),Me=s(t,"H2",{class:!0});var Ni=r(Me);st=s(Ni,"A",{id:!0,class:!0,href:!0});var Fu=r(st);zs=s(Fu,"SPAN",{});var Cu=r(zs);h(io.$$.fragment,Cu),Cu.forEach(o),Fu.forEach(o),zd=d(Ni),Ss=s(Ni,"SPAN",{});var Pu=r(Ss);Sd=i(Pu,"UNet1DModel"),Pu.forEach(o),Ni.forEach(o),qa=d(t),W=s(t,"DIV",{class:!0});var Ct=r(W);h(lo.$$.fragment,Ct),Kd=d(Ct),Ks=s(Ct,"P",{});var Ou=r(Ks);Wd=i(Ou,"UNet1DModel is a 1D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),Ou.forEach(o),Xd=d(Ct),co=s(Ct,"P",{});var Ui=r(co);Qd=i(Ui,"This model inherits from "),Sn=s(Ui,"A",{href:!0});var qu=r(Sn);Hd=i(qu,"ModelMixin"),qu.forEach(o),Yd=i(Ui,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Ui.forEach(o),Gd=d(Ct),Kn=s(Ct,"DIV",{class:!0});var Lu=r(Kn);h(po.$$.fragment,Lu),Lu.forEach(o),Ct.forEach(o),La=d(t),Te=s(t,"H2",{class:!0});var Ai=r(Te);rt=s(Ai,"A",{id:!0,class:!0,href:!0});var ju=r(rt);Ws=s(ju,"SPAN",{});var Iu=r(Ws);h(mo.$$.fragment,Iu),Iu.forEach(o),ju.forEach(o),Rd=d(Ai),Xs=s(Ai,"SPAN",{});var Vu=r(Xs);Jd=i(Vu,"UNet2DConditionOutput"),Vu.forEach(o),Ai.forEach(o),ja=d(t),fo=s(t,"DIV",{class:!0});var Bu=r(fo);h(uo.$$.fragment,Bu),Bu.forEach(o),Ia=d(t),Ee=s(t,"H2",{class:!0});var Fi=r(Ee);at=s(Fi,"A",{id:!0,class:!0,href:!0});var zu=r(at);Qs=s(zu,"SPAN",{});var Su=r(Qs);h(ho.$$.fragment,Su),Su.forEach(o),zu.forEach(o),Zd=d(Fi),Hs=s(Fi,"SPAN",{});var Ku=r(Hs);ec=i(Ku,"UNet2DConditionModel"),Ku.forEach(o),Fi.forEach(o),Va=d(t),q=s(t,"DIV",{class:!0});var fe=r(q);h(go.$$.fragment,fe),tc=d(fe),Ys=s(fe,"P",{});var Wu=r(Ys);oc=i(Wu,`UNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a timestep
and returns sample shaped output.`),Wu.forEach(o),nc=d(fe),_o=s(fe,"P",{});var Ci=r(_o);sc=i(Ci,"This model inherits from "),Wn=s(Ci,"A",{href:!0});var Xu=r(Wn);rc=i(Xu,"ModelMixin"),Xu.forEach(o),ac=i(Ci,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),Ci.forEach(o),ic=d(fe),Xn=s(fe,"DIV",{class:!0});var Qu=r(Xn);h(vo.$$.fragment,Qu),Qu.forEach(o),lc=d(fe),ce=s(fe,"DIV",{class:!0});var is=r(ce);h(bo.$$.fragment,is),dc=d(is),Gs=s(is,"P",{});var Hu=r(Gs);cc=i(Hu,"Enable sliced attention computation."),Hu.forEach(o),pc=d(is),Rs=s(is,"P",{});var Yu=r(Rs);mc=i(Yu,`When this option is enabled, the attention module will split the input tensor in slices, to compute attention
in several steps. This is useful to save some memory in exchange for a small speed decrease.`),Yu.forEach(o),is.forEach(o),fe.forEach(o),Ba=d(t),Ne=s(t,"H2",{class:!0});var Pi=r(Ne);it=s(Pi,"A",{id:!0,class:!0,href:!0});var Gu=r(it);Js=s(Gu,"SPAN",{});var Ru=r(Js);h(xo.$$.fragment,Ru),Ru.forEach(o),Gu.forEach(o),fc=d(Pi),Zs=s(Pi,"SPAN",{});var Ju=r(Zs);uc=i(Ju,"DecoderOutput"),Ju.forEach(o),Pi.forEach(o),za=d(t),Ue=s(t,"DIV",{class:!0});var Oi=r(Ue);h(yo.$$.fragment,Oi),hc=d(Oi),er=s(Oi,"P",{});var Zu=r(er);gc=i(Zu,"Output of decoding method."),Zu.forEach(o),Oi.forEach(o),Sa=d(t),Ae=s(t,"H2",{class:!0});var qi=r(Ae);lt=s(qi,"A",{id:!0,class:!0,href:!0});var eh=r(lt);tr=s(eh,"SPAN",{});var th=r(tr);h($o.$$.fragment,th),th.forEach(o),eh.forEach(o),_c=d(qi),or=s(qi,"SPAN",{});var oh=r(or);vc=i(oh,"VQEncoderOutput"),oh.forEach(o),qi.forEach(o),Ka=d(t),Fe=s(t,"DIV",{class:!0});var Li=r(Fe);h(wo.$$.fragment,Li),bc=d(Li),nr=s(Li,"P",{});var nh=r(nr);xc=i(nh,"Output of VQModel encoding method."),nh.forEach(o),Li.forEach(o),Wa=d(t),Ce=s(t,"H2",{class:!0});var ji=r(Ce);dt=s(ji,"A",{id:!0,class:!0,href:!0});var sh=r(dt);sr=s(sh,"SPAN",{});var rh=r(sr);h(Do.$$.fragment,rh),rh.forEach(o),sh.forEach(o),yc=d(ji),rr=s(ji,"SPAN",{});var ah=r(rr);$c=i(ah,"VQModel"),ah.forEach(o),ji.forEach(o),Xa=d(t),X=s(t,"DIV",{class:!0});var Pt=r(X);h(ko.$$.fragment,Pt),wc=d(Pt),ar=s(Pt,"P",{});var ih=r(ar);Dc=i(ih,`VQ-VAE model from the paper Neural Discrete Representation Learning by Aaron van den Oord, Oriol Vinyals and Koray
Kavukcuoglu.`),ih.forEach(o),kc=d(Pt),Mo=s(Pt,"P",{});var Ii=r(Mo);Mc=i(Ii,"This model inherits from "),Qn=s(Ii,"A",{href:!0});var lh=r(Qn);Tc=i(lh,"ModelMixin"),lh.forEach(o),Ec=i(Ii,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Ii.forEach(o),Nc=d(Pt),Hn=s(Pt,"DIV",{class:!0});var dh=r(Hn);h(To.$$.fragment,dh),dh.forEach(o),Pt.forEach(o),Qa=d(t),Pe=s(t,"H2",{class:!0});var Vi=r(Pe);ct=s(Vi,"A",{id:!0,class:!0,href:!0});var ch=r(ct);ir=s(ch,"SPAN",{});var ph=r(ir);h(Eo.$$.fragment,ph),ph.forEach(o),ch.forEach(o),Uc=d(Vi),lr=s(Vi,"SPAN",{});var mh=r(lr);Ac=i(mh,"AutoencoderKLOutput"),mh.forEach(o),Vi.forEach(o),Ha=d(t),Oe=s(t,"DIV",{class:!0});var Bi=r(Oe);h(No.$$.fragment,Bi),Fc=d(Bi),dr=s(Bi,"P",{});var fh=r(dr);Cc=i(fh,"Output of AutoencoderKL encoding method."),fh.forEach(o),Bi.forEach(o),Ya=d(t),qe=s(t,"H2",{class:!0});var zi=r(qe);pt=s(zi,"A",{id:!0,class:!0,href:!0});var uh=r(pt);cr=s(uh,"SPAN",{});var hh=r(cr);h(Uo.$$.fragment,hh),hh.forEach(o),uh.forEach(o),Pc=d(zi),pr=s(zi,"SPAN",{});var gh=r(pr);Oc=i(gh,"AutoencoderKL"),gh.forEach(o),zi.forEach(o),Ga=d(t),F=s(t,"DIV",{class:!0});var ee=r(F);h(Ao.$$.fragment,ee),qc=d(ee),mr=s(ee,"P",{});var _h=r(mr);Lc=i(_h,`Variational Autoencoder (VAE) model with KL loss from the paper Auto-Encoding Variational Bayes by Diederik P. Kingma
and Max Welling.`),_h.forEach(o),jc=d(ee),Fo=s(ee,"P",{});var Si=r(Fo);Ic=i(Si,"This model inherits from "),Yn=s(Si,"A",{href:!0});var vh=r(Yn);Vc=i(vh,"ModelMixin"),vh.forEach(o),Bc=i(Si,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Si.forEach(o),zc=d(ee),mt=s(ee,"DIV",{class:!0});var Ki=r(mt);h(Co.$$.fragment,Ki),Sc=d(Ki),Po=s(Ki,"P",{});var Wi=r(Po);Kc=i(Wi,"Disable sliced VAE decoding. If "),fr=s(Wi,"CODE",{});var bh=r(fr);Wc=i(bh,"enable_slicing"),bh.forEach(o),Xc=i(Wi,` was previously invoked, this method will go back to computing
decoding in one step.`),Wi.forEach(o),Ki.forEach(o),Qc=d(ee),pe=s(ee,"DIV",{class:!0});var ls=r(pe);h(Oo.$$.fragment,ls),Hc=d(ls),ur=s(ls,"P",{});var xh=r(ur);Yc=i(xh,"Enable sliced VAE decoding."),xh.forEach(o),Gc=d(ls),hr=s(ls,"P",{});var yh=r(hr);Rc=i(yh,`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.`),yh.forEach(o),ls.forEach(o),Jc=d(ee),Gn=s(ee,"DIV",{class:!0});var $h=r(Gn);h(qo.$$.fragment,$h),$h.forEach(o),ee.forEach(o),Ra=d(t),Le=s(t,"H2",{class:!0});var Xi=r(Le);ft=s(Xi,"A",{id:!0,class:!0,href:!0});var wh=r(ft);gr=s(wh,"SPAN",{});var Dh=r(gr);h(Lo.$$.fragment,Dh),Dh.forEach(o),wh.forEach(o),Zc=d(Xi),_r=s(Xi,"SPAN",{});var kh=r(_r);ep=i(kh,"Transformer2DModel"),kh.forEach(o),Xi.forEach(o),Ja=d(t),C=s(t,"DIV",{class:!0});var te=r(C);h(jo.$$.fragment,te),tp=d(te),vr=s(te,"P",{});var Mh=r(vr);op=i(Mh,`Transformer model for image-like data. Takes either discrete (classes of vector embeddings) or continuous (actual
embeddings) inputs.`),Mh.forEach(o),np=d(te),br=s(te,"P",{});var Th=r(br);sp=i(Th,`When input is continuous: First, project the input (aka embedding) and reshape to b, t, d. Then apply standard
transformer action. Finally, reshape to image.`),Th.forEach(o),rp=d(te),Io=s(te,"P",{});var Qi=r(Io);ap=i(Qi,`When input is discrete: First, input (classes of latent pixels) is converted to embeddings and has positional
embeddings applied, see `),xr=s(Qi,"CODE",{});var Eh=r(xr);ip=i(Eh,"ImagePositionalEmbeddings"),Eh.forEach(o),lp=i(Qi,`. Then apply standard transformer action. Finally, predict
classes of unnoised image.`),Qi.forEach(o),dp=d(te),yr=s(te,"P",{});var Nh=r(yr);cp=i(Nh,`Note that it is assumed one of the input classes is the masked latent pixel. The predicted classes of the unnoised
image do not contain a prediction for the masked pixel as the unnoised image cannot be masked.`),Nh.forEach(o),pp=d(te),Rn=s(te,"DIV",{class:!0});var Uh=r(Rn);h(Vo.$$.fragment,Uh),Uh.forEach(o),te.forEach(o),Za=d(t),je=s(t,"H2",{class:!0});var Hi=r(je);ut=s(Hi,"A",{id:!0,class:!0,href:!0});var Ah=r(ut);$r=s(Ah,"SPAN",{});var Fh=r($r);h(Bo.$$.fragment,Fh),Fh.forEach(o),Ah.forEach(o),mp=d(Hi),wr=s(Hi,"SPAN",{});var Ch=r(wr);fp=i(Ch,"Transformer2DModelOutput"),Ch.forEach(o),Hi.forEach(o),ei=d(t),zo=s(t,"DIV",{class:!0});var Ph=r(zo);h(So.$$.fragment,Ph),Ph.forEach(o),ti=d(t),Ie=s(t,"H2",{class:!0});var Yi=r(Ie);ht=s(Yi,"A",{id:!0,class:!0,href:!0});var Oh=r(ht);Dr=s(Oh,"SPAN",{});var qh=r(Dr);h(Ko.$$.fragment,qh),qh.forEach(o),Oh.forEach(o),up=d(Yi),kr=s(Yi,"SPAN",{});var Lh=r(kr);hp=i(Lh,"PriorTransformer"),Lh.forEach(o),Yi.forEach(o),oi=d(t),L=s(t,"DIV",{class:!0});var ue=r(L);h(Wo.$$.fragment,ue),gp=d(ue),Mr=s(ue,"P",{});var jh=r(Mr);_p=i(jh,`The prior transformer from unCLIP is used to predict CLIP image embeddings from CLIP text embeddings. Note that the
transformer predicts the image embeddings through a denoising diffusion process.`),jh.forEach(o),vp=d(ue),Xo=s(ue,"P",{});var Gi=r(Xo);bp=i(Gi,"This model inherits from "),Jn=s(Gi,"A",{href:!0});var Ih=r(Jn);xp=i(Ih,"ModelMixin"),Ih.forEach(o),yp=i(Gi,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),Gi.forEach(o),$p=d(ue),Zn=s(ue,"P",{});var Wf=r(Zn);wp=i(Wf,"For more details, see the original paper: "),Qo=s(Wf,"A",{href:!0,rel:!0});var Vh=r(Qo);Dp=i(Vh,"https://arxiv.org/abs/2204.06125"),Vh.forEach(o),Wf.forEach(o),kp=d(ue),es=s(ue,"DIV",{class:!0});var Bh=r(es);h(Ho.$$.fragment,Bh),Bh.forEach(o),ue.forEach(o),ni=d(t),Ve=s(t,"H2",{class:!0});var Ri=r(Ve);gt=s(Ri,"A",{id:!0,class:!0,href:!0});var zh=r(gt);Tr=s(zh,"SPAN",{});var Sh=r(Tr);h(Yo.$$.fragment,Sh),Sh.forEach(o),zh.forEach(o),Mp=d(Ri),Er=s(Ri,"SPAN",{});var Kh=r(Er);Tp=i(Kh,"PriorTransformerOutput"),Kh.forEach(o),Ri.forEach(o),si=d(t),Go=s(t,"DIV",{class:!0});var Wh=r(Go);h(Ro.$$.fragment,Wh),Wh.forEach(o),ri=d(t),Be=s(t,"H2",{class:!0});var Ji=r(Be);_t=s(Ji,"A",{id:!0,class:!0,href:!0});var Xh=r(_t);Nr=s(Xh,"SPAN",{});var Qh=r(Nr);h(Jo.$$.fragment,Qh),Qh.forEach(o),Xh.forEach(o),Ep=d(Ji),Ur=s(Ji,"SPAN",{});var Hh=r(Ur);Np=i(Hh,"FlaxModelMixin"),Hh.forEach(o),Ji.forEach(o),ai=d(t),U=s(t,"DIV",{class:!0});var O=r(U);h(Zo.$$.fragment,O),Up=d(O),Ar=s(O,"P",{});var Yh=r(Ar);Ap=i(Yh,"Base class for all flax models."),Yh.forEach(o),Fp=d(O),ts=s(O,"P",{});var Xf=r(ts);os=s(Xf,"A",{href:!0});var Gh=r(os);Cp=i(Gh,"FlaxModelMixin"),Gh.forEach(o),Pp=i(Xf,` takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models.`),Xf.forEach(o),Op=d(O),V=s(O,"DIV",{class:!0});var he=r(V);h(en.$$.fragment,he),qp=d(he),Fr=s(he,"P",{});var Rh=r(Fr);Lp=i(Rh,"Instantiate a pretrained flax model from a pre-trained model configuration."),Rh.forEach(o),jp=d(he),tn=s(he,"P",{});var Zi=r(tn);Ip=i(Zi,"The warning "),Cr=s(Zi,"EM",{});var Jh=r(Cr);Vp=i(Jh,"Weights from XXX not initialized from pretrained model"),Jh.forEach(o),Bp=i(Zi,` means that the weights of XXX do not come
pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning
task.`),Zi.forEach(o),zp=d(he),on=s(he,"P",{});var el=r(on);Sp=i(el,"The warning "),Pr=s(el,"EM",{});var Zh=r(Pr);Kp=i(Zh,"Weights from XXX not used in YYY"),Zh.forEach(o),Wp=i(el,` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),el.forEach(o),Xp=d(he),h(vt.$$.fragment,he),he.forEach(o),Qp=d(O),bt=s(O,"DIV",{class:!0});var tl=r(bt);h(nn.$$.fragment,tl),Hp=d(tl),sn=s(tl,"P",{});var ol=r(sn);Yp=i(ol,`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),Or=s(ol,"CODE",{});var eg=r(Or);Gp=i(eg,"[from_pretrained()](/docs/diffusers/v0.11.0/en/api/models#diffusers.FlaxModelMixin.from_pretrained)"),eg.forEach(o),Rp=i(ol," class method"),ol.forEach(o),tl.forEach(o),Jp=d(O),J=s(O,"DIV",{class:!0});var Ot=r(J);h(rn.$$.fragment,Ot),Zp=d(Ot),Q=s(Ot,"P",{});var ge=r(Q);em=i(ge,"Cast the floating-point "),qr=s(ge,"CODE",{});var tg=r(qr);tm=i(tg,"params"),tg.forEach(o),om=i(ge," to "),Lr=s(ge,"CODE",{});var og=r(Lr);nm=i(og,"jax.numpy.bfloat16"),og.forEach(o),sm=i(ge,". This returns a new "),jr=s(ge,"CODE",{});var ng=r(jr);rm=i(ng,"params"),ng.forEach(o),am=i(ge,` tree and does not cast
the `),Ir=s(ge,"CODE",{});var sg=r(Ir);im=i(sg,"params"),sg.forEach(o),lm=i(ge," in place."),ge.forEach(o),dm=d(Ot),Vr=s(Ot,"P",{});var rg=r(Vr);cm=i(rg,`This method can be used on TPU to explicitly convert the model parameters to bfloat16 precision to do full
half-precision training or to save weights in bfloat16 for inference in order to save memory and improve speed.`),rg.forEach(o),pm=d(Ot),h(xt.$$.fragment,Ot),Ot.forEach(o),mm=d(O),Z=s(O,"DIV",{class:!0});var qt=r(Z);h(an.$$.fragment,qt),fm=d(qt),H=s(qt,"P",{});var _e=r(H);um=i(_e,"Cast the floating-point "),Br=s(_e,"CODE",{});var ag=r(Br);hm=i(ag,"params"),ag.forEach(o),gm=i(_e," to "),zr=s(_e,"CODE",{});var ig=r(zr);_m=i(ig,"jax.numpy.float16"),ig.forEach(o),vm=i(_e,". This returns a new "),Sr=s(_e,"CODE",{});var lg=r(Sr);bm=i(lg,"params"),lg.forEach(o),xm=i(_e,` tree and does not cast the
`),Kr=s(_e,"CODE",{});var dg=r(Kr);ym=i(dg,"params"),dg.forEach(o),$m=i(_e," in place."),_e.forEach(o),wm=d(qt),Wr=s(qt,"P",{});var cg=r(Wr);Dm=i(cg,`This method can be used on GPU to explicitly convert the model parameters to float16 precision to do full
half-precision training or to save weights in float16 for inference in order to save memory and improve speed.`),cg.forEach(o),km=d(qt),h(yt.$$.fragment,qt),qt.forEach(o),Mm=d(O),me=s(O,"DIV",{class:!0});var ds=r(me);h(ln.$$.fragment,ds),Tm=d(ds),Y=s(ds,"P",{});var ve=r(Y);Em=i(ve,"Cast the floating-point "),Xr=s(ve,"CODE",{});var pg=r(Xr);Nm=i(pg,"params"),pg.forEach(o),Um=i(ve," to "),Qr=s(ve,"CODE",{});var mg=r(Qr);Am=i(mg,"jax.numpy.float32"),mg.forEach(o),Fm=i(ve,`. This method can be used to explicitly convert the
model parameters to fp32 precision. This returns a new `),Hr=s(ve,"CODE",{});var fg=r(Hr);Cm=i(fg,"params"),fg.forEach(o),Pm=i(ve," tree and does not cast the "),Yr=s(ve,"CODE",{});var ug=r(Yr);Om=i(ug,"params"),ug.forEach(o),qm=i(ve," in place."),ve.forEach(o),Lm=d(ds),h($t.$$.fragment,ds),ds.forEach(o),O.forEach(o),ii=d(t),ze=s(t,"H2",{class:!0});var nl=r(ze);wt=s(nl,"A",{id:!0,class:!0,href:!0});var hg=r(wt);Gr=s(hg,"SPAN",{});var gg=r(Gr);h(dn.$$.fragment,gg),gg.forEach(o),hg.forEach(o),jm=d(nl),Rr=s(nl,"SPAN",{});var _g=r(Rr);Im=i(_g,"FlaxUNet2DConditionOutput"),_g.forEach(o),nl.forEach(o),li=d(t),Se=s(t,"DIV",{class:!0});var sl=r(Se);h(cn.$$.fragment,sl),Vm=d(sl),Dt=s(sl,"DIV",{class:!0});var rl=r(Dt);h(pn.$$.fragment,rl),Bm=d(rl),Jr=s(rl,"P",{});var vg=r(Jr);zm=i(vg,"\u201CReturns a new object replacing the specified fields with new values."),vg.forEach(o),rl.forEach(o),sl.forEach(o),di=d(t),Ke=s(t,"H2",{class:!0});var al=r(Ke);kt=s(al,"A",{id:!0,class:!0,href:!0});var bg=r(kt);Zr=s(bg,"SPAN",{});var xg=r(Zr);h(mn.$$.fragment,xg),xg.forEach(o),bg.forEach(o),Sm=d(al),ea=s(al,"SPAN",{});var yg=r(ea);Km=i(yg,"FlaxUNet2DConditionModel"),yg.forEach(o),al.forEach(o),ci=d(t),P=s(t,"DIV",{class:!0});var oe=r(P);h(fn.$$.fragment,oe),Wm=d(oe),ta=s(oe,"P",{});var $g=r(ta);Xm=i($g,`FlaxUNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a
timestep and returns sample shaped output.`),$g.forEach(o),Qm=d(oe),un=s(oe,"P",{});var il=r(un);Hm=i(il,"This model inherits from "),ns=s(il,"A",{href:!0});var wg=r(ns);Ym=i(wg,"FlaxModelMixin"),wg.forEach(o),Gm=i(il,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),il.forEach(o),Rm=d(oe),hn=s(oe,"P",{});var ll=r(hn);Jm=i(ll,"Also, this model is a Flax Linen "),gn=s(ll,"A",{href:!0,rel:!0});var Dg=r(gn);Zm=i(Dg,"flax.linen.Module"),Dg.forEach(o),ef=i(ll,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),ll.forEach(o),tf=d(oe),oa=s(oe,"P",{});var kg=r(oa);of=i(kg,"Finally, this model supports inherent JAX features such as:"),kg.forEach(o),nf=d(oe),ne=s(oe,"UL",{});var Lt=r(ne);na=s(Lt,"LI",{});var Mg=r(na);_n=s(Mg,"A",{href:!0,rel:!0});var Tg=r(_n);sf=i(Tg,"Just-In-Time (JIT) compilation"),Tg.forEach(o),Mg.forEach(o),rf=d(Lt),sa=s(Lt,"LI",{});var Eg=r(sa);vn=s(Eg,"A",{href:!0,rel:!0});var Ng=r(vn);af=i(Ng,"Automatic Differentiation"),Ng.forEach(o),Eg.forEach(o),lf=d(Lt),ra=s(Lt,"LI",{});var Ug=r(ra);bn=s(Ug,"A",{href:!0,rel:!0});var Ag=r(bn);df=i(Ag,"Vectorization"),Ag.forEach(o),Ug.forEach(o),cf=d(Lt),aa=s(Lt,"LI",{});var Fg=r(aa);xn=s(Fg,"A",{href:!0,rel:!0});var Cg=r(xn);pf=i(Cg,"Parallelization"),Cg.forEach(o),Fg.forEach(o),Lt.forEach(o),oe.forEach(o),pi=d(t),We=s(t,"H2",{class:!0});var dl=r(We);Mt=s(dl,"A",{id:!0,class:!0,href:!0});var Pg=r(Mt);ia=s(Pg,"SPAN",{});var Og=r(ia);h(yn.$$.fragment,Og),Og.forEach(o),Pg.forEach(o),mf=d(dl),la=s(dl,"SPAN",{});var qg=r(la);ff=i(qg,"FlaxDecoderOutput"),qg.forEach(o),dl.forEach(o),mi=d(t),se=s(t,"DIV",{class:!0});var cs=r(se);h($n.$$.fragment,cs),uf=d(cs),da=s(cs,"P",{});var Lg=r(da);hf=i(Lg,"Output of decoding method."),Lg.forEach(o),gf=d(cs),Tt=s(cs,"DIV",{class:!0});var cl=r(Tt);h(wn.$$.fragment,cl),_f=d(cl),ca=s(cl,"P",{});var jg=r(ca);vf=i(jg,"\u201CReturns a new object replacing the specified fields with new values."),jg.forEach(o),cl.forEach(o),cs.forEach(o),fi=d(t),Xe=s(t,"H2",{class:!0});var pl=r(Xe);Et=s(pl,"A",{id:!0,class:!0,href:!0});var Ig=r(Et);pa=s(Ig,"SPAN",{});var Vg=r(pa);h(Dn.$$.fragment,Vg),Vg.forEach(o),Ig.forEach(o),bf=d(pl),ma=s(pl,"SPAN",{});var Bg=r(ma);xf=i(Bg,"FlaxAutoencoderKLOutput"),Bg.forEach(o),pl.forEach(o),ui=d(t),re=s(t,"DIV",{class:!0});var ps=r(re);h(kn.$$.fragment,ps),yf=d(ps),fa=s(ps,"P",{});var zg=r(fa);$f=i(zg,"Output of AutoencoderKL encoding method."),zg.forEach(o),wf=d(ps),Nt=s(ps,"DIV",{class:!0});var ml=r(Nt);h(Mn.$$.fragment,ml),Df=d(ml),ua=s(ml,"P",{});var Sg=r(ua);kf=i(Sg,"\u201CReturns a new object replacing the specified fields with new values."),Sg.forEach(o),ml.forEach(o),ps.forEach(o),hi=d(t),Qe=s(t,"H2",{class:!0});var fl=r(Qe);Ut=s(fl,"A",{id:!0,class:!0,href:!0});var Kg=r(Ut);ha=s(Kg,"SPAN",{});var Wg=r(ha);h(Tn.$$.fragment,Wg),Wg.forEach(o),Kg.forEach(o),Mf=d(fl),ga=s(fl,"SPAN",{});var Xg=r(ga);Tf=i(Xg,"FlaxAutoencoderKL"),Xg.forEach(o),fl.forEach(o),gi=d(t),j=s(t,"DIV",{class:!0});var be=r(j);h(En.$$.fragment,be),Ef=d(be),_a=s(be,"P",{});var Qg=r(_a);Nf=i(Qg,`Flax Implementation of Variational Autoencoder (VAE) model with KL loss from the paper Auto-Encoding Variational
Bayes by Diederik P. Kingma and Max Welling.`),Qg.forEach(o),Uf=d(be),Nn=s(be,"P",{});var ul=r(Nn);Af=i(ul,"This model is a Flax Linen "),Un=s(ul,"A",{href:!0,rel:!0});var Hg=r(Un);Ff=i(Hg,"flax.linen.Module"),Hg.forEach(o),Cf=i(ul,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),ul.forEach(o),Pf=d(be),va=s(be,"P",{});var Yg=r(va);Of=i(Yg,"Finally, this model supports inherent JAX features such as:"),Yg.forEach(o),qf=d(be),ae=s(be,"UL",{});var jt=r(ae);ba=s(jt,"LI",{});var Gg=r(ba);An=s(Gg,"A",{href:!0,rel:!0});var Rg=r(An);Lf=i(Rg,"Just-In-Time (JIT) compilation"),Rg.forEach(o),Gg.forEach(o),jf=d(jt),xa=s(jt,"LI",{});var Jg=r(xa);Fn=s(Jg,"A",{href:!0,rel:!0});var Zg=r(Fn);If=i(Zg,"Automatic Differentiation"),Zg.forEach(o),Jg.forEach(o),Vf=d(jt),ya=s(jt,"LI",{});var e_=r(ya);Cn=s(e_,"A",{href:!0,rel:!0});var t_=r(Cn);Bf=i(t_,"Vectorization"),t_.forEach(o),e_.forEach(o),zf=d(jt),$a=s(jt,"LI",{});var o_=r($a);Pn=s(o_,"A",{href:!0,rel:!0});var n_=r(Pn);Sf=i(n_,"Parallelization"),n_.forEach(o),o_.forEach(o),jt.forEach(o),be.forEach(o),this.h()},h(){c(x,"name","hf:doc:metadata"),c(x,"content",JSON.stringify(__)),c(y,"id","models"),c(y,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(y,"href","#models"),c(w,"class","relative group"),c(Ye,"id","diffusers.ModelMixin"),c(Ye,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Ye,"href","#diffusers.ModelMixin"),c(ye,"class","relative group"),c(In,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin"),c(Vn,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin.save_pretrained"),c(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(tt,"id","diffusers.models.unet_2d.UNet2DOutput"),c(tt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(tt,"href","#diffusers.models.unet_2d.UNet2DOutput"),c(we,"class","relative group"),c(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ot,"id","diffusers.UNet2DModel"),c(ot,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ot,"href","#diffusers.UNet2DModel"),c(De,"class","relative group"),c(Bn,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin"),c(zn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(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(nt,"id","diffusers.models.unet_1d.UNet1DOutput"),c(nt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(nt,"href","#diffusers.models.unet_1d.UNet1DOutput"),c(ke,"class","relative group"),c(ro,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(st,"id","diffusers.UNet1DModel"),c(st,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(st,"href","#diffusers.UNet1DModel"),c(Me,"class","relative group"),c(Sn,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin"),c(Kn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(rt,"id","diffusers.models.unet_2d_condition.UNet2DConditionOutput"),c(rt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(rt,"href","#diffusers.models.unet_2d_condition.UNet2DConditionOutput"),c(Te,"class","relative group"),c(fo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(at,"id","diffusers.UNet2DConditionModel"),c(at,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(at,"href","#diffusers.UNet2DConditionModel"),c(Ee,"class","relative group"),c(Wn,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin"),c(Xn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(it,"id","diffusers.models.vae.DecoderOutput"),c(it,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(it,"href","#diffusers.models.vae.DecoderOutput"),c(Ne,"class","relative group"),c(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(lt,"id","diffusers.models.vae.VQEncoderOutput"),c(lt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(lt,"href","#diffusers.models.vae.VQEncoderOutput"),c(Ae,"class","relative group"),c(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(dt,"id","diffusers.VQModel"),c(dt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(dt,"href","#diffusers.VQModel"),c(Ce,"class","relative group"),c(Qn,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin"),c(Hn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ct,"id","diffusers.models.vae.AutoencoderKLOutput"),c(ct,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ct,"href","#diffusers.models.vae.AutoencoderKLOutput"),c(Pe,"class","relative group"),c(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(pt,"id","diffusers.AutoencoderKL"),c(pt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(pt,"href","#diffusers.AutoencoderKL"),c(qe,"class","relative group"),c(Yn,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin"),c(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Gn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ft,"id","diffusers.Transformer2DModel"),c(ft,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ft,"href","#diffusers.Transformer2DModel"),c(Le,"class","relative group"),c(Rn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ut,"id","diffusers.models.attention.Transformer2DModelOutput"),c(ut,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ut,"href","#diffusers.models.attention.Transformer2DModelOutput"),c(je,"class","relative group"),c(zo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ht,"id","diffusers.PriorTransformer"),c(ht,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ht,"href","#diffusers.PriorTransformer"),c(Ie,"class","relative group"),c(Jn,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.ModelMixin"),c(Qo,"href","https://arxiv.org/abs/2204.06125"),c(Qo,"rel","nofollow"),c(es,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(gt,"id","diffusers.models.prior_transformer.PriorTransformerOutput"),c(gt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(gt,"href","#diffusers.models.prior_transformer.PriorTransformerOutput"),c(Ve,"class","relative group"),c(Go,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(_t,"id","diffusers.FlaxModelMixin"),c(_t,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(_t,"href","#diffusers.FlaxModelMixin"),c(Be,"class","relative group"),c(os,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.FlaxModelMixin"),c(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(wt,"id","diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput"),c(wt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(wt,"href","#diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput"),c(ze,"class","relative group"),c(Dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(kt,"id","diffusers.FlaxUNet2DConditionModel"),c(kt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(kt,"href","#diffusers.FlaxUNet2DConditionModel"),c(Ke,"class","relative group"),c(ns,"href","/docs/diffusers/v0.11.0/en/api/models#diffusers.FlaxModelMixin"),c(gn,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(gn,"rel","nofollow"),c(_n,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(_n,"rel","nofollow"),c(vn,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(vn,"rel","nofollow"),c(bn,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(bn,"rel","nofollow"),c(xn,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(xn,"rel","nofollow"),c(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Mt,"id","diffusers.models.vae_flax.FlaxDecoderOutput"),c(Mt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Mt,"href","#diffusers.models.vae_flax.FlaxDecoderOutput"),c(We,"class","relative group"),c(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Et,"id","diffusers.models.vae_flax.FlaxAutoencoderKLOutput"),c(Et,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Et,"href","#diffusers.models.vae_flax.FlaxAutoencoderKLOutput"),c(Xe,"class","relative group"),c(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ut,"id","diffusers.FlaxAutoencoderKL"),c(Ut,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Ut,"href","#diffusers.FlaxAutoencoderKL"),c(Qe,"class","relative group"),c(Un,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Un,"rel","nofollow"),c(An,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(An,"rel","nofollow"),c(Fn,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Fn,"rel","nofollow"),c(Cn,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Cn,"rel","nofollow"),c(Pn,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(Pn,"rel","nofollow"),c(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,p){e(document.head,x),m(t,M,p),m(t,w,p),e(w,y),e(y,k),g(f,k,null),e(w,D),e(w,G),e(G,xe),m(t,z,p),m(t,S,p),e(S,Ln),e(S,ms),e(ms,vl),e(S,bl),e(S,fs),e(fs,xl),e(S,yl),m(t,Ta,p),m(t,ye,p),e(ye,Ye),e(Ye,us),g(It,us,null),e(ye,$l),e(ye,hs),e(hs,wl),m(t,Ea,p),m(t,T,p),g(Vt,T,null),e(T,Dl),e(T,gs),e(gs,kl),e(T,Ml),e(T,jn),e(jn,In),e(In,Tl),e(jn,El),e(T,Nl),e(T,_s),e(_s,ie),e(ie,vs),e(vs,Ul),e(ie,Al),e(ie,bs),e(bs,Fl),e(ie,Cl),e(ie,Vn),e(Vn,Pl),e(ie,Ol),e(T,ql),e(T,le),g(Bt,le,null),e(le,Ll),e(le,xs),e(xs,jl),e(le,Il),e(le,ys),e(ys,Vl),e(T,Bl),e(T,Ge),g(zt,Ge,null),e(Ge,zl),e(Ge,$s),e($s,Sl),e(T,Kl),e(T,de),g(St,de,null),e(de,Wl),e(de,ws),e(ws,Xl),e(de,Ql),e(de,Ds),e(Ds,Hl),e(T,Yl),e(T,R),g(Kt,R,null),e(R,Gl),e(R,ks),e(ks,Rl),e(R,Jl),e(R,Ms),e(Ms,Zl),e(R,ed),e(R,Ts),e(Ts,td),e(T,od),e(T,A),g(Wt,A,null),e(A,nd),e(A,Es),e(Es,sd),e(A,rd),e(A,$e),e($e,ad),e($e,Ns),e(Ns,id),e($e,ld),e($e,Us),e(Us,dd),e($e,cd),e(A,pd),e(A,Xt),e(Xt,md),e(Xt,As),e(As,fd),e(Xt,ud),e(A,hd),e(A,Qt),e(Qt,gd),e(Qt,Fs),e(Fs,_d),e(Qt,vd),e(A,bd),g(Re,A,null),e(A,xd),g(Je,A,null),e(T,yd),e(T,Ze),g(Ht,Ze,null),e(Ze,$d),e(Ze,Cs),e(Cs,wd),e(T,Dd),e(T,et),g(Yt,et,null),e(et,kd),e(et,Gt),e(Gt,Md),e(Gt,Ps),e(Ps,Td),e(Gt,Ed),m(t,Na,p),m(t,we,p),e(we,tt),e(tt,Os),g(Rt,Os,null),e(we,Nd),e(we,qs),e(qs,Ud),m(t,Ua,p),m(t,Jt,p),g(Zt,Jt,null),m(t,Aa,p),m(t,De,p),e(De,ot),e(ot,Ls),g(eo,Ls,null),e(De,Ad),e(De,js),e(js,Fd),m(t,Fa,p),m(t,K,p),g(to,K,null),e(K,Cd),e(K,Is),e(Is,Pd),e(K,Od),e(K,oo),e(oo,qd),e(oo,Bn),e(Bn,Ld),e(oo,jd),e(K,Id),e(K,zn),g(no,zn,null),m(t,Ca,p),m(t,ke,p),e(ke,nt),e(nt,Vs),g(so,Vs,null),e(ke,Vd),e(ke,Bs),e(Bs,Bd),m(t,Pa,p),m(t,ro,p),g(ao,ro,null),m(t,Oa,p),m(t,Me,p),e(Me,st),e(st,zs),g(io,zs,null),e(Me,zd),e(Me,Ss),e(Ss,Sd),m(t,qa,p),m(t,W,p),g(lo,W,null),e(W,Kd),e(W,Ks),e(Ks,Wd),e(W,Xd),e(W,co),e(co,Qd),e(co,Sn),e(Sn,Hd),e(co,Yd),e(W,Gd),e(W,Kn),g(po,Kn,null),m(t,La,p),m(t,Te,p),e(Te,rt),e(rt,Ws),g(mo,Ws,null),e(Te,Rd),e(Te,Xs),e(Xs,Jd),m(t,ja,p),m(t,fo,p),g(uo,fo,null),m(t,Ia,p),m(t,Ee,p),e(Ee,at),e(at,Qs),g(ho,Qs,null),e(Ee,Zd),e(Ee,Hs),e(Hs,ec),m(t,Va,p),m(t,q,p),g(go,q,null),e(q,tc),e(q,Ys),e(Ys,oc),e(q,nc),e(q,_o),e(_o,sc),e(_o,Wn),e(Wn,rc),e(_o,ac),e(q,ic),e(q,Xn),g(vo,Xn,null),e(q,lc),e(q,ce),g(bo,ce,null),e(ce,dc),e(ce,Gs),e(Gs,cc),e(ce,pc),e(ce,Rs),e(Rs,mc),m(t,Ba,p),m(t,Ne,p),e(Ne,it),e(it,Js),g(xo,Js,null),e(Ne,fc),e(Ne,Zs),e(Zs,uc),m(t,za,p),m(t,Ue,p),g(yo,Ue,null),e(Ue,hc),e(Ue,er),e(er,gc),m(t,Sa,p),m(t,Ae,p),e(Ae,lt),e(lt,tr),g($o,tr,null),e(Ae,_c),e(Ae,or),e(or,vc),m(t,Ka,p),m(t,Fe,p),g(wo,Fe,null),e(Fe,bc),e(Fe,nr),e(nr,xc),m(t,Wa,p),m(t,Ce,p),e(Ce,dt),e(dt,sr),g(Do,sr,null),e(Ce,yc),e(Ce,rr),e(rr,$c),m(t,Xa,p),m(t,X,p),g(ko,X,null),e(X,wc),e(X,ar),e(ar,Dc),e(X,kc),e(X,Mo),e(Mo,Mc),e(Mo,Qn),e(Qn,Tc),e(Mo,Ec),e(X,Nc),e(X,Hn),g(To,Hn,null),m(t,Qa,p),m(t,Pe,p),e(Pe,ct),e(ct,ir),g(Eo,ir,null),e(Pe,Uc),e(Pe,lr),e(lr,Ac),m(t,Ha,p),m(t,Oe,p),g(No,Oe,null),e(Oe,Fc),e(Oe,dr),e(dr,Cc),m(t,Ya,p),m(t,qe,p),e(qe,pt),e(pt,cr),g(Uo,cr,null),e(qe,Pc),e(qe,pr),e(pr,Oc),m(t,Ga,p),m(t,F,p),g(Ao,F,null),e(F,qc),e(F,mr),e(mr,Lc),e(F,jc),e(F,Fo),e(Fo,Ic),e(Fo,Yn),e(Yn,Vc),e(Fo,Bc),e(F,zc),e(F,mt),g(Co,mt,null),e(mt,Sc),e(mt,Po),e(Po,Kc),e(Po,fr),e(fr,Wc),e(Po,Xc),e(F,Qc),e(F,pe),g(Oo,pe,null),e(pe,Hc),e(pe,ur),e(ur,Yc),e(pe,Gc),e(pe,hr),e(hr,Rc),e(F,Jc),e(F,Gn),g(qo,Gn,null),m(t,Ra,p),m(t,Le,p),e(Le,ft),e(ft,gr),g(Lo,gr,null),e(Le,Zc),e(Le,_r),e(_r,ep),m(t,Ja,p),m(t,C,p),g(jo,C,null),e(C,tp),e(C,vr),e(vr,op),e(C,np),e(C,br),e(br,sp),e(C,rp),e(C,Io),e(Io,ap),e(Io,xr),e(xr,ip),e(Io,lp),e(C,dp),e(C,yr),e(yr,cp),e(C,pp),e(C,Rn),g(Vo,Rn,null),m(t,Za,p),m(t,je,p),e(je,ut),e(ut,$r),g(Bo,$r,null),e(je,mp),e(je,wr),e(wr,fp),m(t,ei,p),m(t,zo,p),g(So,zo,null),m(t,ti,p),m(t,Ie,p),e(Ie,ht),e(ht,Dr),g(Ko,Dr,null),e(Ie,up),e(Ie,kr),e(kr,hp),m(t,oi,p),m(t,L,p),g(Wo,L,null),e(L,gp),e(L,Mr),e(Mr,_p),e(L,vp),e(L,Xo),e(Xo,bp),e(Xo,Jn),e(Jn,xp),e(Xo,yp),e(L,$p),e(L,Zn),e(Zn,wp),e(Zn,Qo),e(Qo,Dp),e(L,kp),e(L,es),g(Ho,es,null),m(t,ni,p),m(t,Ve,p),e(Ve,gt),e(gt,Tr),g(Yo,Tr,null),e(Ve,Mp),e(Ve,Er),e(Er,Tp),m(t,si,p),m(t,Go,p),g(Ro,Go,null),m(t,ri,p),m(t,Be,p),e(Be,_t),e(_t,Nr),g(Jo,Nr,null),e(Be,Ep),e(Be,Ur),e(Ur,Np),m(t,ai,p),m(t,U,p),g(Zo,U,null),e(U,Up),e(U,Ar),e(Ar,Ap),e(U,Fp),e(U,ts),e(ts,os),e(os,Cp),e(ts,Pp),e(U,Op),e(U,V),g(en,V,null),e(V,qp),e(V,Fr),e(Fr,Lp),e(V,jp),e(V,tn),e(tn,Ip),e(tn,Cr),e(Cr,Vp),e(tn,Bp),e(V,zp),e(V,on),e(on,Sp),e(on,Pr),e(Pr,Kp),e(on,Wp),e(V,Xp),g(vt,V,null),e(U,Qp),e(U,bt),g(nn,bt,null),e(bt,Hp),e(bt,sn),e(sn,Yp),e(sn,Or),e(Or,Gp),e(sn,Rp),e(U,Jp),e(U,J),g(rn,J,null),e(J,Zp),e(J,Q),e(Q,em),e(Q,qr),e(qr,tm),e(Q,om),e(Q,Lr),e(Lr,nm),e(Q,sm),e(Q,jr),e(jr,rm),e(Q,am),e(Q,Ir),e(Ir,im),e(Q,lm),e(J,dm),e(J,Vr),e(Vr,cm),e(J,pm),g(xt,J,null),e(U,mm),e(U,Z),g(an,Z,null),e(Z,fm),e(Z,H),e(H,um),e(H,Br),e(Br,hm),e(H,gm),e(H,zr),e(zr,_m),e(H,vm),e(H,Sr),e(Sr,bm),e(H,xm),e(H,Kr),e(Kr,ym),e(H,$m),e(Z,wm),e(Z,Wr),e(Wr,Dm),e(Z,km),g(yt,Z,null),e(U,Mm),e(U,me),g(ln,me,null),e(me,Tm),e(me,Y),e(Y,Em),e(Y,Xr),e(Xr,Nm),e(Y,Um),e(Y,Qr),e(Qr,Am),e(Y,Fm),e(Y,Hr),e(Hr,Cm),e(Y,Pm),e(Y,Yr),e(Yr,Om),e(Y,qm),e(me,Lm),g($t,me,null),m(t,ii,p),m(t,ze,p),e(ze,wt),e(wt,Gr),g(dn,Gr,null),e(ze,jm),e(ze,Rr),e(Rr,Im),m(t,li,p),m(t,Se,p),g(cn,Se,null),e(Se,Vm),e(Se,Dt),g(pn,Dt,null),e(Dt,Bm),e(Dt,Jr),e(Jr,zm),m(t,di,p),m(t,Ke,p),e(Ke,kt),e(kt,Zr),g(mn,Zr,null),e(Ke,Sm),e(Ke,ea),e(ea,Km),m(t,ci,p),m(t,P,p),g(fn,P,null),e(P,Wm),e(P,ta),e(ta,Xm),e(P,Qm),e(P,un),e(un,Hm),e(un,ns),e(ns,Ym),e(un,Gm),e(P,Rm),e(P,hn),e(hn,Jm),e(hn,gn),e(gn,Zm),e(hn,ef),e(P,tf),e(P,oa),e(oa,of),e(P,nf),e(P,ne),e(ne,na),e(na,_n),e(_n,sf),e(ne,rf),e(ne,sa),e(sa,vn),e(vn,af),e(ne,lf),e(ne,ra),e(ra,bn),e(bn,df),e(ne,cf),e(ne,aa),e(aa,xn),e(xn,pf),m(t,pi,p),m(t,We,p),e(We,Mt),e(Mt,ia),g(yn,ia,null),e(We,mf),e(We,la),e(la,ff),m(t,mi,p),m(t,se,p),g($n,se,null),e(se,uf),e(se,da),e(da,hf),e(se,gf),e(se,Tt),g(wn,Tt,null),e(Tt,_f),e(Tt,ca),e(ca,vf),m(t,fi,p),m(t,Xe,p),e(Xe,Et),e(Et,pa),g(Dn,pa,null),e(Xe,bf),e(Xe,ma),e(ma,xf),m(t,ui,p),m(t,re,p),g(kn,re,null),e(re,yf),e(re,fa),e(fa,$f),e(re,wf),e(re,Nt),g(Mn,Nt,null),e(Nt,Df),e(Nt,ua),e(ua,kf),m(t,hi,p),m(t,Qe,p),e(Qe,Ut),e(Ut,ha),g(Tn,ha,null),e(Qe,Mf),e(Qe,ga),e(ga,Tf),m(t,gi,p),m(t,j,p),g(En,j,null),e(j,Ef),e(j,_a),e(_a,Nf),e(j,Uf),e(j,Nn),e(Nn,Af),e(Nn,Un),e(Un,Ff),e(Nn,Cf),e(j,Pf),e(j,va),e(va,Of),e(j,qf),e(j,ae),e(ae,ba),e(ba,An),e(An,Lf),e(ae,jf),e(ae,xa),e(xa,Fn),e(Fn,If),e(ae,Vf),e(ae,ya),e(ya,Cn),e(Cn,Bf),e(ae,zf),e(ae,$a),e($a,Pn),e(Pn,Sf),_i=!0},p(t,[p]){const On={};p&2&&(On.$$scope={dirty:p,ctx:t}),Re.$set(On);const wa={};p&2&&(wa.$$scope={dirty:p,ctx:t}),Je.$set(wa);const Da={};p&2&&(Da.$$scope={dirty:p,ctx:t}),vt.$set(Da);const ka={};p&2&&(ka.$$scope={dirty:p,ctx:t}),xt.$set(ka);const He={};p&2&&(He.$$scope={dirty:p,ctx:t}),yt.$set(He);const Ma={};p&2&&(Ma.$$scope={dirty:p,ctx:t}),$t.$set(Ma)},i(t){_i||(_(f.$$.fragment,t),_(It.$$.fragment,t),_(Vt.$$.fragment,t),_(Bt.$$.fragment,t),_(zt.$$.fragment,t),_(St.$$.fragment,t),_(Kt.$$.fragment,t),_(Wt.$$.fragment,t),_(Re.$$.fragment,t),_(Je.$$.fragment,t),_(Ht.$$.fragment,t),_(Yt.$$.fragment,t),_(Rt.$$.fragment,t),_(Zt.$$.fragment,t),_(eo.$$.fragment,t),_(to.$$.fragment,t),_(no.$$.fragment,t),_(so.$$.fragment,t),_(ao.$$.fragment,t),_(io.$$.fragment,t),_(lo.$$.fragment,t),_(po.$$.fragment,t),_(mo.$$.fragment,t),_(uo.$$.fragment,t),_(ho.$$.fragment,t),_(go.$$.fragment,t),_(vo.$$.fragment,t),_(bo.$$.fragment,t),_(xo.$$.fragment,t),_(yo.$$.fragment,t),_($o.$$.fragment,t),_(wo.$$.fragment,t),_(Do.$$.fragment,t),_(ko.$$.fragment,t),_(To.$$.fragment,t),_(Eo.$$.fragment,t),_(No.$$.fragment,t),_(Uo.$$.fragment,t),_(Ao.$$.fragment,t),_(Co.$$.fragment,t),_(Oo.$$.fragment,t),_(qo.$$.fragment,t),_(Lo.$$.fragment,t),_(jo.$$.fragment,t),_(Vo.$$.fragment,t),_(Bo.$$.fragment,t),_(So.$$.fragment,t),_(Ko.$$.fragment,t),_(Wo.$$.fragment,t),_(Ho.$$.fragment,t),_(Yo.$$.fragment,t),_(Ro.$$.fragment,t),_(Jo.$$.fragment,t),_(Zo.$$.fragment,t),_(en.$$.fragment,t),_(vt.$$.fragment,t),_(nn.$$.fragment,t),_(rn.$$.fragment,t),_(xt.$$.fragment,t),_(an.$$.fragment,t),_(yt.$$.fragment,t),_(ln.$$.fragment,t),_($t.$$.fragment,t),_(dn.$$.fragment,t),_(cn.$$.fragment,t),_(pn.$$.fragment,t),_(mn.$$.fragment,t),_(fn.$$.fragment,t),_(yn.$$.fragment,t),_($n.$$.fragment,t),_(wn.$$.fragment,t),_(Dn.$$.fragment,t),_(kn.$$.fragment,t),_(Mn.$$.fragment,t),_(Tn.$$.fragment,t),_(En.$$.fragment,t),_i=!0)},o(t){v(f.$$.fragment,t),v(It.$$.fragment,t),v(Vt.$$.fragment,t),v(Bt.$$.fragment,t),v(zt.$$.fragment,t),v(St.$$.fragment,t),v(Kt.$$.fragment,t),v(Wt.$$.fragment,t),v(Re.$$.fragment,t),v(Je.$$.fragment,t),v(Ht.$$.fragment,t),v(Yt.$$.fragment,t),v(Rt.$$.fragment,t),v(Zt.$$.fragment,t),v(eo.$$.fragment,t),v(to.$$.fragment,t),v(no.$$.fragment,t),v(so.$$.fragment,t),v(ao.$$.fragment,t),v(io.$$.fragment,t),v(lo.$$.fragment,t),v(po.$$.fragment,t),v(mo.$$.fragment,t),v(uo.$$.fragment,t),v(ho.$$.fragment,t),v(go.$$.fragment,t),v(vo.$$.fragment,t),v(bo.$$.fragment,t),v(xo.$$.fragment,t),v(yo.$$.fragment,t),v($o.$$.fragment,t),v(wo.$$.fragment,t),v(Do.$$.fragment,t),v(ko.$$.fragment,t),v(To.$$.fragment,t),v(Eo.$$.fragment,t),v(No.$$.fragment,t),v(Uo.$$.fragment,t),v(Ao.$$.fragment,t),v(Co.$$.fragment,t),v(Oo.$$.fragment,t),v(qo.$$.fragment,t),v(Lo.$$.fragment,t),v(jo.$$.fragment,t),v(Vo.$$.fragment,t),v(Bo.$$.fragment,t),v(So.$$.fragment,t),v(Ko.$$.fragment,t),v(Wo.$$.fragment,t),v(Ho.$$.fragment,t),v(Yo.$$.fragment,t),v(Ro.$$.fragment,t),v(Jo.$$.fragment,t),v(Zo.$$.fragment,t),v(en.$$.fragment,t),v(vt.$$.fragment,t),v(nn.$$.fragment,t),v(rn.$$.fragment,t),v(xt.$$.fragment,t),v(an.$$.fragment,t),v(yt.$$.fragment,t),v(ln.$$.fragment,t),v($t.$$.fragment,t),v(dn.$$.fragment,t),v(cn.$$.fragment,t),v(pn.$$.fragment,t),v(mn.$$.fragment,t),v(fn.$$.fragment,t),v(yn.$$.fragment,t),v($n.$$.fragment,t),v(wn.$$.fragment,t),v(Dn.$$.fragment,t),v(kn.$$.fragment,t),v(Mn.$$.fragment,t),v(Tn.$$.fragment,t),v(En.$$.fragment,t),_i=!1},d(t){o(x),t&&o(M),t&&o(w),b(f),t&&o(z),t&&o(S),t&&o(Ta),t&&o(ye),b(It),t&&o(Ea),t&&o(T),b(Vt),b(Bt),b(zt),b(St),b(Kt),b(Wt),b(Re),b(Je),b(Ht),b(Yt),t&&o(Na),t&&o(we),b(Rt),t&&o(Ua),t&&o(Jt),b(Zt),t&&o(Aa),t&&o(De),b(eo),t&&o(Fa),t&&o(K),b(to),b(no),t&&o(Ca),t&&o(ke),b(so),t&&o(Pa),t&&o(ro),b(ao),t&&o(Oa),t&&o(Me),b(io),t&&o(qa),t&&o(W),b(lo),b(po),t&&o(La),t&&o(Te),b(mo),t&&o(ja),t&&o(fo),b(uo),t&&o(Ia),t&&o(Ee),b(ho),t&&o(Va),t&&o(q),b(go),b(vo),b(bo),t&&o(Ba),t&&o(Ne),b(xo),t&&o(za),t&&o(Ue),b(yo),t&&o(Sa),t&&o(Ae),b($o),t&&o(Ka),t&&o(Fe),b(wo),t&&o(Wa),t&&o(Ce),b(Do),t&&o(Xa),t&&o(X),b(ko),b(To),t&&o(Qa),t&&o(Pe),b(Eo),t&&o(Ha),t&&o(Oe),b(No),t&&o(Ya),t&&o(qe),b(Uo),t&&o(Ga),t&&o(F),b(Ao),b(Co),b(Oo),b(qo),t&&o(Ra),t&&o(Le),b(Lo),t&&o(Ja),t&&o(C),b(jo),b(Vo),t&&o(Za),t&&o(je),b(Bo),t&&o(ei),t&&o(zo),b(So),t&&o(ti),t&&o(Ie),b(Ko),t&&o(oi),t&&o(L),b(Wo),b(Ho),t&&o(ni),t&&o(Ve),b(Yo),t&&o(si),t&&o(Go),b(Ro),t&&o(ri),t&&o(Be),b(Jo),t&&o(ai),t&&o(U),b(Zo),b(en),b(vt),b(nn),b(rn),b(xt),b(an),b(yt),b(ln),b($t),t&&o(ii),t&&o(ze),b(dn),t&&o(li),t&&o(Se),b(cn),b(pn),t&&o(di),t&&o(Ke),b(mn),t&&o(ci),t&&o(P),b(fn),t&&o(pi),t&&o(We),b(yn),t&&o(mi),t&&o(se),b($n),b(wn),t&&o(fi),t&&o(Xe),b(Dn),t&&o(ui),t&&o(re),b(kn),b(Mn),t&&o(hi),t&&o(Qe),b(Tn),t&&o(gi),t&&o(j),b(En)}}}const __={local:"models",sections:[{local:"diffusers.ModelMixin",title:"ModelMixin"},{local:"diffusers.models.unet_2d.UNet2DOutput",title:"UNet2DOutput"},{local:"diffusers.UNet2DModel",title:"UNet2DModel"},{local:"diffusers.models.unet_1d.UNet1DOutput",title:"UNet1DOutput"},{local:"diffusers.UNet1DModel",title:"UNet1DModel"},{local:"diffusers.models.unet_2d_condition.UNet2DConditionOutput",title:"UNet2DConditionOutput"},{local:"diffusers.UNet2DConditionModel",title:"UNet2DConditionModel"},{local:"diffusers.models.vae.DecoderOutput",title:"DecoderOutput"},{local:"diffusers.models.vae.VQEncoderOutput",title:"VQEncoderOutput"},{local:"diffusers.VQModel",title:"VQModel"},{local:"diffusers.models.vae.AutoencoderKLOutput",title:"AutoencoderKLOutput"},{local:"diffusers.AutoencoderKL",title:"AutoencoderKL"},{local:"diffusers.Transformer2DModel",title:"Transformer2DModel"},{local:"diffusers.models.attention.Transformer2DModelOutput",title:"Transformer2DModelOutput"},{local:"diffusers.PriorTransformer",title:"PriorTransformer"},{local:"diffusers.models.prior_transformer.PriorTransformerOutput",title:"PriorTransformerOutput"},{local:"diffusers.FlaxModelMixin",title:"FlaxModelMixin"},{local:"diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput",title:"FlaxUNet2DConditionOutput"},{local:"diffusers.FlaxUNet2DConditionModel",title:"FlaxUNet2DConditionModel"},{local:"diffusers.models.vae_flax.FlaxDecoderOutput",title:"FlaxDecoderOutput"},{local:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput",title:"FlaxAutoencoderKLOutput"},{local:"diffusers.FlaxAutoencoderKL",title:"FlaxAutoencoderKL"}],title:"Models"};function v_(I){return d_(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class k_ extends r_{constructor(x){super();a_(this,x,v_,g_,i_,{})}}export{k_ as default,__ as metadata};
