import{S as Ky,i as Yy,s as Qy,e as n,k as i,w as f,t as l,$ as Hy,M as e0,c as s,d as o,m as d,a as r,x as u,h as c,a0 as t0,b as a,G as e,g as p,y as h,q as _,o as g,B as b,v as o0,L as Zd}from"../../chunks/vendor-hf-doc-builder.js";import{T as Zy}from"../../chunks/Tip-hf-doc-builder.js";import{D as y}from"../../chunks/Docstring-hf-doc-builder.js";import{C as Rd}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as k}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Sd}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function n0(B){let x,T,M,w,D;return w=new Rd({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwVU5ldDJEQ29uZGl0aW9uTW9kZWwlMEFmcm9tJTIweGZvcm1lcnMub3BzJTIwaW1wb3J0JTIwTWVtb3J5RWZmaWNpZW50QXR0ZW50aW9uRmxhc2hBdHRlbnRpb25PcCUwQSUwQW1vZGVsJTIwJTNEJTIwVU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi0yLTElMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJ1bmV0JTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKSUwQW1vZGVsJTIwJTNEJTIwbW9kZWwudG8oJTIyY3VkYSUyMiklMEFtb2RlbC5lbmFibGVfeGZvcm1lcnNfbWVtb3J5X2VmZmljaWVudF9hdHRlbnRpb24oYXR0ZW50aW9uX29wJTNETWVtb3J5RWZmaWNpZW50QXR0ZW50aW9uRmxhc2hBdHRlbnRpb25PcCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> xformers.ops <span class="hljs-keyword">import</span> MemoryEfficientAttentionFlashAttentionOp

<span class="hljs-meta">&gt;&gt;&gt; </span>model = UNet2DConditionModel.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = model.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model.enable_xformers_memory_efficient_attention(attention_op=MemoryEfficientAttentionFlashAttentionOp)`}}),{c(){x=n("p"),T=l("Examples:"),M=i(),f(w.$$.fragment)},l(v){x=s(v,"P",{});var $=r(x);T=c($,"Examples:"),$.forEach(o),M=d(v),u(w.$$.fragment,v)},m(v,$){p(v,x,$),e(x,T),p(v,M,$),h(w,v,$),D=!0},p:Zd,i(v){D||(_(w.$$.fragment,v),D=!0)},o(v){g(w.$$.fragment,v),D=!1},d(v){v&&o(x),v&&o(M),b(w,v)}}}function s0(B){let x,T,M,w,D,v,$,ne;return{c(){x=n("p"),T=l("It is required to be logged in ("),M=n("code"),w=l("huggingface-cli login"),D=l(") when you want to use private or "),v=n("a"),$=l(`gated
models`),ne=l("."),this.h()},l(Ae){x=s(Ae,"P",{});var R=r(x);T=c(R,"It is required to be logged in ("),M=s(R,"CODE",{});var K=r(M);w=c(K,"huggingface-cli login"),K.forEach(o),D=c(R,") when you want to use private or "),v=s(R,"A",{href:!0,rel:!0});var ur=r(v);$=c(ur,`gated
models`),ur.forEach(o),ne=c(R,"."),R.forEach(o),this.h()},h(){a(v,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),a(v,"rel","nofollow")},m(Ae,R){p(Ae,x,R),e(x,T),e(x,M),e(M,w),e(x,D),e(x,v),e(v,$),e(x,ne)},d(Ae){Ae&&o(x)}}}function r0(B){let x,T,M,w,D;return{c(){x=n("p"),T=l("Activate the special "),M=n("a"),w=l("\u201Coffline-mode\u201D"),D=l(` to use
this method in a firewalled environment.`),this.h()},l(v){x=s(v,"P",{});var $=r(x);T=c($,"Activate the special "),M=s($,"A",{href:!0,rel:!0});var ne=r(M);w=c(ne,"\u201Coffline-mode\u201D"),ne.forEach(o),D=c($,` to use
this method in a firewalled environment.`),$.forEach(o),this.h()},h(){a(M,"href","https://huggingface.co/diffusers/installation.html#offline-mode"),a(M,"rel","nofollow")},m(v,$){p(v,x,$),e(x,T),e(x,M),e(M,w),e(x,D)},d(v){v&&o(x)}}}function a0(B){let x,T,M,w,D;return w=new Rd({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMERvd25sb2FkJTIwbW9kZWwlMjBhbmQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTIwYW5kJTIwY2FjaGUuJTBBbW9kZWwlMkMlMjBwYXJhbXMlMjAlM0QlMjBGbGF4VU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQSUyMyUyME1vZGVsJTIwd2FzJTIwc2F2ZWQlMjB1c2luZyUyMCpzYXZlX3ByZXRyYWluZWQoJy4lMkZ0ZXN0JTJGc2F2ZWRfbW9kZWwlMkYnKSolMjAoZm9yJTIwZXhhbXBsZSUyMHB1cnBvc2VzJTJDJTIwbm90JTIwcnVubmFibGUpLiUwQW1vZGVsJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJTIyKQ==",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"),T=l("Examples:"),M=i(),f(w.$$.fragment)},l(v){x=s(v,"P",{});var $=r(x);T=c($,"Examples:"),$.forEach(o),M=d(v),u(w.$$.fragment,v)},m(v,$){p(v,x,$),e(x,T),p(v,M,$),h(w,v,$),D=!0},p:Zd,i(v){D||(_(w.$$.fragment,v),D=!0)},o(v){g(w.$$.fragment,v),D=!1},d(v){v&&o(x),v&&o(M),b(w,v)}}}function i0(B){let x,T,M,w,D;return w=new Rd({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMGxvYWQlMjBtb2RlbCUwQW1vZGVsJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEElMjMlMjBCeSUyMGRlZmF1bHQlMkMlMjB0aGUlMjBtb2RlbCUyMHBhcmFtZXRlcnMlMjB3aWxsJTIwYmUlMjBpbiUyMGZwMzIlMjBwcmVjaXNpb24lMkMlMjB0byUyMGNhc3QlMjB0aGVzZSUyMHRvJTIwYmZsb2F0MTYlMjBwcmVjaXNpb24lMEFwYXJhbXMlMjAlM0QlMjBtb2RlbC50b19iZjE2KHBhcmFtcyklMEElMjMlMjBJZiUyMHlvdSUyMGRvbid0JTIwd2FudCUyMHRvJTIwY2FzdCUyMGNlcnRhaW4lMjBwYXJhbWV0ZXJzJTIwKGZvciUyMGV4YW1wbGUlMjBsYXllciUyMG5vcm0lMjBiaWFzJTIwYW5kJTIwc2NhbGUpJTBBJTIzJTIwdGhlbiUyMHBhc3MlMjB0aGUlMjBtYXNrJTIwYXMlMjBmb2xsb3dzJTBBZnJvbSUyMGZsYXglMjBpbXBvcnQlMjB0cmF2ZXJzZV91dGlsJTBBJTBBbW9kZWwlMkMlMjBwYXJhbXMlMjAlM0QlMjBGbGF4VU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQWZsYXRfcGFyYW1zJTIwJTNEJTIwdHJhdmVyc2VfdXRpbC5mbGF0dGVuX2RpY3QocGFyYW1zKSUwQW1hc2slMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjBwYXRoJTNBJTIwKHBhdGglNUItMiU1RCUyMCElM0QlMjAoJTIyTGF5ZXJOb3JtJTIyJTJDJTIwJTIyYmlhcyUyMiklMjBhbmQlMjBwYXRoJTVCLTIlM0ElNUQlMjAhJTNEJTIwKCUyMkxheWVyTm9ybSUyMiUyQyUyMCUyMnNjYWxlJTIyKSklMEElMjAlMjAlMjAlMjBmb3IlMjBwYXRoJTIwaW4lMjBmbGF0X3BhcmFtcyUwQSU3RCUwQW1hc2slMjAlM0QlMjB0cmF2ZXJzZV91dGlsLnVuZmxhdHRlbl9kaWN0KG1hc2spJTBBcGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fYmYxNihwYXJhbXMlMkMlMjBtYXNrKQ==",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"),T=l("Examples:"),M=i(),f(w.$$.fragment)},l(v){x=s(v,"P",{});var $=r(x);T=c($,"Examples:"),$.forEach(o),M=d(v),u(w.$$.fragment,v)},m(v,$){p(v,x,$),e(x,T),p(v,M,$),h(w,v,$),D=!0},p:Zd,i(v){D||(_(w.$$.fragment,v),D=!0)},o(v){g(w.$$.fragment,v),D=!1},d(v){v&&o(x),v&&o(M),b(w,v)}}}function d0(B){let x,T,M,w,D;return w=new Rd({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMGxvYWQlMjBtb2RlbCUwQW1vZGVsJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEElMjMlMjBCeSUyMGRlZmF1bHQlMkMlMjB0aGUlMjBtb2RlbCUyMHBhcmFtcyUyMHdpbGwlMjBiZSUyMGluJTIwZnAzMiUyQyUyMHRvJTIwY2FzdCUyMHRoZXNlJTIwdG8lMjBmbG9hdDE2JTBBcGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fZnAxNihwYXJhbXMpJTBBJTIzJTIwSWYlMjB5b3UlMjB3YW50JTIwZG9uJ3QlMjB3YW50JTIwdG8lMjBjYXN0JTIwY2VydGFpbiUyMHBhcmFtZXRlcnMlMjAoZm9yJTIwZXhhbXBsZSUyMGxheWVyJTIwbm9ybSUyMGJpYXMlMjBhbmQlMjBzY2FsZSklMEElMjMlMjB0aGVuJTIwcGFzcyUyMHRoZSUyMG1hc2slMjBhcyUyMGZvbGxvd3MlMEFmcm9tJTIwZmxheCUyMGltcG9ydCUyMHRyYXZlcnNlX3V0aWwlMEElMEFtb2RlbCUyQyUyMHBhcmFtcyUyMCUzRCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIpJTBBZmxhdF9wYXJhbXMlMjAlM0QlMjB0cmF2ZXJzZV91dGlsLmZsYXR0ZW5fZGljdChwYXJhbXMpJTBBbWFzayUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMHBhdGglM0ElMjAocGF0aCU1Qi0yJTVEJTIwISUzRCUyMCglMjJMYXllck5vcm0lMjIlMkMlMjAlMjJiaWFzJTIyKSUyMGFuZCUyMHBhdGglNUItMiUzQSU1RCUyMCElM0QlMjAoJTIyTGF5ZXJOb3JtJTIyJTJDJTIwJTIyc2NhbGUlMjIpKSUwQSUyMCUyMCUyMCUyMGZvciUyMHBhdGglMjBpbiUyMGZsYXRfcGFyYW1zJTBBJTdEJTBBbWFzayUyMCUzRCUyMHRyYXZlcnNlX3V0aWwudW5mbGF0dGVuX2RpY3QobWFzayklMEFwYXJhbXMlMjAlM0QlMjBtb2RlbC50b19mcDE2KHBhcmFtcyUyQyUyMG1hc2sp",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"),T=l("Examples:"),M=i(),f(w.$$.fragment)},l(v){x=s(v,"P",{});var $=r(x);T=c($,"Examples:"),$.forEach(o),M=d(v),u(w.$$.fragment,v)},m(v,$){p(v,x,$),e(x,T),p(v,M,$),h(w,v,$),D=!0},p:Zd,i(v){D||(_(w.$$.fragment,v),D=!0)},o(v){g(w.$$.fragment,v),D=!1},d(v){v&&o(x),v&&o(M),b(w,v)}}}function l0(B){let x,T,M,w,D;return w=new Rd({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMERvd25sb2FkJTIwbW9kZWwlMjBhbmQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTBBbW9kZWwlMkMlMjBwYXJhbXMlMjAlM0QlMjBGbGF4VU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQSUyMyUyMEJ5JTIwZGVmYXVsdCUyQyUyMHRoZSUyMG1vZGVsJTIwcGFyYW1zJTIwd2lsbCUyMGJlJTIwaW4lMjBmcDMyJTJDJTIwdG8lMjBpbGx1c3RyYXRlJTIwdGhlJTIwdXNlJTIwb2YlMjB0aGlzJTIwbWV0aG9kJTJDJTBBJTIzJTIwd2UnbGwlMjBmaXJzdCUyMGNhc3QlMjB0byUyMGZwMTYlMjBhbmQlMjBiYWNrJTIwdG8lMjBmcDMyJTBBcGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fZjE2KHBhcmFtcyklMEElMjMlMjBub3clMjBjYXN0JTIwYmFjayUyMHRvJTIwZnAzMiUwQXBhcmFtcyUyMCUzRCUyMG1vZGVsLnRvX2ZwMzIocGFyYW1zKQ==",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"),T=l("Examples:"),M=i(),f(w.$$.fragment)},l(v){x=s(v,"P",{});var $=r(x);T=c($,"Examples:"),$.forEach(o),M=d(v),u(w.$$.fragment,v)},m(v,$){p(v,x,$),e(x,T),p(v,M,$),h(w,v,$),D=!0},p:Zd,i(v){D||(_(w.$$.fragment,v),D=!0)},o(v){g(w.$$.fragment,v),D=!1},d(v){v&&o(x),v&&o(M),b(w,v)}}}function c0(B){let x,T,M,w,D,v,$,ne,Ae,R,K,ur,Kd,Ry='<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>p</mi><mi>\u03B8</mi></msub><mo stretchy="false">(</mo><msub><mi>x</mi><mrow><mi>t</mi><mo>\u2212</mo><mn>1</mn></mrow></msub><mi mathvariant="normal">\u2223</mi><msub><mi>x</mi><mi>t</mi></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">p_{\\theta}(x_{t-1}|x_{t})</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord mathnormal">p</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3361em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight" style="margin-right:0.02778em;">\u03B8</span></span></span></span></span><span class="vlist-s">\u200B</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mopen">(</span><span class="mord"><span class="mord mathnormal">x</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight">t</span><span class="mbin mtight">\u2212</span><span class="mord mtight">1</span></span></span></span></span><span class="vlist-s">\u200B</span></span><span class="vlist-r"><span class="vlist" style="height:0.2083em;"><span></span></span></span></span></span></span><span class="mord">\u2223</span><span class="mord"><span class="mord mathnormal">x</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.2806em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight">t</span></span></span></span></span><span class="vlist-s">\u200B</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mclose">)</span></span></span></span>',Yd,Qr,Dm,Tm,Qd,Ee,ut,Hr,Mo,km,ea,Nm,Hd,N,Do,Um,ta,Am,Em,hr,_r,Cm,Fm,Pm,oa,he,na,jm,Im,sa,Om,Lm,gr,Bm,Vm,qm,_e,To,Jm,ra,zm,Wm,aa,Xm,Gm,ht,ko,Sm,ia,Zm,Rm,ge,No,Km,da,Ym,Qm,la,Hm,ep,W,Uo,tp,ca,op,np,ma,sp,rp,pa,ap,ip,_t,dp,j,Ao,lp,fa,cp,mp,Ce,pp,ua,fp,up,ha,hp,_p,gp,Eo,bp,_a,vp,yp,xp,Co,wp,ga,$p,Mp,Dp,gt,Tp,bt,kp,vt,Fo,Np,ba,Up,Ap,yt,Po,Ep,jo,Cp,va,Fp,Pp,el,Fe,xt,ya,Io,jp,xa,Ip,tl,Oo,Lo,ol,Pe,wt,wa,Bo,Op,$a,Lp,nl,Y,Vo,Bp,Ma,Vp,qp,qo,Jp,br,zp,Wp,Xp,vr,Jo,sl,je,$t,Da,zo,Gp,Ta,Sp,rl,Wo,Xo,al,Ie,Mt,ka,Go,Zp,Na,Rp,il,Q,So,Kp,Ua,Yp,Qp,Zo,Hp,yr,ef,tf,of,xr,Ro,dl,Oe,Dt,Aa,Ko,nf,Ea,sf,ll,Yo,Qo,cl,Le,Tt,Ca,Ho,rf,Fa,af,ml,F,en,df,Pa,lf,cf,tn,mf,wr,pf,ff,uf,$r,on,hf,be,nn,_f,ja,gf,bf,Ia,vf,yf,Mr,sn,xf,kt,rn,wf,Oa,$f,pl,Be,Nt,La,an,Mf,Ba,Df,fl,dn,ln,ul,Ve,Ut,Va,cn,Tf,qa,kf,hl,P,mn,Nf,Ja,Uf,Af,pn,Ef,Dr,Cf,Ff,Pf,Tr,fn,jf,ve,un,If,za,Of,Lf,Wa,Bf,Vf,kr,hn,qf,At,_n,Jf,Xa,zf,_l,qe,Et,Ga,gn,Wf,Sa,Xf,gl,Je,bn,Gf,Za,Sf,bl,ze,Ct,Ra,vn,Zf,Ka,Rf,vl,We,yn,Kf,Ya,Yf,yl,Xe,Ft,Qa,xn,Qf,Ha,Hf,xl,H,wn,eu,ei,tu,ou,$n,nu,Nr,su,ru,au,Ur,Mn,wl,Ge,Pt,ti,Dn,iu,oi,du,$l,Se,Tn,lu,ni,cu,Ml,Ze,jt,si,kn,mu,ri,pu,Dl,U,Nn,fu,ai,uu,hu,Un,_u,Ar,gu,bu,vu,It,An,yu,En,xu,ii,wu,$u,Mu,Ot,Cn,Du,Fn,Tu,di,ku,Nu,Uu,Lt,Pn,Au,li,Eu,Cu,Bt,jn,Fu,ci,Pu,ju,Er,In,Iu,Vt,On,Ou,mi,Lu,Bu,qt,Ln,Vu,pi,qu,Tl,Re,Jt,fi,Bn,Ju,ui,zu,kl,I,Vn,Wu,hi,Xu,Gu,_i,Su,Zu,qn,Ru,gi,Ku,Yu,Qu,bi,Hu,eh,Cr,Jn,Nl,Ke,zt,vi,zn,th,yi,oh,Ul,Wn,Xn,Al,Ye,Wt,xi,Gn,nh,wi,sh,El,le,Sn,rh,$i,ah,ih,Fr,Zn,Cl,Qe,Xt,Mi,Rn,dh,Di,lh,Fl,Kn,Yn,Pl,He,Gt,Ti,Qn,ch,ki,mh,jl,q,Hn,ph,Ni,fh,uh,es,hh,Pr,_h,gh,bh,jr,vh,ts,yh,xh,Ir,os,Il,et,St,Ui,ns,wh,Ai,$h,Ol,ss,rs,Ll,tt,Zt,Ei,as,Mh,Ci,Dh,Bl,is,ds,Vl,ot,Rt,Fi,ls,Th,Pi,kh,ql,J,cs,Nh,Kt,ms,Uh,ji,Ah,Eh,ye,ps,Ch,Ii,Fh,Ph,Oi,jh,Ih,Or,fs,Oh,Yt,us,Lh,Li,Bh,Jl,nt,Qt,Bi,hs,Vh,Vi,qh,zl,E,_s,Jh,qi,zh,Wh,Lr,Br,Xh,Gh,Sh,X,gs,Zh,Ji,Rh,Kh,bs,Yh,zi,Qh,Hh,e_,vs,t_,Wi,o_,n_,s_,Ht,r_,eo,ys,a_,xs,i_,Xi,d_,l_,c_,se,ws,m_,ee,p_,Gi,f_,u_,Si,h_,__,Zi,g_,b_,Ri,v_,y_,x_,Ki,w_,$_,to,M_,re,$s,D_,te,T_,Yi,k_,N_,Qi,U_,A_,Hi,E_,C_,ed,F_,P_,j_,td,I_,O_,oo,L_,xe,Ms,B_,oe,V_,od,q_,J_,nd,z_,W_,sd,X_,G_,rd,S_,Z_,R_,no,Wl,st,so,ad,Ds,K_,id,Y_,Xl,rt,Ts,Q_,ro,ks,H_,dd,eg,Gl,at,ao,ld,Ns,tg,cd,og,Sl,O,Us,ng,md,sg,rg,As,ag,Vr,ig,dg,lg,Es,cg,Cs,mg,pg,fg,pd,ug,hg,ce,fd,Fs,_g,gg,ud,Ps,bg,vg,hd,js,yg,xg,_d,Is,wg,Zl,it,io,gd,Os,$g,bd,Mg,Rl,me,Ls,Dg,vd,Tg,kg,lo,Bs,Ng,yd,Ug,Kl,dt,co,xd,Vs,Ag,wd,Eg,Yl,pe,qs,Cg,$d,Fg,Pg,mo,Js,jg,Md,Ig,Ql,lt,po,Dd,zs,Og,Td,Lg,Hl,z,Ws,Bg,kd,Vg,qg,Xs,Jg,Gs,zg,Wg,Xg,Nd,Gg,Sg,fe,Ud,Ss,Zg,Rg,Ad,Zs,Kg,Yg,Ed,Rs,Qg,Hg,Cd,Ks,eb,ec,ct,fo,Fd,Ys,tb,Pd,ob,tc,mt,Qs,nb,uo,Hs,sb,jd,rb,oc,pt,ho,Id,er,ab,Od,ib,nc,L,tr,db,or,lb,nr,cb,mb,pb,sr,fb,qr,ub,hb,_b,rr,gb,ar,bb,vb,yb,Ld,xb,wb,ue,Bd,ir,$b,Mb,Vd,dr,Db,Tb,qd,lr,kb,Nb,Jd,cr,Ub,sc;return v=new k({}),Mo=new k({}),Do=new y({props:{name:"class diffusers.ModelMixin",anchor:"diffusers.ModelMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_utils.py#L153"}}),To=new y({props:{name:"disable_gradient_checkpointing",anchor:"diffusers.ModelMixin.disable_gradient_checkpointing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_utils.py#L210"}}),ko=new y({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.ModelMixin.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_utils.py#L269"}}),No=new y({props:{name:"enable_gradient_checkpointing",anchor:"diffusers.ModelMixin.enable_gradient_checkpointing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_utils.py#L199"}}),Uo=new y({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.ModelMixin.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.ModelMixin.enable_xformers_memory_efficient_attention.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
Override the default <code>None</code> operator for use as <code>op</code> argument to the
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.memory_efficient_attention" rel="nofollow"><code>memory_efficient_attention()</code></a>
function of xFormers.`,name:"attention_op"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_utils.py#L237"}}),_t=new Sd({props:{anchor:"diffusers.ModelMixin.enable_xformers_memory_efficient_attention.example",$$slots:{default:[n0]},$$scope:{ctx:B}}}),Ao=new y({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.from_flax",description:`<strong>from_flax</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a Flax checkpoint save file.`,name:"from_flax"},{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.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier to maximum memory. Will default to the maximum memory available for each
GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.ModelMixin.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
If the <code>device_map</code> contains any value <code>&quot;disk&quot;</code>, the folder where we will offload weights.`,name:"offload_folder"},{anchor:"diffusers.ModelMixin.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, will temporarily offload the CPU state dict to the hard drive to avoid getting out of CPU
RAM if the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to
<code>True</code> when there is some disk offload.`,name:"offload_state_dict"},{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"},{anchor:"diffusers.ModelMixin.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified load weights from <code>variant</code> filename, <em>e.g.</em> pytorch_model.<variant>.bin. <code>variant</code> is
ignored when using <code>from_flax</code>.</variant>`,name:"variant"},{anchor:"diffusers.ModelMixin.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the <code>safetensors</code> weights will be downloaded if they&#x2019;re available <strong>and</strong> if the
<code>safetensors</code> library is installed. If set to <code>True</code>, the model will be forcibly loaded from
<code>safetensors</code> weights. If set to <code>False</code>, loading will <em>not</em> use <code>safetensors</code>.`,name:"use_safetensors"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_utils.py#L335"}}),gt=new Zy({props:{$$slots:{default:[s0]},$$scope:{ctx:B}}}),bt=new Zy({props:{$$slots:{default:[r0]},$$scope:{ctx:B}}}),Fo=new y({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.17.1/src/diffusers/models/modeling_utils.py#L821",returnDescription:`
<p>The number of parameters.</p>
`,returnType:`
<p><code>int</code></p>
`}}),Po=new y({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"},{name:"variant",val:": typing.Optional[str] = None"}],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"},{anchor:"diffusers.ModelMixin.save_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified, weights are saved in the format pytorch_model.<variant>.bin.</variant>`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_utils.py#L275"}}),Io=new k({}),Lo=new y({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.17.1/src/diffusers/models/unet_2d.py#L28"}}),Bo=new k({}),Vo=new y({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:": typing.Optional[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"},{name:"class_embed_type",val:": typing.Optional[str] = None"},{name:"num_class_embeds",val:": typing.Optional[int] = None"}],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. Dimensions must be a multiple of <code>2 ** (len(block_out_channels) - 1)</code>.`,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"},{anchor:"diffusers.UNet2DModel.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"},{anchor:"diffusers.UNet2DModel.num_class_embeds",description:`<strong>num_class_embeds</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
Input dimension of the learnable embedding matrix to be projected to <code>time_embed_dim</code>, when performing
class conditioning with <code>class_embed_type</code> equal to <code>None</code>.`,name:"num_class_embeds"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_2d.py#L38"}}),Jo=new y({props:{name:"forward",anchor:"diffusers.UNet2DModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"class_labels",val:": typing.Optional[torch.Tensor] = None"},{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.class_labels",description:`<strong>class_labels</strong> (<code>torch.FloatTensor</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Optional class labels for conditioning. Their embeddings will be summed with the timestep embeddings.`,name:"class_labels"},{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.17.1/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.17.1/src/diffusers/models/unet_2d.py#L219",returnDescription:`
<p><a
  href="/docs/diffusers/v0.17.1/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.17.1/en/api/models#diffusers.models.unet_2d.UNet2DOutput"
>UNet2DOutput</a> or <code>tuple</code></p>
`}}),zo=new k({}),Xo=new y({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.17.1/src/diffusers/models/unet_1d.py#L29"}}),Go=new k({}),So=new y({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.extra_in_channels",description:`<strong>extra_in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of additional channels to be added to the input of the first down block. Useful for cases where the
input data has more channels than what the model is initially designed for.`,name:"extra_in_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 activation 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.17.1/src/diffusers/models/unet_1d.py#L39"}}),Ro=new y({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, num_channels, sample_size)</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.17.1/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.17.1/src/diffusers/models/unet_1d.py#L193",returnDescription:`
<p><a
  href="/docs/diffusers/v0.17.1/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.17.1/en/api/models#diffusers.models.unet_1d.UNet1DOutput"
>UNet1DOutput</a> or <code>tuple</code></p>
`}}),Ko=new k({}),Qo=new y({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.17.1/src/diffusers/models/unet_2d_condition.py#L51"}}),Ho=new k({}),en=new y({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:": typing.Optional[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:": typing.Union[int, typing.Tuple[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:": typing.Optional[int] = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"cross_attention_dim",val:": typing.Union[int, typing.Tuple[int]] = 1280"},{name:"encoder_hid_dim",val:": typing.Optional[int] = None"},{name:"encoder_hid_dim_type",val:": typing.Optional[str] = None"},{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:"addition_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'"},{name:"resnet_skip_time_act",val:": bool = False"},{name:"resnet_out_scale_factor",val:": int = 1.0"},{name:"time_embedding_type",val:": str = 'positional'"},{name:"time_embedding_dim",val:": typing.Optional[int] = None"},{name:"time_embedding_act_fn",val:": typing.Optional[str] = None"},{name:"timestep_post_act",val:": typing.Optional[str] = None"},{name:"time_cond_proj_dim",val:": typing.Optional[int] = None"},{name:"conv_in_kernel",val:": int = 3"},{name:"conv_out_kernel",val:": int = 3"},{name:"projection_class_embeddings_input_dim",val:": typing.Optional[int] = None"},{name:"class_embeddings_concat",val:": bool = False"},{name:"mid_block_only_cross_attention",val:": typing.Optional[bool] = None"},{name:"cross_attention_norm",val:": typing.Optional[str] = None"},{name:"addition_embed_type_num_heads",val:" = 64"}],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>, will skip the
mid block layer if <code>None</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.only_cross_attention(bool",description:`<strong>only_cross_attention(<code>bool</code></strong> or <code>Tuple[bool]</code>, <em>optional</em>, default to <code>False</code>) &#x2014;
Whether to include self-attention in the basic transformer blocks, see
<code>BasicTransformerBlock</code>.`,name:"only_cross_attention(bool"},{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.
If <code>None</code>, it will skip the normalization and activation layers in post-processing`,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> or <code>Tuple[int]</code>, <em>optional</em>, defaults to 1280) &#x2014;
The dimension of the cross attention features.`,name:"cross_attention_dim"},{anchor:"diffusers.UNet2DConditionModel.encoder_hid_dim",description:`<strong>encoder_hid_dim</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
If <code>encoder_hid_dim_type</code> is defined, <code>encoder_hidden_states</code> will be projected from <code>encoder_hid_dim</code>
dimension to <code>cross_attention_dim</code>.`,name:"encoder_hid_dim"},{anchor:"diffusers.UNet2DConditionModel.encoder_hid_dim_type",description:`<strong>encoder_hid_dim_type</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
If given, the <code>encoder_hidden_states</code> and potentially other embeddings will be down-projected to text
embeddings of dimension <code>cross_attention</code> according to <code>encoder_hid_dim_type</code>.`,name:"encoder_hid_dim_type"},{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>, <code>&quot;identity&quot;</code>, <code>&quot;projection&quot;</code>, or <code>&quot;simple_projection&quot;</code>.`,name:"class_embed_type"},{anchor:"diffusers.UNet2DConditionModel.addition_embed_type",description:`<strong>addition_embed_type</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
Configures an optional embedding which will be summed with the time embeddings. Choose from <code>None</code> or
&#x201C;text&#x201D;. &#x201C;text&#x201D; will use the <code>TextTimeEmbedding</code> layer.`,name:"addition_embed_type"},{anchor:"diffusers.UNet2DConditionModel.num_class_embeds",description:`<strong>num_class_embeds</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
Input dimension of the learnable embedding matrix to be projected to <code>time_embed_dim</code>, when performing
class conditioning with <code>class_embed_type</code> equal to <code>None</code>.`,name:"num_class_embeds"},{anchor:"diffusers.UNet2DConditionModel.time_embedding_type",description:`<strong>time_embedding_type</strong> (<code>str</code>, <em>optional</em>, default to <code>positional</code>) &#x2014;
The type of position embedding to use for timesteps. Choose from <code>positional</code> or <code>fourier</code>.`,name:"time_embedding_type"},{anchor:"diffusers.UNet2DConditionModel.time_embedding_dim",description:`<strong>time_embedding_dim</strong> (<code>int</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
An optional override for the dimension of the projected time embedding.`,name:"time_embedding_dim"},{anchor:"diffusers.UNet2DConditionModel.time_embedding_act_fn",description:`<strong>time_embedding_act_fn</strong> (<code>str</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
Optional activation function to use on the time embeddings only one time before they as passed to the rest
of the unet. Choose from <code>silu</code>, <code>mish</code>, <code>gelu</code>, and <code>swish</code>.`,name:"time_embedding_act_fn"},{anchor:"diffusers.UNet2DConditionModel.timestep_post_act",description:"<strong>timestep_post_act</strong> (<code>str, *optional*, default to </code>None<code>) -- The second activation function to use in timestep embedding. Choose from </code>silu<code>, </code>mish<code>and</code>gelu`.",name:"timestep_post_act"},{anchor:"diffusers.UNet2DConditionModel.time_cond_proj_dim",description:`<strong>time_cond_proj_dim</strong> (<code>int</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
The dimension of <code>cond_proj</code> layer in timestep embedding.`,name:"time_cond_proj_dim"},{anchor:"diffusers.UNet2DConditionModel.conv_in_kernel",description:"<strong>conv_in_kernel</strong> (<code>int</code>, <em>optional</em>, default to <code>3</code>) &#x2014; The kernel size of <code>conv_in</code> layer.",name:"conv_in_kernel"},{anchor:"diffusers.UNet2DConditionModel.conv_out_kernel",description:"<strong>conv_out_kernel</strong> (<code>int</code>, <em>optional</em>, default to <code>3</code>) &#x2014; The kernel size of <code>conv_out</code> layer.",name:"conv_out_kernel"},{anchor:"diffusers.UNet2DConditionModel.projection_class_embeddings_input_dim",description:`<strong>projection_class_embeddings_input_dim</strong> (<code>int</code>, <em>optional</em>) &#x2014; The dimension of the <code>class_labels</code> input when
using the &#x201C;projection&#x201D; <code>class_embed_type</code>. Required when using the &#x201C;projection&#x201D; <code>class_embed_type</code>.`,name:"projection_class_embeddings_input_dim"},{anchor:"diffusers.UNet2DConditionModel.class_embeddings_concat",description:`<strong>class_embeddings_concat</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to concatenate the time
embeddings with the class embeddings.`,name:"class_embeddings_concat"},{anchor:"diffusers.UNet2DConditionModel.mid_block_only_cross_attention",description:`<strong>mid_block_only_cross_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether to use cross attention with the mid block when using the <code>UNetMidBlock2DSimpleCrossAttn</code>. If
<code>only_cross_attention</code> is given as a single boolean and <code>mid_block_only_cross_attention</code> is None, the
<code>only_cross_attention</code> value will be used as the value for <code>mid_block_only_cross_attention</code>. Else, it will
default to <code>False</code>.`,name:"mid_block_only_cross_attention"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_2d_condition.py#L61"}}),on=new y({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:"timestep_cond",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"added_cond_kwargs",val:": typing.Union[typing.Dict[str, torch.Tensor], NoneType] = None"},{name:"down_block_additional_residuals",val:": typing.Optional[typing.Tuple[torch.Tensor]] = None"},{name:"mid_block_additional_residual",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_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.encoder_attention_mask",description:`<strong>encoder_attention_mask</strong> (<code>torch.Tensor</code>) &#x2014;
(batch, sequence_length) cross-attention mask, applied to encoder_hidden_states. True = keep, False =
discard. Mask will be converted into a bias, which adds large negative values to attention scores
corresponding to &#x201C;discard&#x201D; tokens.`,name:"encoder_attention_mask"},{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.17.1/en/api/models#diffusers.models.unet_2d_condition.UNet2DConditionOutput">models.unet_2d_condition.UNet2DConditionOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.UNet2DConditionModel.forward.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/cross_attention.py" rel="nofollow">diffusers.cross_attention</a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.UNet2DConditionModel.forward.added_cond_kwargs",description:`<strong>added_cond_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified includes additonal conditions that can be used for additonal time
embeddings or encoder hidden states projections. See the configurations <code>encoder_hid_dim_type</code> and
<code>addition_embed_type</code> for more information.`,name:"added_cond_kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_2d_condition.py#L636",returnDescription:`
<p><a
  href="/docs/diffusers/v0.17.1/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.17.1/en/api/models#diffusers.models.unet_2d_condition.UNet2DConditionOutput"
>UNet2DConditionOutput</a> or <code>tuple</code></p>
`}}),nn=new y({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>, maximum 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.17.1/src/diffusers/models/unet_2d_condition.py#L567"}}),sn=new y({props:{name:"set_attn_processor",anchor:"diffusers.UNet2DConditionModel.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor]]]"}],parametersDescription:[{anchor:"diffusers.UNet2DConditionModel.set_attn_processor.`processor",description:`<strong>\`processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or <code>AttentionProcessor</code>) &#x2014;
The instantiated processor class or a dictionary of processor classes that will be set as the processor
of <strong>all</strong> <code>Attention</code> layers.`,name:"`processor"},{anchor:"diffusers.UNet2DConditionModel.set_attn_processor.In",description:"<strong>In</strong> case <code>processor</code> is a dict, the key needs to define the path to the corresponding cross attention processor. This is strongly recommended when setting trainable attention processors. &#x2014;",name:"In"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_2d_condition.py#L531"}}),rn=new y({props:{name:"set_default_attn_processor",anchor:"diffusers.UNet2DConditionModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_2d_condition.py#L561"}}),an=new k({}),ln=new y({props:{name:"class diffusers.models.unet_3d_condition.UNet3DConditionOutput",anchor:"diffusers.models.unet_3d_condition.UNet3DConditionOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.unet_3d_condition.UNet3DConditionOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_frames, 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.17.1/src/diffusers/models/unet_3d_condition.py#L44"}}),cn=new k({}),mn=new y({props:{name:"class diffusers.UNet3DConditionModel",anchor:"diffusers.UNet3DConditionModel",parameters:[{name:"sample_size",val:": typing.Optional[int] = None"},{name:"in_channels",val:": int = 4"},{name:"out_channels",val:": int = 4"},{name:"down_block_types",val:": typing.Tuple[str] = ('CrossAttnDownBlock3D', 'CrossAttnDownBlock3D', 'CrossAttnDownBlock3D', 'DownBlock3D')"},{name:"up_block_types",val:": typing.Tuple[str] = ('UpBlock3D', 'CrossAttnUpBlock3D', 'CrossAttnUpBlock3D', 'CrossAttnUpBlock3D')"},{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:": typing.Optional[int] = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"cross_attention_dim",val:": int = 1024"},{name:"attention_head_dim",val:": typing.Union[int, typing.Tuple[int]] = 64"}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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.
If <code>None</code>, it will skip the normalization and activation layers in post-processing`,name:"norm_num_groups"},{anchor:"diffusers.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_3d_condition.py#L54"}}),fn=new y({props:{name:"forward",anchor:"diffusers.UNet3DConditionModel.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:"timestep_cond",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"down_block_additional_residuals",val:": typing.Optional[typing.Tuple[torch.Tensor]] = None"},{name:"mid_block_additional_residual",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.forward.sample",description:"<strong>sample</strong> (<code>torch.FloatTensor</code>) &#x2014; (batch, num_frames, channel, height, width) noisy inputs tensor",name:"sample"},{anchor:"diffusers.UNet3DConditionModel.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.UNet3DConditionModel.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.UNet3DConditionModel.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>models.unet_2d_condition.UNet3DConditionOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.UNet3DConditionModel.forward.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/cross_attention.py" rel="nofollow">diffusers.cross_attention</a>.`,name:"cross_attention_kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_3d_condition.py#L387",returnDescription:`
<p><code>~models.unet_2d_condition.UNet3DConditionOutput</code> 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><code>~models.unet_2d_condition.UNet3DConditionOutput</code> or <code>tuple</code></p>
`}}),un=new y({props:{name:"set_attention_slice",anchor:"diffusers.UNet3DConditionModel.set_attention_slice",parameters:[{name:"slice_size",val:""}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.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>, maximum 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.17.1/src/diffusers/models/unet_3d_condition.py#L280"}}),hn=new y({props:{name:"set_attn_processor",anchor:"diffusers.UNet3DConditionModel.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor]]]"}],parametersDescription:[{anchor:"diffusers.UNet3DConditionModel.set_attn_processor.`processor",description:`<strong>\`processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or <code>AttentionProcessor</code>) &#x2014;
The instantiated processor class or a dictionary of processor classes that will be set as the processor
of <strong>all</strong> <code>Attention</code> layers.`,name:"`processor"},{anchor:"diffusers.UNet3DConditionModel.set_attn_processor.In",description:"<strong>In</strong> case <code>processor</code> is a dict, the key needs to define the path to the corresponding cross attention processor. This is strongly recommended when setting trainable attention processors. &#x2014;",name:"In"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_3d_condition.py#L346"}}),_n=new y({props:{name:"set_default_attn_processor",anchor:"diffusers.UNet3DConditionModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_3d_condition.py#L377"}}),gn=new k({}),bn=new y({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.17.1/src/diffusers/models/vae.py#L27"}}),vn=new k({}),yn=new y({props:{name:"class diffusers.models.vq_model.VQEncoderOutput",anchor:"diffusers.models.vq_model.VQEncoderOutput",parameters:[{name:"latents",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.vq_model.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.17.1/src/diffusers/models/vq_model.py#L27"}}),xn=new k({}),wn=new y({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"},{name:"scaling_factor",val:": float = 0.18215"},{name:"norm_type",val:": str = 'group'"}],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"},{anchor:"diffusers.VQModel.scaling_factor",description:`<strong>scaling_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.18215</code>) &#x2014;
The component-wise standard deviation of the trained latent space computed using the first batch of the
training set. This is used to scale the latent space to have unit variance when training the diffusion
model. The latents are scaled with the formula <code>z = z * scaling_factor</code> before being passed to the
diffusion model. When decoding, the latents are scaled back to the original scale with the formula: <code>z = 1 / scaling_factor * z</code>. For more details, refer to sections 4.3.2 and D.1 of the <a href="https://arxiv.org/abs/2112.10752" rel="nofollow">High-Resolution Image
Synthesis with Latent Diffusion Models</a> paper.`,name:"scaling_factor"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/vq_model.py#L39"}}),Mn=new y({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.17.1/src/diffusers/models/vq_model.py#L144"}}),Dn=new k({}),Tn=new y({props:{name:"class diffusers.models.autoencoder_kl.AutoencoderKLOutput",anchor:"diffusers.models.autoencoder_kl.AutoencoderKLOutput",parameters:[{name:"latent_dist",val:": DiagonalGaussianDistribution"}],parametersDescription:[{anchor:"diffusers.models.autoencoder_kl.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.17.1/src/diffusers/models/autoencoder_kl.py#L27"}}),kn=new k({}),Nn=new y({props:{name:"class diffusers.AutoencoderKL",anchor:"diffusers.AutoencoderKL",parameters:[{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 3"},{name:"down_block_types",val:": typing.Tuple[str] = ('DownEncoderBlock2D',)"},{name:"up_block_types",val:": typing.Tuple[str] = ('UpDecoderBlock2D',)"},{name:"block_out_channels",val:": typing.Tuple[int] = (64,)"},{name:"layers_per_block",val:": int = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"latent_channels",val:": int = 4"},{name:"norm_num_groups",val:": int = 32"},{name:"sample_size",val:": int = 32"},{name:"scaling_factor",val:": float = 0.18215"}],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 4) &#x2014; Number of channels in the latent space.",name:"latent_channels"},{anchor:"diffusers.AutoencoderKL.sample_size",description:"<strong>sample_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>32</code>) &#x2014; TODO",name:"sample_size"},{anchor:"diffusers.AutoencoderKL.scaling_factor",description:`<strong>scaling_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.18215) &#x2014;
The component-wise standard deviation of the trained latent space computed using the first batch of the
training set. This is used to scale the latent space to have unit variance when training the diffusion
model. The latents are scaled with the formula <code>z = z * scaling_factor</code> before being passed to the
diffusion model. When decoding, the latents are scaled back to the original scale with the formula: <code>z = 1 / scaling_factor * z</code>. For more details, refer to sections 4.3.2 and D.1 of the <a href="https://arxiv.org/abs/2112.10752" rel="nofollow">High-Resolution Image
Synthesis with Latent Diffusion Models</a> paper.`,name:"scaling_factor"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/autoencoder_kl.py#L40"}}),An=new y({props:{name:"disable_slicing",anchor:"diffusers.AutoencoderKL.disable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/autoencoder_kl.py#L152"}}),Cn=new y({props:{name:"disable_tiling",anchor:"diffusers.AutoencoderKL.disable_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/autoencoder_kl.py#L138"}}),Pn=new y({props:{name:"enable_slicing",anchor:"diffusers.AutoencoderKL.enable_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/autoencoder_kl.py#L145"}}),jn=new y({props:{name:"enable_tiling",anchor:"diffusers.AutoencoderKL.enable_tiling",parameters:[{name:"use_tiling",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/autoencoder_kl.py#L130"}}),In=new y({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.17.1/src/diffusers/models/autoencoder_kl.py#L304"}}),On=new y({props:{name:"tiled_decode",anchor:"diffusers.AutoencoderKL.tiled_decode",parameters:[{name:"z",val:": FloatTensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_decode.When",description:"<strong>When</strong> this option is enabled, the VAE will split the input tensor into tiles to compute decoding in several &#x2014;",name:"When"},{anchor:"diffusers.AutoencoderKL.tiled_decode.steps.",description:"<strong>steps.</strong> This is useful to keep memory use constant regardless of image size. The end result of tiled decoding is &#x2014;",name:"steps."},{anchor:"diffusers.AutoencoderKL.tiled_decode.different",description:"<strong>different</strong> from non-tiled decoding due to each tile using a different decoder. To avoid tiling artifacts, the &#x2014;",name:"different"},{anchor:"diffusers.AutoencoderKL.tiled_decode.tiles",description:"<strong>tiles</strong> overlap and are blended together to form a smooth output. You may still see tile-sized changes in the &#x2014;",name:"tiles"},{anchor:"diffusers.AutoencoderKL.tiled_decode.look",description:`<strong>look</strong> of the output, but they should be much less noticeable. &#x2014;
z (<code>torch.FloatTensor</code>): Input batch of latent vectors. return_dict (<code>bool</code>, <em>optional</em>, defaults to
<code>True</code>):
Whether or not to return a <code>DecoderOutput</code> instead of a plain tuple.`,name:"look"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/autoencoder_kl.py#L257"}}),Ln=new y({props:{name:"tiled_encode",anchor:"diffusers.AutoencoderKL.tiled_encode",parameters:[{name:"x",val:": FloatTensor"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.AutoencoderKL.tiled_encode.When",description:"<strong>When</strong> this option is enabled, the VAE will split the input tensor into tiles to compute encoding in several &#x2014;",name:"When"},{anchor:"diffusers.AutoencoderKL.tiled_encode.steps.",description:"<strong>steps.</strong> This is useful to keep memory use constant regardless of image size. The end result of tiled encoding is &#x2014;",name:"steps."},{anchor:"diffusers.AutoencoderKL.tiled_encode.different",description:"<strong>different</strong> from non-tiled encoding due to each tile using a different encoder. To avoid tiling artifacts, the &#x2014;",name:"different"},{anchor:"diffusers.AutoencoderKL.tiled_encode.tiles",description:"<strong>tiles</strong> overlap and are blended together to form a smooth output. You may still see tile-sized changes in the &#x2014;",name:"tiles"},{anchor:"diffusers.AutoencoderKL.tiled_encode.look",description:`<strong>look</strong> of the output, but they should be much less noticeable. &#x2014;
x (<code>torch.FloatTensor</code>): Input batch of images. return_dict (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
Whether or not to return a <code>AutoencoderKLOutput</code> instead of a plain tuple.`,name:"look"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/autoencoder_kl.py#L210"}}),Bn=new k({}),Vn=new y({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:"out_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:"patch_size",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"},{name:"norm_type",val:": str = 'layer_norm'"},{name:"norm_elementwise_affine",val:": bool = True"}],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.17.1/src/diffusers/models/transformer_2d.py#L41"}}),Jn=new y({props:{name:"forward",anchor:"diffusers.Transformer2DModel.forward",parameters:[{name:"hidden_states",val:": Tensor"},{name:"encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"timestep",val:": typing.Optional[torch.LongTensor] = None"},{name:"class_labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"cross_attention_kwargs",val:": typing.Dict[str, typing.Any] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_attention_mask",val:": typing.Optional[torch.Tensor] = 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 continuous, <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.FloatTensor</code> of shape <code>(batch size, sequence len, embed dims)</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.LongTensor</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.class_labels",description:`<strong>class_labels</strong> ( <code>torch.LongTensor</code> of shape <code>(batch size, num classes)</code>, <em>optional</em>) &#x2014;
Optional class labels to be applied as an embedding in AdaLayerZeroNorm. Used to indicate class labels
conditioning.`,name:"class_labels"},{anchor:"diffusers.Transformer2DModel.forward.encoder_attention_mask",description:`<strong>encoder_attention_mask</strong> ( <code>torch.Tensor</code>, <em>optional</em> ). &#x2014;
Cross-attention mask, applied to encoder_hidden_states. Two formats supported:
Mask <code>(batch, sequence_length)</code> True = keep, False = discard. Bias <code>(batch, 1, sequence_length)</code> 0
= keep, -10000 = discard.
If ndim == 2: will be interpreted as a mask, then converted into a bias consistent with the format
above. This bias will be added to the cross-attention scores.`,name:"encoder_attention_mask"},{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.17.1/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.17.1/src/diffusers/models/transformer_2d.py#L214",returnDescription:`
<p><a
  href="/docs/diffusers/v0.17.1/en/api/models#diffusers.models.transformer_2d.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.17.1/en/api/models#diffusers.models.transformer_2d.Transformer2DModelOutput"
>Transformer2DModelOutput</a> or <code>tuple</code></p>
`}}),zn=new k({}),Xn=new y({props:{name:"class diffusers.models.transformer_2d.Transformer2DModelOutput",anchor:"diffusers.models.transformer_2d.Transformer2DModelOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.transformer_2d.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.17.1/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.17.1/src/diffusers/models/transformer_2d.py#L30"}}),Gn=new k({}),Sn=new y({props:{name:"class diffusers.models.transformer_temporal.TransformerTemporalModel",anchor:"diffusers.models.transformer_temporal.TransformerTemporalModel",parameters:[{name:"num_attention_heads",val:": int = 16"},{name:"attention_head_dim",val:": int = 88"},{name:"in_channels",val:": typing.Optional[int] = None"},{name:"out_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:"activation_fn",val:": str = 'geglu'"},{name:"norm_elementwise_affine",val:": bool = True"},{name:"double_self_attention",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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"},{anchor:"diffusers.models.transformer_temporal.TransformerTemporalModel.double_self_attention",description:`<strong>double_self_attention</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Configure if each TransformerBlock should contain two self-attention layers`,name:"double_self_attention"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/transformer_temporal.py#L37"}}),Zn=new y({props:{name:"forward",anchor:"diffusers.models.transformer_temporal.TransformerTemporalModel.forward",parameters:[{name:"hidden_states",val:""},{name:"encoder_hidden_states",val:" = None"},{name:"timestep",val:" = None"},{name:"class_labels",val:" = None"},{name:"num_frames",val:" = 1"},{name:"cross_attention_kwargs",val:" = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.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.models.transformer_temporal.TransformerTemporalModel.forward.class_labels",description:`<strong>class_labels</strong> ( <code>torch.LongTensor</code> of shape <code>(batch size, num classes)</code>, <em>optional</em>) &#x2014;
Optional class labels to be applied as an embedding in AdaLayerZeroNorm. Used to indicate class labels
conditioning.`,name:"class_labels"},{anchor:"diffusers.models.transformer_temporal.TransformerTemporalModel.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.17.1/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.17.1/src/diffusers/models/transformer_temporal.py#L106",returnDescription:`
<p><code>~models.transformer_2d.TransformerTemporalModelOutput</code> 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><code>~models.transformer_2d.TransformerTemporalModelOutput</code> or <code>tuple</code></p>
`}}),Rn=new k({}),Yn=new y({props:{name:"class diffusers.models.transformer_temporal.TransformerTemporalModelOutput",anchor:"diffusers.models.transformer_temporal.TransformerTemporalModelOutput",parameters:[{name:"sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.models.transformer_temporal.TransformerTemporalModelOutput.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size x num_frames, num_channels, height, width)</code>) &#x2014;
Hidden states conditioned on <code>encoder_hidden_states</code> input.`,name:"sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/transformer_temporal.py#L27"}}),Qn=new k({}),Hn=new y({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.17.1/src/diffusers/models/prior_transformer.py#L26"}}),os=new y({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.17.1/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.17.1/src/diffusers/models/prior_transformer.py#L107",returnDescription:`
<p><a
  href="/docs/diffusers/v0.17.1/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.17.1/en/api/models#diffusers.models.prior_transformer.PriorTransformerOutput"
>PriorTransformerOutput</a> or <code>tuple</code></p>
`}}),ns=new k({}),rs=new y({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.17.1/src/diffusers/models/prior_transformer.py#L16"}}),as=new k({}),ds=new y({props:{name:"class diffusers.models.controlnet.ControlNetOutput",anchor:"diffusers.models.controlnet.ControlNetOutput",parameters:[{name:"down_block_res_samples",val:": typing.Tuple[torch.Tensor]"},{name:"mid_block_res_sample",val:": Tensor"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/controlnet.py#L39"}}),ls=new k({}),cs=new y({props:{name:"class diffusers.ControlNetModel",anchor:"diffusers.ControlNetModel",parameters:[{name:"in_channels",val:": int = 4"},{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:"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:": typing.Optional[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:"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'"},{name:"projection_class_embeddings_input_dim",val:": typing.Optional[int] = None"},{name:"controlnet_conditioning_channel_order",val:": str = 'rgb'"},{name:"conditioning_embedding_out_channels",val:": typing.Optional[typing.Tuple[int]] = (16, 32, 96, 256)"},{name:"global_pool_conditions",val:": bool = False"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/controlnet.py#L89"}}),ms=new y({props:{name:"from_unet",anchor:"diffusers.ControlNetModel.from_unet",parameters:[{name:"unet",val:": UNet2DConditionModel"},{name:"controlnet_conditioning_channel_order",val:": str = 'rgb'"},{name:"conditioning_embedding_out_channels",val:": typing.Optional[typing.Tuple[int]] = (16, 32, 96, 256)"},{name:"load_weights_from_unet",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.from_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) &#x2014;
UNet model which weights are copied to the ControlNet. Note that all configuration options are also
copied where applicable.`,name:"unet"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/controlnet.py#L262"}}),ps=new y({props:{name:"set_attention_slice",anchor:"diffusers.ControlNetModel.set_attention_slice",parameters:[{name:"slice_size",val:""}],parametersDescription:[{anchor:"diffusers.ControlNetModel.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>, maximum 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.17.1/src/diffusers/models/controlnet.py#L380"}}),fs=new y({props:{name:"set_attn_processor",anchor:"diffusers.ControlNetModel.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor]]]"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.set_attn_processor.`processor",description:`<strong>\`processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or <code>AttentionProcessor</code>) &#x2014;
The instantiated processor class or a dictionary of processor classes that will be set as the processor
of <strong>all</strong> <code>Attention</code> layers.`,name:"`processor"},{anchor:"diffusers.ControlNetModel.set_attn_processor.In",description:"<strong>In</strong> case <code>processor</code> is a dict, the key needs to define the path to the corresponding cross attention processor. This is strongly recommended when setting trainable attention processors. &#x2014;",name:"In"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/controlnet.py#L342"}}),us=new y({props:{name:"set_default_attn_processor",anchor:"diffusers.ControlNetModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/controlnet.py#L373"}}),hs=new k({}),_s=new y({props:{name:"class diffusers.FlaxModelMixin",anchor:"diffusers.FlaxModelMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/modeling_flax_utils.py#L45"}}),gs=new y({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.17.1/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.17.1/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.17.1/src/diffusers/models/modeling_flax_utils.py#L195"}}),Ht=new Sd({props:{anchor:"diffusers.FlaxModelMixin.from_pretrained.example",$$slots:{default:[a0]},$$scope:{ctx:B}}}),ys=new y({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.17.1/src/diffusers/models/modeling_flax_utils.py#L487"}}),ws=new y({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.17.1/src/diffusers/models/modeling_flax_utils.py#L87"}}),to=new Sd({props:{anchor:"diffusers.FlaxModelMixin.to_bf16.example",$$slots:{default:[i0]},$$scope:{ctx:B}}}),$s=new y({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.17.1/src/diffusers/models/modeling_flax_utils.py#L153"}}),oo=new Sd({props:{anchor:"diffusers.FlaxModelMixin.to_fp16.example",$$slots:{default:[d0]},$$scope:{ctx:B}}}),Ms=new y({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.17.1/src/diffusers/models/modeling_flax_utils.py#L126"}}),no=new Sd({props:{anchor:"diffusers.FlaxModelMixin.to_fp32.example",$$slots:{default:[l0]},$$scope:{ctx:B}}}),Ds=new k({}),Ts=new y({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.17.1/src/diffusers/models/unet_2d_condition_flax.py#L36"}}),ks=new y({props:{name:"replace",anchor:"diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/flax/struct.py#L108"}}),Ns=new k({}),Us=new y({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:"use_memory_efficient_attention",val:": bool = False"},{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 0x7f11e3433d90>"},{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"},{anchor:"diffusers.FlaxUNet2DConditionModel.use_memory_efficient_attention",description:`<strong>use_memory_efficient_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
enable memory efficient attention <a href="https://arxiv.org/abs/2112.05682" rel="nofollow">https://arxiv.org/abs/2112.05682</a>`,name:"use_memory_efficient_attention"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/unet_2d_condition_flax.py#L47"}}),Os=new k({}),Ls=new y({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.17.1/src/diffusers/models/vae_flax.py#L33"}}),Bs=new y({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxDecoderOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/flax/struct.py#L108"}}),Vs=new k({}),qs=new y({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.17.1/src/diffusers/models/vae_flax.py#L48"}}),Js=new y({props:{name:"replace",anchor:"diffusers.models.vae_flax.FlaxAutoencoderKLOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/flax/struct.py#L108"}}),zs=new k({}),Ws=new y({props:{name:"class diffusers.FlaxAutoencoderKL",anchor:"diffusers.FlaxAutoencoderKL",parameters:[{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 3"},{name:"down_block_types",val:": typing.Tuple[str] = ('DownEncoderBlock2D',)"},{name:"up_block_types",val:": typing.Tuple[str] = ('UpDecoderBlock2D',)"},{name:"block_out_channels",val:": typing.Tuple[int] = (64,)"},{name:"layers_per_block",val:": int = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"latent_channels",val:": int = 4"},{name:"norm_num_groups",val:": int = 32"},{name:"sample_size",val:": int = 32"},{name:"scaling_factor",val:": float = 0.18215"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"parent",val:": typing.Union[typing.Type[flax.linen.module.Module], typing.Type[flax.core.scope.Scope], typing.Type[flax.linen.module._Sentinel], NoneType] = <flax.linen.module._Sentinel object at 0x7f11e3433d90>"},{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 32) &#x2014;
Sample input size`,name:"sample_size"},{anchor:"diffusers.FlaxAutoencoderKL.scaling_factor",description:`<strong>scaling_factor</strong> (<em>float</em>, <em>optional</em>, defaults to 0.18215) &#x2014;
The component-wise standard deviation of the trained latent space computed using the first batch of the
training set. This is used to scale the latent space to have unit variance when training the diffusion
model. The latents are scaled with the formula <em>z = z </em> scaling_factor<em> before being passed to the
diffusion model. When decoding, the latents are scaled back to the original scale with the formula: </em>z = 1
/ scaling_factor <em> z</em>. For more details, refer to sections 4.3.2 and D.1 of the <a href="https://arxiv.org/abs/2112.10752" rel="nofollow">High-Resolution Image
Synthesis with Latent Diffusion Models</a> paper.`,name:"scaling_factor"},{anchor:"diffusers.FlaxAutoencoderKL.dtype",description:`<strong>dtype</strong> (<code>jnp.dtype</code>, <em>optional</em>, defaults to jnp.float32) &#x2014;
parameters <em>dtype</em>`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/vae_flax.py#L721"}}),Ys=new k({}),Qs=new y({props:{name:"class diffusers.models.controlnet_flax.FlaxControlNetOutput",anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput",parameters:[{name:"down_block_res_samples",val:": ndarray"},{name:"mid_block_res_sample",val:": ndarray"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/controlnet_flax.py#L34"}}),Hs=new y({props:{name:"replace",anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/flax/struct.py#L108"}}),er=new k({}),tr=new y({props:{name:"class diffusers.FlaxControlNetModel",anchor:"diffusers.FlaxControlNetModel",parameters:[{name:"sample_size",val:": int = 32"},{name:"in_channels",val:": int = 4"},{name:"down_block_types",val:": typing.Tuple[str] = ('CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D')"},{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:"controlnet_conditioning_channel_order",val:": str = 'rgb'"},{name:"conditioning_embedding_out_channels",val:": typing.Tuple[int] = (16, 32, 96, 256)"},{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 0x7f11e3433d90>"},{name:"name",val:": str = None"}],parametersDescription:[{anchor:"diffusers.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.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.FlaxControlNetModel.controlnet_conditioning_channel_order",description:`<strong>controlnet_conditioning_channel_order</strong> (<code>str</code>, <em>optional</em>, defaults to <code>rgb</code>) &#x2014;
The channel order of conditional image. Will convert it to <code>rgb</code> if it&#x2019;s <code>bgr</code>`,name:"controlnet_conditioning_channel_order"},{anchor:"diffusers.FlaxControlNetModel.conditioning_embedding_out_channels",description:`<strong>conditioning_embedding_out_channels</strong> (<code>tuple</code>, <em>optional</em>, defaults to <code>(16, 32, 96, 256)</code>) &#x2014;
The tuple of output channel for each block in conditioning_embedding layer`,name:"conditioning_embedding_out_channels"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/models/controlnet_flax.py#L96"}}),{c(){x=n("meta"),T=i(),M=n("h1"),w=n("a"),D=n("span"),f(v.$$.fragment),$=i(),ne=n("span"),Ae=l("Models"),R=i(),K=n("p"),ur=l(`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 `),Kd=new Hy,Yd=l(`.
The models are built on the base class [\u2018ModelMixin\u2019] that is a `),Qr=n("code"),Dm=l("torch.nn.module"),Tm=l(" with basic functionality for saving and loading models both locally and from the HuggingFace hub."),Qd=i(),Ee=n("h2"),ut=n("a"),Hr=n("span"),f(Mo.$$.fragment),km=i(),ea=n("span"),Nm=l("ModelMixin"),Hd=i(),N=n("div"),f(Do.$$.fragment),Um=i(),ta=n("p"),Am=l("Base class for all models."),Em=i(),hr=n("p"),_r=n("a"),Cm=l("ModelMixin"),Fm=l(` takes care of storing the configuration of the models and handles methods for loading, downloading
and saving models.`),Pm=i(),oa=n("ul"),he=n("li"),na=n("strong"),jm=l("config_name"),Im=l(" ("),sa=n("code"),Om=l("str"),Lm=l(`) \u2014 A filename under which the model should be stored when calling
`),gr=n("a"),Bm=l("save_pretrained()"),Vm=l("."),qm=i(),_e=n("div"),f(To.$$.fragment),Jm=i(),ra=n("p"),zm=l("Deactivates gradient checkpointing for the current model."),Wm=i(),aa=n("p"),Xm=l(`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),Gm=i(),ht=n("div"),f(ko.$$.fragment),Sm=i(),ia=n("p"),Zm=l("Disable memory efficient attention as implemented in xformers."),Rm=i(),ge=n("div"),f(No.$$.fragment),Km=i(),da=n("p"),Ym=l("Activates gradient checkpointing for the current model."),Qm=i(),la=n("p"),Hm=l(`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),ep=i(),W=n("div"),f(Uo.$$.fragment),tp=i(),ca=n("p"),op=l("Enable memory efficient attention as implemented in xformers."),np=i(),ma=n("p"),sp=l(`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.`),rp=i(),pa=n("p"),ap=l(`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),ip=i(),f(_t.$$.fragment),dp=i(),j=n("div"),f(Ao.$$.fragment),lp=i(),fa=n("p"),cp=l("Instantiate a pretrained pytorch model from a pre-trained model configuration."),mp=i(),Ce=n("p"),pp=l("The model is set in evaluation mode by default using "),ua=n("code"),fp=l("model.eval()"),up=l(` (Dropout modules are deactivated). To train
the model, you should first set it back in training mode with `),ha=n("code"),hp=l("model.train()"),_p=l("."),gp=i(),Eo=n("p"),bp=l("The warning "),_a=n("em"),vp=l("Weights from XXX not initialized from pretrained model"),yp=l(` 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.`),xp=i(),Co=n("p"),wp=l("The warning "),ga=n("em"),$p=l("Weights from XXX not used in YYY"),Mp=l(` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),Dp=i(),f(gt.$$.fragment),Tp=i(),f(bt.$$.fragment),kp=i(),vt=n("div"),f(Fo.$$.fragment),Np=i(),ba=n("p"),Up=l("Get number of (optionally, trainable or non-embeddings) parameters in the module."),Ap=i(),yt=n("div"),f(Po.$$.fragment),Ep=i(),jo=n("p"),Cp=l(`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),va=n("code"),Fp=l("[from_pretrained()](/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin.from_pretrained)"),Pp=l(" class method."),el=i(),Fe=n("h2"),xt=n("a"),ya=n("span"),f(Io.$$.fragment),jp=i(),xa=n("span"),Ip=l("UNet2DOutput"),tl=i(),Oo=n("div"),f(Lo.$$.fragment),ol=i(),Pe=n("h2"),wt=n("a"),wa=n("span"),f(Bo.$$.fragment),Op=i(),$a=n("span"),Lp=l("UNet2DModel"),nl=i(),Y=n("div"),f(Vo.$$.fragment),Bp=i(),Ma=n("p"),Vp=l("UNet2DModel is a 2D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),qp=i(),qo=n("p"),Jp=l("This model inherits from "),br=n("a"),zp=l("ModelMixin"),Wp=l(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Xp=i(),vr=n("div"),f(Jo.$$.fragment),sl=i(),je=n("h2"),$t=n("a"),Da=n("span"),f(zo.$$.fragment),Gp=i(),Ta=n("span"),Sp=l("UNet1DOutput"),rl=i(),Wo=n("div"),f(Xo.$$.fragment),al=i(),Ie=n("h2"),Mt=n("a"),ka=n("span"),f(Go.$$.fragment),Zp=i(),Na=n("span"),Rp=l("UNet1DModel"),il=i(),Q=n("div"),f(So.$$.fragment),Kp=i(),Ua=n("p"),Yp=l("UNet1DModel is a 1D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),Qp=i(),Zo=n("p"),Hp=l("This model inherits from "),yr=n("a"),ef=l("ModelMixin"),tf=l(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),of=i(),xr=n("div"),f(Ro.$$.fragment),dl=i(),Oe=n("h2"),Dt=n("a"),Aa=n("span"),f(Ko.$$.fragment),nf=i(),Ea=n("span"),sf=l("UNet2DConditionOutput"),ll=i(),Yo=n("div"),f(Qo.$$.fragment),cl=i(),Le=n("h2"),Tt=n("a"),Ca=n("span"),f(Ho.$$.fragment),rf=i(),Fa=n("span"),af=l("UNet2DConditionModel"),ml=i(),F=n("div"),f(en.$$.fragment),df=i(),Pa=n("p"),lf=l(`UNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a timestep
and returns sample shaped output.`),cf=i(),tn=n("p"),mf=l("This model inherits from "),wr=n("a"),pf=l("ModelMixin"),ff=l(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),uf=i(),$r=n("div"),f(on.$$.fragment),hf=i(),be=n("div"),f(nn.$$.fragment),_f=i(),ja=n("p"),gf=l("Enable sliced attention computation."),bf=i(),Ia=n("p"),vf=l(`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.`),yf=i(),Mr=n("div"),f(sn.$$.fragment),xf=i(),kt=n("div"),f(rn.$$.fragment),wf=i(),Oa=n("p"),$f=l("Disables custom attention processors and sets the default attention implementation."),pl=i(),Be=n("h2"),Nt=n("a"),La=n("span"),f(an.$$.fragment),Mf=i(),Ba=n("span"),Df=l("UNet3DConditionOutput"),fl=i(),dn=n("div"),f(ln.$$.fragment),ul=i(),Ve=n("h2"),Ut=n("a"),Va=n("span"),f(cn.$$.fragment),Tf=i(),qa=n("span"),kf=l("UNet3DConditionModel"),hl=i(),P=n("div"),f(mn.$$.fragment),Nf=i(),Ja=n("p"),Uf=l(`UNet3DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a timestep
and returns sample shaped output.`),Af=i(),pn=n("p"),Ef=l("This model inherits from "),Dr=n("a"),Cf=l("ModelMixin"),Ff=l(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),Pf=i(),Tr=n("div"),f(fn.$$.fragment),jf=i(),ve=n("div"),f(un.$$.fragment),If=i(),za=n("p"),Of=l("Enable sliced attention computation."),Lf=i(),Wa=n("p"),Bf=l(`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.`),Vf=i(),kr=n("div"),f(hn.$$.fragment),qf=i(),At=n("div"),f(_n.$$.fragment),Jf=i(),Xa=n("p"),zf=l("Disables custom attention processors and sets the default attention implementation."),_l=i(),qe=n("h2"),Et=n("a"),Ga=n("span"),f(gn.$$.fragment),Wf=i(),Sa=n("span"),Xf=l("DecoderOutput"),gl=i(),Je=n("div"),f(bn.$$.fragment),Gf=i(),Za=n("p"),Sf=l("Output of decoding method."),bl=i(),ze=n("h2"),Ct=n("a"),Ra=n("span"),f(vn.$$.fragment),Zf=i(),Ka=n("span"),Rf=l("VQEncoderOutput"),vl=i(),We=n("div"),f(yn.$$.fragment),Kf=i(),Ya=n("p"),Yf=l("Output of VQModel encoding method."),yl=i(),Xe=n("h2"),Ft=n("a"),Qa=n("span"),f(xn.$$.fragment),Qf=i(),Ha=n("span"),Hf=l("VQModel"),xl=i(),H=n("div"),f(wn.$$.fragment),eu=i(),ei=n("p"),tu=l(`VQ-VAE model from the paper Neural Discrete Representation Learning by Aaron van den Oord, Oriol Vinyals and Koray
Kavukcuoglu.`),ou=i(),$n=n("p"),nu=l("This model inherits from "),Nr=n("a"),su=l("ModelMixin"),ru=l(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),au=i(),Ur=n("div"),f(Mn.$$.fragment),wl=i(),Ge=n("h2"),Pt=n("a"),ti=n("span"),f(Dn.$$.fragment),iu=i(),oi=n("span"),du=l("AutoencoderKLOutput"),$l=i(),Se=n("div"),f(Tn.$$.fragment),lu=i(),ni=n("p"),cu=l("Output of AutoencoderKL encoding method."),Ml=i(),Ze=n("h2"),jt=n("a"),si=n("span"),f(kn.$$.fragment),mu=i(),ri=n("span"),pu=l("AutoencoderKL"),Dl=i(),U=n("div"),f(Nn.$$.fragment),fu=i(),ai=n("p"),uu=l(`Variational Autoencoder (VAE) model with KL loss from the paper Auto-Encoding Variational Bayes by Diederik P. Kingma
and Max Welling.`),hu=i(),Un=n("p"),_u=l("This model inherits from "),Ar=n("a"),gu=l("ModelMixin"),bu=l(`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),vu=i(),It=n("div"),f(An.$$.fragment),yu=i(),En=n("p"),xu=l("Disable sliced VAE decoding. If "),ii=n("code"),wu=l("enable_slicing"),$u=l(` was previously invoked, this method will go back to computing
decoding in one step.`),Mu=i(),Ot=n("div"),f(Cn.$$.fragment),Du=i(),Fn=n("p"),Tu=l("Disable tiled VAE decoding. If "),di=n("code"),ku=l("enable_vae_tiling"),Nu=l(` was previously invoked, this method will go back to
computing decoding in one step.`),Uu=i(),Lt=n("div"),f(Pn.$$.fragment),Au=i(),li=n("p"),Eu=l(`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`),Cu=i(),Bt=n("div"),f(jn.$$.fragment),Fu=i(),ci=n("p"),Pu=l(`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful to save a large amount of memory and to allow
the processing of larger images.`),ju=i(),Er=n("div"),f(In.$$.fragment),Iu=i(),Vt=n("div"),f(On.$$.fragment),Ou=i(),mi=n("p"),Lu=l("Decode a batch of images using a tiled decoder."),Bu=i(),qt=n("div"),f(Ln.$$.fragment),Vu=i(),pi=n("p"),qu=l("Encode a batch of images using a tiled encoder."),Tl=i(),Re=n("h2"),Jt=n("a"),fi=n("span"),f(Bn.$$.fragment),Ju=i(),ui=n("span"),zu=l("Transformer2DModel"),kl=i(),I=n("div"),f(Vn.$$.fragment),Wu=i(),hi=n("p"),Xu=l(`Transformer model for image-like data. Takes either discrete (classes of vector embeddings) or continuous (actual
embeddings) inputs.`),Gu=i(),_i=n("p"),Su=l(`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.`),Zu=i(),qn=n("p"),Ru=l(`When input is discrete: First, input (classes of latent pixels) is converted to embeddings and has positional
embeddings applied, see `),gi=n("code"),Ku=l("ImagePositionalEmbeddings"),Yu=l(`. Then apply standard transformer action. Finally, predict
classes of unnoised image.`),Qu=i(),bi=n("p"),Hu=l(`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.`),eh=i(),Cr=n("div"),f(Jn.$$.fragment),Nl=i(),Ke=n("h2"),zt=n("a"),vi=n("span"),f(zn.$$.fragment),th=i(),yi=n("span"),oh=l("Transformer2DModelOutput"),Ul=i(),Wn=n("div"),f(Xn.$$.fragment),Al=i(),Ye=n("h2"),Wt=n("a"),xi=n("span"),f(Gn.$$.fragment),nh=i(),wi=n("span"),sh=l("TransformerTemporalModel"),El=i(),le=n("div"),f(Sn.$$.fragment),rh=i(),$i=n("p"),ah=l("Transformer model for video-like data."),ih=i(),Fr=n("div"),f(Zn.$$.fragment),Cl=i(),Qe=n("h2"),Xt=n("a"),Mi=n("span"),f(Rn.$$.fragment),dh=i(),Di=n("span"),lh=l("Transformer2DModelOutput"),Fl=i(),Kn=n("div"),f(Yn.$$.fragment),Pl=i(),He=n("h2"),Gt=n("a"),Ti=n("span"),f(Qn.$$.fragment),ch=i(),ki=n("span"),mh=l("PriorTransformer"),jl=i(),q=n("div"),f(Hn.$$.fragment),ph=i(),Ni=n("p"),fh=l(`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.`),uh=i(),es=n("p"),hh=l("This model inherits from "),Pr=n("a"),_h=l("ModelMixin"),gh=l(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),bh=i(),jr=n("p"),vh=l("For more details, see the original paper: "),ts=n("a"),yh=l("https://arxiv.org/abs/2204.06125"),xh=i(),Ir=n("div"),f(os.$$.fragment),Il=i(),et=n("h2"),St=n("a"),Ui=n("span"),f(ns.$$.fragment),wh=i(),Ai=n("span"),$h=l("PriorTransformerOutput"),Ol=i(),ss=n("div"),f(rs.$$.fragment),Ll=i(),tt=n("h2"),Zt=n("a"),Ei=n("span"),f(as.$$.fragment),Mh=i(),Ci=n("span"),Dh=l("ControlNetOutput"),Bl=i(),is=n("div"),f(ds.$$.fragment),Vl=i(),ot=n("h2"),Rt=n("a"),Fi=n("span"),f(ls.$$.fragment),Th=i(),Pi=n("span"),kh=l("ControlNetModel"),ql=i(),J=n("div"),f(cs.$$.fragment),Nh=i(),Kt=n("div"),f(ms.$$.fragment),Uh=i(),ji=n("p"),Ah=l("Instantiate Controlnet class from UNet2DConditionModel."),Eh=i(),ye=n("div"),f(ps.$$.fragment),Ch=i(),Ii=n("p"),Fh=l("Enable sliced attention computation."),Ph=i(),Oi=n("p"),jh=l(`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.`),Ih=i(),Or=n("div"),f(fs.$$.fragment),Oh=i(),Yt=n("div"),f(us.$$.fragment),Lh=i(),Li=n("p"),Bh=l("Disables custom attention processors and sets the default attention implementation."),Jl=i(),nt=n("h2"),Qt=n("a"),Bi=n("span"),f(hs.$$.fragment),Vh=i(),Vi=n("span"),qh=l("FlaxModelMixin"),zl=i(),E=n("div"),f(_s.$$.fragment),Jh=i(),qi=n("p"),zh=l("Base class for all flax models."),Wh=i(),Lr=n("p"),Br=n("a"),Xh=l("FlaxModelMixin"),Gh=l(` takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models.`),Sh=i(),X=n("div"),f(gs.$$.fragment),Zh=i(),Ji=n("p"),Rh=l("Instantiate a pretrained flax model from a pre-trained model configuration."),Kh=i(),bs=n("p"),Yh=l("The warning "),zi=n("em"),Qh=l("Weights from XXX not initialized from pretrained model"),Hh=l(` 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.`),e_=i(),vs=n("p"),t_=l("The warning "),Wi=n("em"),o_=l("Weights from XXX not used in YYY"),n_=l(` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),s_=i(),f(Ht.$$.fragment),r_=i(),eo=n("div"),f(ys.$$.fragment),a_=i(),xs=n("p"),i_=l(`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),Xi=n("code"),d_=l("[from_pretrained()](/docs/diffusers/v0.17.1/en/api/models#diffusers.FlaxModelMixin.from_pretrained)"),l_=l(" class method"),c_=i(),se=n("div"),f(ws.$$.fragment),m_=i(),ee=n("p"),p_=l("Cast the floating-point "),Gi=n("code"),f_=l("params"),u_=l(" to "),Si=n("code"),h_=l("jax.numpy.bfloat16"),__=l(". This returns a new "),Zi=n("code"),g_=l("params"),b_=l(` tree and does not cast
the `),Ri=n("code"),v_=l("params"),y_=l(" in place."),x_=i(),Ki=n("p"),w_=l(`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.`),$_=i(),f(to.$$.fragment),M_=i(),re=n("div"),f($s.$$.fragment),D_=i(),te=n("p"),T_=l("Cast the floating-point "),Yi=n("code"),k_=l("params"),N_=l(" to "),Qi=n("code"),U_=l("jax.numpy.float16"),A_=l(". This returns a new "),Hi=n("code"),E_=l("params"),C_=l(` tree and does not cast the
`),ed=n("code"),F_=l("params"),P_=l(" in place."),j_=i(),td=n("p"),I_=l(`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.`),O_=i(),f(oo.$$.fragment),L_=i(),xe=n("div"),f(Ms.$$.fragment),B_=i(),oe=n("p"),V_=l("Cast the floating-point "),od=n("code"),q_=l("params"),J_=l(" to "),nd=n("code"),z_=l("jax.numpy.float32"),W_=l(`. This method can be used to explicitly convert the
model parameters to fp32 precision. This returns a new `),sd=n("code"),X_=l("params"),G_=l(" tree and does not cast the "),rd=n("code"),S_=l("params"),Z_=l(" in place."),R_=i(),f(no.$$.fragment),Wl=i(),st=n("h2"),so=n("a"),ad=n("span"),f(Ds.$$.fragment),K_=i(),id=n("span"),Y_=l("FlaxUNet2DConditionOutput"),Xl=i(),rt=n("div"),f(Ts.$$.fragment),Q_=i(),ro=n("div"),f(ks.$$.fragment),H_=i(),dd=n("p"),eg=l("\u201CReturns a new object replacing the specified fields with new values."),Gl=i(),at=n("h2"),ao=n("a"),ld=n("span"),f(Ns.$$.fragment),tg=i(),cd=n("span"),og=l("FlaxUNet2DConditionModel"),Sl=i(),O=n("div"),f(Us.$$.fragment),ng=i(),md=n("p"),sg=l(`FlaxUNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a
timestep and returns sample shaped output.`),rg=i(),As=n("p"),ag=l("This model inherits from "),Vr=n("a"),ig=l("FlaxModelMixin"),dg=l(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),lg=i(),Es=n("p"),cg=l("Also, this model is a Flax Linen "),Cs=n("a"),mg=l("flax.linen.Module"),pg=l(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),fg=i(),pd=n("p"),ug=l("Finally, this model supports inherent JAX features such as:"),hg=i(),ce=n("ul"),fd=n("li"),Fs=n("a"),_g=l("Just-In-Time (JIT) compilation"),gg=i(),ud=n("li"),Ps=n("a"),bg=l("Automatic Differentiation"),vg=i(),hd=n("li"),js=n("a"),yg=l("Vectorization"),xg=i(),_d=n("li"),Is=n("a"),wg=l("Parallelization"),Zl=i(),it=n("h2"),io=n("a"),gd=n("span"),f(Os.$$.fragment),$g=i(),bd=n("span"),Mg=l("FlaxDecoderOutput"),Rl=i(),me=n("div"),f(Ls.$$.fragment),Dg=i(),vd=n("p"),Tg=l("Output of decoding method."),kg=i(),lo=n("div"),f(Bs.$$.fragment),Ng=i(),yd=n("p"),Ug=l("\u201CReturns a new object replacing the specified fields with new values."),Kl=i(),dt=n("h2"),co=n("a"),xd=n("span"),f(Vs.$$.fragment),Ag=i(),wd=n("span"),Eg=l("FlaxAutoencoderKLOutput"),Yl=i(),pe=n("div"),f(qs.$$.fragment),Cg=i(),$d=n("p"),Fg=l("Output of AutoencoderKL encoding method."),Pg=i(),mo=n("div"),f(Js.$$.fragment),jg=i(),Md=n("p"),Ig=l("\u201CReturns a new object replacing the specified fields with new values."),Ql=i(),lt=n("h2"),po=n("a"),Dd=n("span"),f(zs.$$.fragment),Og=i(),Td=n("span"),Lg=l("FlaxAutoencoderKL"),Hl=i(),z=n("div"),f(Ws.$$.fragment),Bg=i(),kd=n("p"),Vg=l(`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=i(),Xs=n("p"),Jg=l("This model is a Flax Linen "),Gs=n("a"),zg=l("flax.linen.Module"),Wg=l(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Xg=i(),Nd=n("p"),Gg=l("Finally, this model supports inherent JAX features such as:"),Sg=i(),fe=n("ul"),Ud=n("li"),Ss=n("a"),Zg=l("Just-In-Time (JIT) compilation"),Rg=i(),Ad=n("li"),Zs=n("a"),Kg=l("Automatic Differentiation"),Yg=i(),Ed=n("li"),Rs=n("a"),Qg=l("Vectorization"),Hg=i(),Cd=n("li"),Ks=n("a"),eb=l("Parallelization"),ec=i(),ct=n("h2"),fo=n("a"),Fd=n("span"),f(Ys.$$.fragment),tb=i(),Pd=n("span"),ob=l("FlaxControlNetOutput"),tc=i(),mt=n("div"),f(Qs.$$.fragment),nb=i(),uo=n("div"),f(Hs.$$.fragment),sb=i(),jd=n("p"),rb=l("\u201CReturns a new object replacing the specified fields with new values."),oc=i(),pt=n("h2"),ho=n("a"),Id=n("span"),f(er.$$.fragment),ab=i(),Od=n("span"),ib=l("FlaxControlNetModel"),nc=i(),L=n("div"),f(tr.$$.fragment),db=i(),or=n("p"),lb=l("Quoting from "),nr=n("a"),cb=l("https://arxiv.org/abs/2302.05543"),mb=l(`: \u201CStable Diffusion uses a pre-processing method similar to VQ-GAN
[11] to convert the entire dataset of 512 \xD7 512 images into smaller 64 \xD7 64 \u201Clatent images\u201D for stabilized
training. This requires ControlNets to convert image-based conditions to 64 \xD7 64 feature space to match the
convolution size. We use a tiny network E(\xB7) of four convolution layers with 4 \xD7 4 kernels and 2 \xD7 2 strides
(activated by ReLU, channels are 16, 32, 64, 128, initialized with Gaussian weights, trained jointly with the full
model) to encode image-space conditions \u2026 into feature maps \u2026\u201D`),pb=i(),sr=n("p"),fb=l("This model inherits from "),qr=n("a"),ub=l("FlaxModelMixin"),hb=l(`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),_b=i(),rr=n("p"),gb=l("Also, this model is a Flax Linen "),ar=n("a"),bb=l("flax.linen.Module"),vb=l(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),yb=i(),Ld=n("p"),xb=l("Finally, this model supports inherent JAX features such as:"),wb=i(),ue=n("ul"),Bd=n("li"),ir=n("a"),$b=l("Just-In-Time (JIT) compilation"),Mb=i(),Vd=n("li"),dr=n("a"),Db=l("Automatic Differentiation"),Tb=i(),qd=n("li"),lr=n("a"),kb=l("Vectorization"),Nb=i(),Jd=n("li"),cr=n("a"),Ub=l("Parallelization"),this.h()},l(t){const m=e0('[data-svelte="svelte-1phssyn"]',document.head);x=s(m,"META",{name:!0,content:!0}),m.forEach(o),T=d(t),M=s(t,"H1",{class:!0});var mr=r(M);w=s(mr,"A",{id:!0,class:!0,href:!0});var zd=r(w);D=s(zd,"SPAN",{});var Wd=r(D);u(v.$$.fragment,Wd),Wd.forEach(o),zd.forEach(o),$=d(mr),ne=s(mr,"SPAN",{});var Xd=r(ne);Ae=c(Xd,"Models"),Xd.forEach(o),mr.forEach(o),R=d(t),K=s(t,"P",{});var ft=r(K);ur=c(ft,`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 `),Kd=t0(ft),Yd=c(ft,`.
The models are built on the base class [\u2018ModelMixin\u2019] that is a `),Qr=s(ft,"CODE",{});var Gd=r(Qr);Dm=c(Gd,"torch.nn.module"),Gd.forEach(o),Tm=c(ft," with basic functionality for saving and loading models both locally and from the HuggingFace hub."),ft.forEach(o),Qd=d(t),Ee=s(t,"H2",{class:!0});var pr=r(Ee);ut=s(pr,"A",{id:!0,class:!0,href:!0});var Fb=r(ut);Hr=s(Fb,"SPAN",{});var Pb=r(Hr);u(Mo.$$.fragment,Pb),Pb.forEach(o),Fb.forEach(o),km=d(pr),ea=s(pr,"SPAN",{});var jb=r(ea);Nm=c(jb,"ModelMixin"),jb.forEach(o),pr.forEach(o),Hd=d(t),N=s(t,"DIV",{class:!0});var A=r(N);u(Do.$$.fragment,A),Um=d(A),ta=s(A,"P",{});var Ib=r(ta);Am=c(Ib,"Base class for all models."),Ib.forEach(o),Em=d(A),hr=s(A,"P",{});var Ab=r(hr);_r=s(Ab,"A",{href:!0});var Ob=r(_r);Cm=c(Ob,"ModelMixin"),Ob.forEach(o),Fm=c(Ab,` takes care of storing the configuration of the models and handles methods for loading, downloading
and saving models.`),Ab.forEach(o),Pm=d(A),oa=s(A,"UL",{});var Lb=r(oa);he=s(Lb,"LI",{});var fr=r(he);na=s(fr,"STRONG",{});var Bb=r(na);jm=c(Bb,"config_name"),Bb.forEach(o),Im=c(fr," ("),sa=s(fr,"CODE",{});var Vb=r(sa);Om=c(Vb,"str"),Vb.forEach(o),Lm=c(fr,`) \u2014 A filename under which the model should be stored when calling
`),gr=s(fr,"A",{href:!0});var qb=r(gr);Bm=c(qb,"save_pretrained()"),qb.forEach(o),Vm=c(fr,"."),fr.forEach(o),Lb.forEach(o),qm=d(A),_e=s(A,"DIV",{class:!0});var Jr=r(_e);u(To.$$.fragment,Jr),Jm=d(Jr),ra=s(Jr,"P",{});var Jb=r(ra);zm=c(Jb,"Deactivates gradient checkpointing for the current model."),Jb.forEach(o),Wm=d(Jr),aa=s(Jr,"P",{});var zb=r(aa);Xm=c(zb,`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),zb.forEach(o),Jr.forEach(o),Gm=d(A),ht=s(A,"DIV",{class:!0});var rc=r(ht);u(ko.$$.fragment,rc),Sm=d(rc),ia=s(rc,"P",{});var Wb=r(ia);Zm=c(Wb,"Disable memory efficient attention as implemented in xformers."),Wb.forEach(o),rc.forEach(o),Rm=d(A),ge=s(A,"DIV",{class:!0});var zr=r(ge);u(No.$$.fragment,zr),Km=d(zr),da=s(zr,"P",{});var Xb=r(da);Ym=c(Xb,"Activates gradient checkpointing for the current model."),Xb.forEach(o),Qm=d(zr),la=s(zr,"P",{});var Gb=r(la);Hm=c(Gb,`Note that in other frameworks this feature can be referred to as \u201Cactivation checkpointing\u201D or \u201Ccheckpoint
activations\u201D.`),Gb.forEach(o),zr.forEach(o),ep=d(A),W=s(A,"DIV",{class:!0});var we=r(W);u(Uo.$$.fragment,we),tp=d(we),ca=s(we,"P",{});var Sb=r(ca);op=c(Sb,"Enable memory efficient attention as implemented in xformers."),Sb.forEach(o),np=d(we),ma=s(we,"P",{});var Zb=r(ma);sp=c(Zb,`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.`),Zb.forEach(o),rp=d(we),pa=s(we,"P",{});var Rb=r(pa);ap=c(Rb,`Warning: When Memory Efficient Attention and Sliced attention are both enabled, the Memory Efficient Attention
is used.`),Rb.forEach(o),ip=d(we),u(_t.$$.fragment,we),we.forEach(o),dp=d(A),j=s(A,"DIV",{class:!0});var G=r(j);u(Ao.$$.fragment,G),lp=d(G),fa=s(G,"P",{});var Kb=r(fa);cp=c(Kb,"Instantiate a pretrained pytorch model from a pre-trained model configuration."),Kb.forEach(o),mp=d(G),Ce=s(G,"P",{});var Wr=r(Ce);pp=c(Wr,"The model is set in evaluation mode by default using "),ua=s(Wr,"CODE",{});var Yb=r(ua);fp=c(Yb,"model.eval()"),Yb.forEach(o),up=c(Wr,` (Dropout modules are deactivated). To train
the model, you should first set it back in training mode with `),ha=s(Wr,"CODE",{});var Qb=r(ha);hp=c(Qb,"model.train()"),Qb.forEach(o),_p=c(Wr,"."),Wr.forEach(o),gp=d(G),Eo=s(G,"P",{});var ac=r(Eo);bp=c(ac,"The warning "),_a=s(ac,"EM",{});var Hb=r(_a);vp=c(Hb,"Weights from XXX not initialized from pretrained model"),Hb.forEach(o),yp=c(ac,` 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.`),ac.forEach(o),xp=d(G),Co=s(G,"P",{});var ic=r(Co);wp=c(ic,"The warning "),ga=s(ic,"EM",{});var ev=r(ga);$p=c(ev,"Weights from XXX not used in YYY"),ev.forEach(o),Mp=c(ic,` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),ic.forEach(o),Dp=d(G),u(gt.$$.fragment,G),Tp=d(G),u(bt.$$.fragment,G),G.forEach(o),kp=d(A),vt=s(A,"DIV",{class:!0});var dc=r(vt);u(Fo.$$.fragment,dc),Np=d(dc),ba=s(dc,"P",{});var tv=r(ba);Up=c(tv,"Get number of (optionally, trainable or non-embeddings) parameters in the module."),tv.forEach(o),dc.forEach(o),Ap=d(A),yt=s(A,"DIV",{class:!0});var lc=r(yt);u(Po.$$.fragment,lc),Ep=d(lc),jo=s(lc,"P",{});var cc=r(jo);Cp=c(cc,`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),va=s(cc,"CODE",{});var ov=r(va);Fp=c(ov,"[from_pretrained()](/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin.from_pretrained)"),ov.forEach(o),Pp=c(cc," class method."),cc.forEach(o),lc.forEach(o),A.forEach(o),el=d(t),Fe=s(t,"H2",{class:!0});var mc=r(Fe);xt=s(mc,"A",{id:!0,class:!0,href:!0});var nv=r(xt);ya=s(nv,"SPAN",{});var sv=r(ya);u(Io.$$.fragment,sv),sv.forEach(o),nv.forEach(o),jp=d(mc),xa=s(mc,"SPAN",{});var rv=r(xa);Ip=c(rv,"UNet2DOutput"),rv.forEach(o),mc.forEach(o),tl=d(t),Oo=s(t,"DIV",{class:!0});var av=r(Oo);u(Lo.$$.fragment,av),av.forEach(o),ol=d(t),Pe=s(t,"H2",{class:!0});var pc=r(Pe);wt=s(pc,"A",{id:!0,class:!0,href:!0});var iv=r(wt);wa=s(iv,"SPAN",{});var dv=r(wa);u(Bo.$$.fragment,dv),dv.forEach(o),iv.forEach(o),Op=d(pc),$a=s(pc,"SPAN",{});var lv=r($a);Lp=c(lv,"UNet2DModel"),lv.forEach(o),pc.forEach(o),nl=d(t),Y=s(t,"DIV",{class:!0});var _o=r(Y);u(Vo.$$.fragment,_o),Bp=d(_o),Ma=s(_o,"P",{});var cv=r(Ma);Vp=c(cv,"UNet2DModel is a 2D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),cv.forEach(o),qp=d(_o),qo=s(_o,"P",{});var fc=r(qo);Jp=c(fc,"This model inherits from "),br=s(fc,"A",{href:!0});var mv=r(br);zp=c(mv,"ModelMixin"),mv.forEach(o),Wp=c(fc,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),fc.forEach(o),Xp=d(_o),vr=s(_o,"DIV",{class:!0});var pv=r(vr);u(Jo.$$.fragment,pv),pv.forEach(o),_o.forEach(o),sl=d(t),je=s(t,"H2",{class:!0});var uc=r(je);$t=s(uc,"A",{id:!0,class:!0,href:!0});var fv=r($t);Da=s(fv,"SPAN",{});var uv=r(Da);u(zo.$$.fragment,uv),uv.forEach(o),fv.forEach(o),Gp=d(uc),Ta=s(uc,"SPAN",{});var hv=r(Ta);Sp=c(hv,"UNet1DOutput"),hv.forEach(o),uc.forEach(o),rl=d(t),Wo=s(t,"DIV",{class:!0});var _v=r(Wo);u(Xo.$$.fragment,_v),_v.forEach(o),al=d(t),Ie=s(t,"H2",{class:!0});var hc=r(Ie);Mt=s(hc,"A",{id:!0,class:!0,href:!0});var gv=r(Mt);ka=s(gv,"SPAN",{});var bv=r(ka);u(Go.$$.fragment,bv),bv.forEach(o),gv.forEach(o),Zp=d(hc),Na=s(hc,"SPAN",{});var vv=r(Na);Rp=c(vv,"UNet1DModel"),vv.forEach(o),hc.forEach(o),il=d(t),Q=s(t,"DIV",{class:!0});var go=r(Q);u(So.$$.fragment,go),Kp=d(go),Ua=s(go,"P",{});var yv=r(Ua);Yp=c(yv,"UNet1DModel is a 1D UNet model that takes in a noisy sample and a timestep and returns sample shaped output."),yv.forEach(o),Qp=d(go),Zo=s(go,"P",{});var _c=r(Zo);Hp=c(_c,"This model inherits from "),yr=s(_c,"A",{href:!0});var xv=r(yr);ef=c(xv,"ModelMixin"),xv.forEach(o),tf=c(_c,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),_c.forEach(o),of=d(go),xr=s(go,"DIV",{class:!0});var wv=r(xr);u(Ro.$$.fragment,wv),wv.forEach(o),go.forEach(o),dl=d(t),Oe=s(t,"H2",{class:!0});var gc=r(Oe);Dt=s(gc,"A",{id:!0,class:!0,href:!0});var $v=r(Dt);Aa=s($v,"SPAN",{});var Mv=r(Aa);u(Ko.$$.fragment,Mv),Mv.forEach(o),$v.forEach(o),nf=d(gc),Ea=s(gc,"SPAN",{});var Dv=r(Ea);sf=c(Dv,"UNet2DConditionOutput"),Dv.forEach(o),gc.forEach(o),ll=d(t),Yo=s(t,"DIV",{class:!0});var Tv=r(Yo);u(Qo.$$.fragment,Tv),Tv.forEach(o),cl=d(t),Le=s(t,"H2",{class:!0});var bc=r(Le);Tt=s(bc,"A",{id:!0,class:!0,href:!0});var kv=r(Tt);Ca=s(kv,"SPAN",{});var Nv=r(Ca);u(Ho.$$.fragment,Nv),Nv.forEach(o),kv.forEach(o),rf=d(bc),Fa=s(bc,"SPAN",{});var Uv=r(Fa);af=c(Uv,"UNet2DConditionModel"),Uv.forEach(o),bc.forEach(o),ml=d(t),F=s(t,"DIV",{class:!0});var S=r(F);u(en.$$.fragment,S),df=d(S),Pa=s(S,"P",{});var Av=r(Pa);lf=c(Av,`UNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a timestep
and returns sample shaped output.`),Av.forEach(o),cf=d(S),tn=s(S,"P",{});var vc=r(tn);mf=c(vc,"This model inherits from "),wr=s(vc,"A",{href:!0});var Ev=r(wr);pf=c(Ev,"ModelMixin"),Ev.forEach(o),ff=c(vc,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),vc.forEach(o),uf=d(S),$r=s(S,"DIV",{class:!0});var Cv=r($r);u(on.$$.fragment,Cv),Cv.forEach(o),hf=d(S),be=s(S,"DIV",{class:!0});var Xr=r(be);u(nn.$$.fragment,Xr),_f=d(Xr),ja=s(Xr,"P",{});var Fv=r(ja);gf=c(Fv,"Enable sliced attention computation."),Fv.forEach(o),bf=d(Xr),Ia=s(Xr,"P",{});var Pv=r(Ia);vf=c(Pv,`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.`),Pv.forEach(o),Xr.forEach(o),yf=d(S),Mr=s(S,"DIV",{class:!0});var jv=r(Mr);u(sn.$$.fragment,jv),jv.forEach(o),xf=d(S),kt=s(S,"DIV",{class:!0});var yc=r(kt);u(rn.$$.fragment,yc),wf=d(yc),Oa=s(yc,"P",{});var Iv=r(Oa);$f=c(Iv,"Disables custom attention processors and sets the default attention implementation."),Iv.forEach(o),yc.forEach(o),S.forEach(o),pl=d(t),Be=s(t,"H2",{class:!0});var xc=r(Be);Nt=s(xc,"A",{id:!0,class:!0,href:!0});var Ov=r(Nt);La=s(Ov,"SPAN",{});var Lv=r(La);u(an.$$.fragment,Lv),Lv.forEach(o),Ov.forEach(o),Mf=d(xc),Ba=s(xc,"SPAN",{});var Bv=r(Ba);Df=c(Bv,"UNet3DConditionOutput"),Bv.forEach(o),xc.forEach(o),fl=d(t),dn=s(t,"DIV",{class:!0});var Vv=r(dn);u(ln.$$.fragment,Vv),Vv.forEach(o),ul=d(t),Ve=s(t,"H2",{class:!0});var wc=r(Ve);Ut=s(wc,"A",{id:!0,class:!0,href:!0});var qv=r(Ut);Va=s(qv,"SPAN",{});var Jv=r(Va);u(cn.$$.fragment,Jv),Jv.forEach(o),qv.forEach(o),Tf=d(wc),qa=s(wc,"SPAN",{});var zv=r(qa);kf=c(zv,"UNet3DConditionModel"),zv.forEach(o),wc.forEach(o),hl=d(t),P=s(t,"DIV",{class:!0});var Z=r(P);u(mn.$$.fragment,Z),Nf=d(Z),Ja=s(Z,"P",{});var Wv=r(Ja);Uf=c(Wv,`UNet3DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a timestep
and returns sample shaped output.`),Wv.forEach(o),Af=d(Z),pn=s(Z,"P",{});var $c=r(pn);Ef=c($c,"This model inherits from "),Dr=s($c,"A",{href:!0});var Xv=r(Dr);Cf=c(Xv,"ModelMixin"),Xv.forEach(o),Ff=c($c,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),$c.forEach(o),Pf=d(Z),Tr=s(Z,"DIV",{class:!0});var Gv=r(Tr);u(fn.$$.fragment,Gv),Gv.forEach(o),jf=d(Z),ve=s(Z,"DIV",{class:!0});var Gr=r(ve);u(un.$$.fragment,Gr),If=d(Gr),za=s(Gr,"P",{});var Sv=r(za);Of=c(Sv,"Enable sliced attention computation."),Sv.forEach(o),Lf=d(Gr),Wa=s(Gr,"P",{});var Zv=r(Wa);Bf=c(Zv,`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.`),Zv.forEach(o),Gr.forEach(o),Vf=d(Z),kr=s(Z,"DIV",{class:!0});var Rv=r(kr);u(hn.$$.fragment,Rv),Rv.forEach(o),qf=d(Z),At=s(Z,"DIV",{class:!0});var Mc=r(At);u(_n.$$.fragment,Mc),Jf=d(Mc),Xa=s(Mc,"P",{});var Kv=r(Xa);zf=c(Kv,"Disables custom attention processors and sets the default attention implementation."),Kv.forEach(o),Mc.forEach(o),Z.forEach(o),_l=d(t),qe=s(t,"H2",{class:!0});var Dc=r(qe);Et=s(Dc,"A",{id:!0,class:!0,href:!0});var Yv=r(Et);Ga=s(Yv,"SPAN",{});var Qv=r(Ga);u(gn.$$.fragment,Qv),Qv.forEach(o),Yv.forEach(o),Wf=d(Dc),Sa=s(Dc,"SPAN",{});var Hv=r(Sa);Xf=c(Hv,"DecoderOutput"),Hv.forEach(o),Dc.forEach(o),gl=d(t),Je=s(t,"DIV",{class:!0});var Tc=r(Je);u(bn.$$.fragment,Tc),Gf=d(Tc),Za=s(Tc,"P",{});var e2=r(Za);Sf=c(e2,"Output of decoding method."),e2.forEach(o),Tc.forEach(o),bl=d(t),ze=s(t,"H2",{class:!0});var kc=r(ze);Ct=s(kc,"A",{id:!0,class:!0,href:!0});var t2=r(Ct);Ra=s(t2,"SPAN",{});var o2=r(Ra);u(vn.$$.fragment,o2),o2.forEach(o),t2.forEach(o),Zf=d(kc),Ka=s(kc,"SPAN",{});var n2=r(Ka);Rf=c(n2,"VQEncoderOutput"),n2.forEach(o),kc.forEach(o),vl=d(t),We=s(t,"DIV",{class:!0});var Nc=r(We);u(yn.$$.fragment,Nc),Kf=d(Nc),Ya=s(Nc,"P",{});var s2=r(Ya);Yf=c(s2,"Output of VQModel encoding method."),s2.forEach(o),Nc.forEach(o),yl=d(t),Xe=s(t,"H2",{class:!0});var Uc=r(Xe);Ft=s(Uc,"A",{id:!0,class:!0,href:!0});var r2=r(Ft);Qa=s(r2,"SPAN",{});var a2=r(Qa);u(xn.$$.fragment,a2),a2.forEach(o),r2.forEach(o),Qf=d(Uc),Ha=s(Uc,"SPAN",{});var i2=r(Ha);Hf=c(i2,"VQModel"),i2.forEach(o),Uc.forEach(o),xl=d(t),H=s(t,"DIV",{class:!0});var bo=r(H);u(wn.$$.fragment,bo),eu=d(bo),ei=s(bo,"P",{});var d2=r(ei);tu=c(d2,`VQ-VAE model from the paper Neural Discrete Representation Learning by Aaron van den Oord, Oriol Vinyals and Koray
Kavukcuoglu.`),d2.forEach(o),ou=d(bo),$n=s(bo,"P",{});var Ac=r($n);nu=c(Ac,"This model inherits from "),Nr=s(Ac,"A",{href:!0});var l2=r(Nr);su=c(l2,"ModelMixin"),l2.forEach(o),ru=c(Ac,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Ac.forEach(o),au=d(bo),Ur=s(bo,"DIV",{class:!0});var c2=r(Ur);u(Mn.$$.fragment,c2),c2.forEach(o),bo.forEach(o),wl=d(t),Ge=s(t,"H2",{class:!0});var Ec=r(Ge);Pt=s(Ec,"A",{id:!0,class:!0,href:!0});var m2=r(Pt);ti=s(m2,"SPAN",{});var p2=r(ti);u(Dn.$$.fragment,p2),p2.forEach(o),m2.forEach(o),iu=d(Ec),oi=s(Ec,"SPAN",{});var f2=r(oi);du=c(f2,"AutoencoderKLOutput"),f2.forEach(o),Ec.forEach(o),$l=d(t),Se=s(t,"DIV",{class:!0});var Cc=r(Se);u(Tn.$$.fragment,Cc),lu=d(Cc),ni=s(Cc,"P",{});var u2=r(ni);cu=c(u2,"Output of AutoencoderKL encoding method."),u2.forEach(o),Cc.forEach(o),Ml=d(t),Ze=s(t,"H2",{class:!0});var Fc=r(Ze);jt=s(Fc,"A",{id:!0,class:!0,href:!0});var h2=r(jt);si=s(h2,"SPAN",{});var _2=r(si);u(kn.$$.fragment,_2),_2.forEach(o),h2.forEach(o),mu=d(Fc),ri=s(Fc,"SPAN",{});var g2=r(ri);pu=c(g2,"AutoencoderKL"),g2.forEach(o),Fc.forEach(o),Dl=d(t),U=s(t,"DIV",{class:!0});var C=r(U);u(Nn.$$.fragment,C),fu=d(C),ai=s(C,"P",{});var b2=r(ai);uu=c(b2,`Variational Autoencoder (VAE) model with KL loss from the paper Auto-Encoding Variational Bayes by Diederik P. Kingma
and Max Welling.`),b2.forEach(o),hu=d(C),Un=s(C,"P",{});var Pc=r(Un);_u=c(Pc,"This model inherits from "),Ar=s(Pc,"A",{href:!0});var v2=r(Ar);gu=c(v2,"ModelMixin"),v2.forEach(o),bu=c(Pc,`. Check the superclass documentation for the generic methods the library
implements for all the model (such as downloading or saving, etc.)`),Pc.forEach(o),vu=d(C),It=s(C,"DIV",{class:!0});var jc=r(It);u(An.$$.fragment,jc),yu=d(jc),En=s(jc,"P",{});var Ic=r(En);xu=c(Ic,"Disable sliced VAE decoding. If "),ii=s(Ic,"CODE",{});var y2=r(ii);wu=c(y2,"enable_slicing"),y2.forEach(o),$u=c(Ic,` was previously invoked, this method will go back to computing
decoding in one step.`),Ic.forEach(o),jc.forEach(o),Mu=d(C),Ot=s(C,"DIV",{class:!0});var Oc=r(Ot);u(Cn.$$.fragment,Oc),Du=d(Oc),Fn=s(Oc,"P",{});var Lc=r(Fn);Tu=c(Lc,"Disable tiled VAE decoding. If "),di=s(Lc,"CODE",{});var x2=r(di);ku=c(x2,"enable_vae_tiling"),x2.forEach(o),Nu=c(Lc,` was previously invoked, this method will go back to
computing decoding in one step.`),Lc.forEach(o),Oc.forEach(o),Uu=d(C),Lt=s(C,"DIV",{class:!0});var Bc=r(Lt);u(Pn.$$.fragment,Bc),Au=d(Bc),li=s(Bc,"P",{});var w2=r(li);Eu=c(w2,`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`),w2.forEach(o),Bc.forEach(o),Cu=d(C),Bt=s(C,"DIV",{class:!0});var Vc=r(Bt);u(jn.$$.fragment,Vc),Fu=d(Vc),ci=s(Vc,"P",{});var $2=r(ci);Pu=c($2,`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful to save a large amount of memory and to allow
the processing of larger images.`),$2.forEach(o),Vc.forEach(o),ju=d(C),Er=s(C,"DIV",{class:!0});var M2=r(Er);u(In.$$.fragment,M2),M2.forEach(o),Iu=d(C),Vt=s(C,"DIV",{class:!0});var qc=r(Vt);u(On.$$.fragment,qc),Ou=d(qc),mi=s(qc,"P",{});var D2=r(mi);Lu=c(D2,"Decode a batch of images using a tiled decoder."),D2.forEach(o),qc.forEach(o),Bu=d(C),qt=s(C,"DIV",{class:!0});var Jc=r(qt);u(Ln.$$.fragment,Jc),Vu=d(Jc),pi=s(Jc,"P",{});var T2=r(pi);qu=c(T2,"Encode a batch of images using a tiled encoder."),T2.forEach(o),Jc.forEach(o),C.forEach(o),Tl=d(t),Re=s(t,"H2",{class:!0});var zc=r(Re);Jt=s(zc,"A",{id:!0,class:!0,href:!0});var k2=r(Jt);fi=s(k2,"SPAN",{});var N2=r(fi);u(Bn.$$.fragment,N2),N2.forEach(o),k2.forEach(o),Ju=d(zc),ui=s(zc,"SPAN",{});var U2=r(ui);zu=c(U2,"Transformer2DModel"),U2.forEach(o),zc.forEach(o),kl=d(t),I=s(t,"DIV",{class:!0});var ae=r(I);u(Vn.$$.fragment,ae),Wu=d(ae),hi=s(ae,"P",{});var A2=r(hi);Xu=c(A2,`Transformer model for image-like data. Takes either discrete (classes of vector embeddings) or continuous (actual
embeddings) inputs.`),A2.forEach(o),Gu=d(ae),_i=s(ae,"P",{});var E2=r(_i);Su=c(E2,`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.`),E2.forEach(o),Zu=d(ae),qn=s(ae,"P",{});var Wc=r(qn);Ru=c(Wc,`When input is discrete: First, input (classes of latent pixels) is converted to embeddings and has positional
embeddings applied, see `),gi=s(Wc,"CODE",{});var C2=r(gi);Ku=c(C2,"ImagePositionalEmbeddings"),C2.forEach(o),Yu=c(Wc,`. Then apply standard transformer action. Finally, predict
classes of unnoised image.`),Wc.forEach(o),Qu=d(ae),bi=s(ae,"P",{});var F2=r(bi);Hu=c(F2,`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.`),F2.forEach(o),eh=d(ae),Cr=s(ae,"DIV",{class:!0});var P2=r(Cr);u(Jn.$$.fragment,P2),P2.forEach(o),ae.forEach(o),Nl=d(t),Ke=s(t,"H2",{class:!0});var Xc=r(Ke);zt=s(Xc,"A",{id:!0,class:!0,href:!0});var j2=r(zt);vi=s(j2,"SPAN",{});var I2=r(vi);u(zn.$$.fragment,I2),I2.forEach(o),j2.forEach(o),th=d(Xc),yi=s(Xc,"SPAN",{});var O2=r(yi);oh=c(O2,"Transformer2DModelOutput"),O2.forEach(o),Xc.forEach(o),Ul=d(t),Wn=s(t,"DIV",{class:!0});var L2=r(Wn);u(Xn.$$.fragment,L2),L2.forEach(o),Al=d(t),Ye=s(t,"H2",{class:!0});var Gc=r(Ye);Wt=s(Gc,"A",{id:!0,class:!0,href:!0});var B2=r(Wt);xi=s(B2,"SPAN",{});var V2=r(xi);u(Gn.$$.fragment,V2),V2.forEach(o),B2.forEach(o),nh=d(Gc),wi=s(Gc,"SPAN",{});var q2=r(wi);sh=c(q2,"TransformerTemporalModel"),q2.forEach(o),Gc.forEach(o),El=d(t),le=s(t,"DIV",{class:!0});var Sr=r(le);u(Sn.$$.fragment,Sr),rh=d(Sr),$i=s(Sr,"P",{});var J2=r($i);ah=c(J2,"Transformer model for video-like data."),J2.forEach(o),ih=d(Sr),Fr=s(Sr,"DIV",{class:!0});var z2=r(Fr);u(Zn.$$.fragment,z2),z2.forEach(o),Sr.forEach(o),Cl=d(t),Qe=s(t,"H2",{class:!0});var Sc=r(Qe);Xt=s(Sc,"A",{id:!0,class:!0,href:!0});var W2=r(Xt);Mi=s(W2,"SPAN",{});var X2=r(Mi);u(Rn.$$.fragment,X2),X2.forEach(o),W2.forEach(o),dh=d(Sc),Di=s(Sc,"SPAN",{});var G2=r(Di);lh=c(G2,"Transformer2DModelOutput"),G2.forEach(o),Sc.forEach(o),Fl=d(t),Kn=s(t,"DIV",{class:!0});var S2=r(Kn);u(Yn.$$.fragment,S2),S2.forEach(o),Pl=d(t),He=s(t,"H2",{class:!0});var Zc=r(He);Gt=s(Zc,"A",{id:!0,class:!0,href:!0});var Z2=r(Gt);Ti=s(Z2,"SPAN",{});var R2=r(Ti);u(Qn.$$.fragment,R2),R2.forEach(o),Z2.forEach(o),ch=d(Zc),ki=s(Zc,"SPAN",{});var K2=r(ki);mh=c(K2,"PriorTransformer"),K2.forEach(o),Zc.forEach(o),jl=d(t),q=s(t,"DIV",{class:!0});var $e=r(q);u(Hn.$$.fragment,$e),ph=d($e),Ni=s($e,"P",{});var Y2=r(Ni);fh=c(Y2,`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.`),Y2.forEach(o),uh=d($e),es=s($e,"P",{});var Rc=r(es);hh=c(Rc,"This model inherits from "),Pr=s(Rc,"A",{href:!0});var Q2=r(Pr);_h=c(Q2,"ModelMixin"),Q2.forEach(o),gh=c(Rc,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),Rc.forEach(o),bh=d($e),jr=s($e,"P",{});var Eb=r(jr);vh=c(Eb,"For more details, see the original paper: "),ts=s(Eb,"A",{href:!0,rel:!0});var H2=r(ts);yh=c(H2,"https://arxiv.org/abs/2204.06125"),H2.forEach(o),Eb.forEach(o),xh=d($e),Ir=s($e,"DIV",{class:!0});var e1=r(Ir);u(os.$$.fragment,e1),e1.forEach(o),$e.forEach(o),Il=d(t),et=s(t,"H2",{class:!0});var Kc=r(et);St=s(Kc,"A",{id:!0,class:!0,href:!0});var t1=r(St);Ui=s(t1,"SPAN",{});var o1=r(Ui);u(ns.$$.fragment,o1),o1.forEach(o),t1.forEach(o),wh=d(Kc),Ai=s(Kc,"SPAN",{});var n1=r(Ai);$h=c(n1,"PriorTransformerOutput"),n1.forEach(o),Kc.forEach(o),Ol=d(t),ss=s(t,"DIV",{class:!0});var s1=r(ss);u(rs.$$.fragment,s1),s1.forEach(o),Ll=d(t),tt=s(t,"H2",{class:!0});var Yc=r(tt);Zt=s(Yc,"A",{id:!0,class:!0,href:!0});var r1=r(Zt);Ei=s(r1,"SPAN",{});var a1=r(Ei);u(as.$$.fragment,a1),a1.forEach(o),r1.forEach(o),Mh=d(Yc),Ci=s(Yc,"SPAN",{});var i1=r(Ci);Dh=c(i1,"ControlNetOutput"),i1.forEach(o),Yc.forEach(o),Bl=d(t),is=s(t,"DIV",{class:!0});var d1=r(is);u(ds.$$.fragment,d1),d1.forEach(o),Vl=d(t),ot=s(t,"H2",{class:!0});var Qc=r(ot);Rt=s(Qc,"A",{id:!0,class:!0,href:!0});var l1=r(Rt);Fi=s(l1,"SPAN",{});var c1=r(Fi);u(ls.$$.fragment,c1),c1.forEach(o),l1.forEach(o),Th=d(Qc),Pi=s(Qc,"SPAN",{});var m1=r(Pi);kh=c(m1,"ControlNetModel"),m1.forEach(o),Qc.forEach(o),ql=d(t),J=s(t,"DIV",{class:!0});var Me=r(J);u(cs.$$.fragment,Me),Nh=d(Me),Kt=s(Me,"DIV",{class:!0});var Hc=r(Kt);u(ms.$$.fragment,Hc),Uh=d(Hc),ji=s(Hc,"P",{});var p1=r(ji);Ah=c(p1,"Instantiate Controlnet class from UNet2DConditionModel."),p1.forEach(o),Hc.forEach(o),Eh=d(Me),ye=s(Me,"DIV",{class:!0});var Zr=r(ye);u(ps.$$.fragment,Zr),Ch=d(Zr),Ii=s(Zr,"P",{});var f1=r(Ii);Fh=c(f1,"Enable sliced attention computation."),f1.forEach(o),Ph=d(Zr),Oi=s(Zr,"P",{});var u1=r(Oi);jh=c(u1,`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.`),u1.forEach(o),Zr.forEach(o),Ih=d(Me),Or=s(Me,"DIV",{class:!0});var h1=r(Or);u(fs.$$.fragment,h1),h1.forEach(o),Oh=d(Me),Yt=s(Me,"DIV",{class:!0});var em=r(Yt);u(us.$$.fragment,em),Lh=d(em),Li=s(em,"P",{});var _1=r(Li);Bh=c(_1,"Disables custom attention processors and sets the default attention implementation."),_1.forEach(o),em.forEach(o),Me.forEach(o),Jl=d(t),nt=s(t,"H2",{class:!0});var tm=r(nt);Qt=s(tm,"A",{id:!0,class:!0,href:!0});var g1=r(Qt);Bi=s(g1,"SPAN",{});var b1=r(Bi);u(hs.$$.fragment,b1),b1.forEach(o),g1.forEach(o),Vh=d(tm),Vi=s(tm,"SPAN",{});var v1=r(Vi);qh=c(v1,"FlaxModelMixin"),v1.forEach(o),tm.forEach(o),zl=d(t),E=s(t,"DIV",{class:!0});var V=r(E);u(_s.$$.fragment,V),Jh=d(V),qi=s(V,"P",{});var y1=r(qi);zh=c(y1,"Base class for all flax models."),y1.forEach(o),Wh=d(V),Lr=s(V,"P",{});var Cb=r(Lr);Br=s(Cb,"A",{href:!0});var x1=r(Br);Xh=c(x1,"FlaxModelMixin"),x1.forEach(o),Gh=c(Cb,` takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models.`),Cb.forEach(o),Sh=d(V),X=s(V,"DIV",{class:!0});var De=r(X);u(gs.$$.fragment,De),Zh=d(De),Ji=s(De,"P",{});var w1=r(Ji);Rh=c(w1,"Instantiate a pretrained flax model from a pre-trained model configuration."),w1.forEach(o),Kh=d(De),bs=s(De,"P",{});var om=r(bs);Yh=c(om,"The warning "),zi=s(om,"EM",{});var $1=r(zi);Qh=c($1,"Weights from XXX not initialized from pretrained model"),$1.forEach(o),Hh=c(om,` 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.`),om.forEach(o),e_=d(De),vs=s(De,"P",{});var nm=r(vs);t_=c(nm,"The warning "),Wi=s(nm,"EM",{});var M1=r(Wi);o_=c(M1,"Weights from XXX not used in YYY"),M1.forEach(o),n_=c(nm,` means that the layer XXX is not used by YYY, therefore those
weights are discarded.`),nm.forEach(o),s_=d(De),u(Ht.$$.fragment,De),De.forEach(o),r_=d(V),eo=s(V,"DIV",{class:!0});var sm=r(eo);u(ys.$$.fragment,sm),a_=d(sm),xs=s(sm,"P",{});var rm=r(xs);i_=c(rm,`Save a model and its configuration file to a directory, so that it can be re-loaded using the
`),Xi=s(rm,"CODE",{});var D1=r(Xi);d_=c(D1,"[from_pretrained()](/docs/diffusers/v0.17.1/en/api/models#diffusers.FlaxModelMixin.from_pretrained)"),D1.forEach(o),l_=c(rm," class method"),rm.forEach(o),sm.forEach(o),c_=d(V),se=s(V,"DIV",{class:!0});var vo=r(se);u(ws.$$.fragment,vo),m_=d(vo),ee=s(vo,"P",{});var Te=r(ee);p_=c(Te,"Cast the floating-point "),Gi=s(Te,"CODE",{});var T1=r(Gi);f_=c(T1,"params"),T1.forEach(o),u_=c(Te," to "),Si=s(Te,"CODE",{});var k1=r(Si);h_=c(k1,"jax.numpy.bfloat16"),k1.forEach(o),__=c(Te,". This returns a new "),Zi=s(Te,"CODE",{});var N1=r(Zi);g_=c(N1,"params"),N1.forEach(o),b_=c(Te,` tree and does not cast
the `),Ri=s(Te,"CODE",{});var U1=r(Ri);v_=c(U1,"params"),U1.forEach(o),y_=c(Te," in place."),Te.forEach(o),x_=d(vo),Ki=s(vo,"P",{});var A1=r(Ki);w_=c(A1,`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.`),A1.forEach(o),$_=d(vo),u(to.$$.fragment,vo),vo.forEach(o),M_=d(V),re=s(V,"DIV",{class:!0});var yo=r(re);u($s.$$.fragment,yo),D_=d(yo),te=s(yo,"P",{});var ke=r(te);T_=c(ke,"Cast the floating-point "),Yi=s(ke,"CODE",{});var E1=r(Yi);k_=c(E1,"params"),E1.forEach(o),N_=c(ke," to "),Qi=s(ke,"CODE",{});var C1=r(Qi);U_=c(C1,"jax.numpy.float16"),C1.forEach(o),A_=c(ke,". This returns a new "),Hi=s(ke,"CODE",{});var F1=r(Hi);E_=c(F1,"params"),F1.forEach(o),C_=c(ke,` tree and does not cast the
`),ed=s(ke,"CODE",{});var P1=r(ed);F_=c(P1,"params"),P1.forEach(o),P_=c(ke," in place."),ke.forEach(o),j_=d(yo),td=s(yo,"P",{});var j1=r(td);I_=c(j1,`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.`),j1.forEach(o),O_=d(yo),u(oo.$$.fragment,yo),yo.forEach(o),L_=d(V),xe=s(V,"DIV",{class:!0});var Rr=r(xe);u(Ms.$$.fragment,Rr),B_=d(Rr),oe=s(Rr,"P",{});var Ne=r(oe);V_=c(Ne,"Cast the floating-point "),od=s(Ne,"CODE",{});var I1=r(od);q_=c(I1,"params"),I1.forEach(o),J_=c(Ne," to "),nd=s(Ne,"CODE",{});var O1=r(nd);z_=c(O1,"jax.numpy.float32"),O1.forEach(o),W_=c(Ne,`. This method can be used to explicitly convert the
model parameters to fp32 precision. This returns a new `),sd=s(Ne,"CODE",{});var L1=r(sd);X_=c(L1,"params"),L1.forEach(o),G_=c(Ne," tree and does not cast the "),rd=s(Ne,"CODE",{});var B1=r(rd);S_=c(B1,"params"),B1.forEach(o),Z_=c(Ne," in place."),Ne.forEach(o),R_=d(Rr),u(no.$$.fragment,Rr),Rr.forEach(o),V.forEach(o),Wl=d(t),st=s(t,"H2",{class:!0});var am=r(st);so=s(am,"A",{id:!0,class:!0,href:!0});var V1=r(so);ad=s(V1,"SPAN",{});var q1=r(ad);u(Ds.$$.fragment,q1),q1.forEach(o),V1.forEach(o),K_=d(am),id=s(am,"SPAN",{});var J1=r(id);Y_=c(J1,"FlaxUNet2DConditionOutput"),J1.forEach(o),am.forEach(o),Xl=d(t),rt=s(t,"DIV",{class:!0});var im=r(rt);u(Ts.$$.fragment,im),Q_=d(im),ro=s(im,"DIV",{class:!0});var dm=r(ro);u(ks.$$.fragment,dm),H_=d(dm),dd=s(dm,"P",{});var z1=r(dd);eg=c(z1,"\u201CReturns a new object replacing the specified fields with new values."),z1.forEach(o),dm.forEach(o),im.forEach(o),Gl=d(t),at=s(t,"H2",{class:!0});var lm=r(at);ao=s(lm,"A",{id:!0,class:!0,href:!0});var W1=r(ao);ld=s(W1,"SPAN",{});var X1=r(ld);u(Ns.$$.fragment,X1),X1.forEach(o),W1.forEach(o),tg=d(lm),cd=s(lm,"SPAN",{});var G1=r(cd);og=c(G1,"FlaxUNet2DConditionModel"),G1.forEach(o),lm.forEach(o),Sl=d(t),O=s(t,"DIV",{class:!0});var ie=r(O);u(Us.$$.fragment,ie),ng=d(ie),md=s(ie,"P",{});var S1=r(md);sg=c(S1,`FlaxUNet2DConditionModel is a conditional 2D UNet model that takes in a noisy sample, conditional state, and a
timestep and returns sample shaped output.`),S1.forEach(o),rg=d(ie),As=s(ie,"P",{});var cm=r(As);ag=c(cm,"This model inherits from "),Vr=s(cm,"A",{href:!0});var Z1=r(Vr);ig=c(Z1,"FlaxModelMixin"),Z1.forEach(o),dg=c(cm,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),cm.forEach(o),lg=d(ie),Es=s(ie,"P",{});var mm=r(Es);cg=c(mm,"Also, this model is a Flax Linen "),Cs=s(mm,"A",{href:!0,rel:!0});var R1=r(Cs);mg=c(R1,"flax.linen.Module"),R1.forEach(o),pg=c(mm,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),mm.forEach(o),fg=d(ie),pd=s(ie,"P",{});var K1=r(pd);ug=c(K1,"Finally, this model supports inherent JAX features such as:"),K1.forEach(o),hg=d(ie),ce=s(ie,"UL",{});var xo=r(ce);fd=s(xo,"LI",{});var Y1=r(fd);Fs=s(Y1,"A",{href:!0,rel:!0});var Q1=r(Fs);_g=c(Q1,"Just-In-Time (JIT) compilation"),Q1.forEach(o),Y1.forEach(o),gg=d(xo),ud=s(xo,"LI",{});var H1=r(ud);Ps=s(H1,"A",{href:!0,rel:!0});var ey=r(Ps);bg=c(ey,"Automatic Differentiation"),ey.forEach(o),H1.forEach(o),vg=d(xo),hd=s(xo,"LI",{});var ty=r(hd);js=s(ty,"A",{href:!0,rel:!0});var oy=r(js);yg=c(oy,"Vectorization"),oy.forEach(o),ty.forEach(o),xg=d(xo),_d=s(xo,"LI",{});var ny=r(_d);Is=s(ny,"A",{href:!0,rel:!0});var sy=r(Is);wg=c(sy,"Parallelization"),sy.forEach(o),ny.forEach(o),xo.forEach(o),ie.forEach(o),Zl=d(t),it=s(t,"H2",{class:!0});var pm=r(it);io=s(pm,"A",{id:!0,class:!0,href:!0});var ry=r(io);gd=s(ry,"SPAN",{});var ay=r(gd);u(Os.$$.fragment,ay),ay.forEach(o),ry.forEach(o),$g=d(pm),bd=s(pm,"SPAN",{});var iy=r(bd);Mg=c(iy,"FlaxDecoderOutput"),iy.forEach(o),pm.forEach(o),Rl=d(t),me=s(t,"DIV",{class:!0});var Kr=r(me);u(Ls.$$.fragment,Kr),Dg=d(Kr),vd=s(Kr,"P",{});var dy=r(vd);Tg=c(dy,"Output of decoding method."),dy.forEach(o),kg=d(Kr),lo=s(Kr,"DIV",{class:!0});var fm=r(lo);u(Bs.$$.fragment,fm),Ng=d(fm),yd=s(fm,"P",{});var ly=r(yd);Ug=c(ly,"\u201CReturns a new object replacing the specified fields with new values."),ly.forEach(o),fm.forEach(o),Kr.forEach(o),Kl=d(t),dt=s(t,"H2",{class:!0});var um=r(dt);co=s(um,"A",{id:!0,class:!0,href:!0});var cy=r(co);xd=s(cy,"SPAN",{});var my=r(xd);u(Vs.$$.fragment,my),my.forEach(o),cy.forEach(o),Ag=d(um),wd=s(um,"SPAN",{});var py=r(wd);Eg=c(py,"FlaxAutoencoderKLOutput"),py.forEach(o),um.forEach(o),Yl=d(t),pe=s(t,"DIV",{class:!0});var Yr=r(pe);u(qs.$$.fragment,Yr),Cg=d(Yr),$d=s(Yr,"P",{});var fy=r($d);Fg=c(fy,"Output of AutoencoderKL encoding method."),fy.forEach(o),Pg=d(Yr),mo=s(Yr,"DIV",{class:!0});var hm=r(mo);u(Js.$$.fragment,hm),jg=d(hm),Md=s(hm,"P",{});var uy=r(Md);Ig=c(uy,"\u201CReturns a new object replacing the specified fields with new values."),uy.forEach(o),hm.forEach(o),Yr.forEach(o),Ql=d(t),lt=s(t,"H2",{class:!0});var _m=r(lt);po=s(_m,"A",{id:!0,class:!0,href:!0});var hy=r(po);Dd=s(hy,"SPAN",{});var _y=r(Dd);u(zs.$$.fragment,_y),_y.forEach(o),hy.forEach(o),Og=d(_m),Td=s(_m,"SPAN",{});var gy=r(Td);Lg=c(gy,"FlaxAutoencoderKL"),gy.forEach(o),_m.forEach(o),Hl=d(t),z=s(t,"DIV",{class:!0});var Ue=r(z);u(Ws.$$.fragment,Ue),Bg=d(Ue),kd=s(Ue,"P",{});var by=r(kd);Vg=c(by,`Flax Implementation of Variational Autoencoder (VAE) model with KL loss from the paper Auto-Encoding Variational
Bayes by Diederik P. Kingma and Max Welling.`),by.forEach(o),qg=d(Ue),Xs=s(Ue,"P",{});var gm=r(Xs);Jg=c(gm,"This model is a Flax Linen "),Gs=s(gm,"A",{href:!0,rel:!0});var vy=r(Gs);zg=c(vy,"flax.linen.Module"),vy.forEach(o),Wg=c(gm,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),gm.forEach(o),Xg=d(Ue),Nd=s(Ue,"P",{});var yy=r(Nd);Gg=c(yy,"Finally, this model supports inherent JAX features such as:"),yy.forEach(o),Sg=d(Ue),fe=s(Ue,"UL",{});var wo=r(fe);Ud=s(wo,"LI",{});var xy=r(Ud);Ss=s(xy,"A",{href:!0,rel:!0});var wy=r(Ss);Zg=c(wy,"Just-In-Time (JIT) compilation"),wy.forEach(o),xy.forEach(o),Rg=d(wo),Ad=s(wo,"LI",{});var $y=r(Ad);Zs=s($y,"A",{href:!0,rel:!0});var My=r(Zs);Kg=c(My,"Automatic Differentiation"),My.forEach(o),$y.forEach(o),Yg=d(wo),Ed=s(wo,"LI",{});var Dy=r(Ed);Rs=s(Dy,"A",{href:!0,rel:!0});var Ty=r(Rs);Qg=c(Ty,"Vectorization"),Ty.forEach(o),Dy.forEach(o),Hg=d(wo),Cd=s(wo,"LI",{});var ky=r(Cd);Ks=s(ky,"A",{href:!0,rel:!0});var Ny=r(Ks);eb=c(Ny,"Parallelization"),Ny.forEach(o),ky.forEach(o),wo.forEach(o),Ue.forEach(o),ec=d(t),ct=s(t,"H2",{class:!0});var bm=r(ct);fo=s(bm,"A",{id:!0,class:!0,href:!0});var Uy=r(fo);Fd=s(Uy,"SPAN",{});var Ay=r(Fd);u(Ys.$$.fragment,Ay),Ay.forEach(o),Uy.forEach(o),tb=d(bm),Pd=s(bm,"SPAN",{});var Ey=r(Pd);ob=c(Ey,"FlaxControlNetOutput"),Ey.forEach(o),bm.forEach(o),tc=d(t),mt=s(t,"DIV",{class:!0});var vm=r(mt);u(Qs.$$.fragment,vm),nb=d(vm),uo=s(vm,"DIV",{class:!0});var ym=r(uo);u(Hs.$$.fragment,ym),sb=d(ym),jd=s(ym,"P",{});var Cy=r(jd);rb=c(Cy,"\u201CReturns a new object replacing the specified fields with new values."),Cy.forEach(o),ym.forEach(o),vm.forEach(o),oc=d(t),pt=s(t,"H2",{class:!0});var xm=r(pt);ho=s(xm,"A",{id:!0,class:!0,href:!0});var Fy=r(ho);Id=s(Fy,"SPAN",{});var Py=r(Id);u(er.$$.fragment,Py),Py.forEach(o),Fy.forEach(o),ab=d(xm),Od=s(xm,"SPAN",{});var jy=r(Od);ib=c(jy,"FlaxControlNetModel"),jy.forEach(o),xm.forEach(o),nc=d(t),L=s(t,"DIV",{class:!0});var de=r(L);u(tr.$$.fragment,de),db=d(de),or=s(de,"P",{});var wm=r(or);lb=c(wm,"Quoting from "),nr=s(wm,"A",{href:!0,rel:!0});var Iy=r(nr);cb=c(Iy,"https://arxiv.org/abs/2302.05543"),Iy.forEach(o),mb=c(wm,`: \u201CStable Diffusion uses a pre-processing method similar to VQ-GAN
[11] to convert the entire dataset of 512 \xD7 512 images into smaller 64 \xD7 64 \u201Clatent images\u201D for stabilized
training. This requires ControlNets to convert image-based conditions to 64 \xD7 64 feature space to match the
convolution size. We use a tiny network E(\xB7) of four convolution layers with 4 \xD7 4 kernels and 2 \xD7 2 strides
(activated by ReLU, channels are 16, 32, 64, 128, initialized with Gaussian weights, trained jointly with the full
model) to encode image-space conditions \u2026 into feature maps \u2026\u201D`),wm.forEach(o),pb=d(de),sr=s(de,"P",{});var $m=r(sr);fb=c($m,"This model inherits from "),qr=s($m,"A",{href:!0});var Oy=r(qr);ub=c(Oy,"FlaxModelMixin"),Oy.forEach(o),hb=c($m,`. Check the superclass documentation for the generic methods the library
implements for all the models (such as downloading or saving, etc.)`),$m.forEach(o),_b=d(de),rr=s(de,"P",{});var Mm=r(rr);gb=c(Mm,"Also, this model is a Flax Linen "),ar=s(Mm,"A",{href:!0,rel:!0});var Ly=r(ar);bb=c(Ly,"flax.linen.Module"),Ly.forEach(o),vb=c(Mm,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Mm.forEach(o),yb=d(de),Ld=s(de,"P",{});var By=r(Ld);xb=c(By,"Finally, this model supports inherent JAX features such as:"),By.forEach(o),wb=d(de),ue=s(de,"UL",{});var $o=r(ue);Bd=s($o,"LI",{});var Vy=r(Bd);ir=s(Vy,"A",{href:!0,rel:!0});var qy=r(ir);$b=c(qy,"Just-In-Time (JIT) compilation"),qy.forEach(o),Vy.forEach(o),Mb=d($o),Vd=s($o,"LI",{});var Jy=r(Vd);dr=s(Jy,"A",{href:!0,rel:!0});var zy=r(dr);Db=c(zy,"Automatic Differentiation"),zy.forEach(o),Jy.forEach(o),Tb=d($o),qd=s($o,"LI",{});var Wy=r(qd);lr=s(Wy,"A",{href:!0,rel:!0});var Xy=r(lr);kb=c(Xy,"Vectorization"),Xy.forEach(o),Wy.forEach(o),Nb=d($o),Jd=s($o,"LI",{});var Gy=r(Jd);cr=s(Gy,"A",{href:!0,rel:!0});var Sy=r(cr);Ub=c(Sy,"Parallelization"),Sy.forEach(o),Gy.forEach(o),$o.forEach(o),de.forEach(o),this.h()},h(){a(x,"name","hf:doc:metadata"),a(x,"content",JSON.stringify(m0)),a(w,"id","models"),a(w,"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"),a(w,"href","#models"),a(M,"class","relative group"),Kd.a=Yd,a(ut,"id","diffusers.ModelMixin"),a(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"),a(ut,"href","#diffusers.ModelMixin"),a(Ee,"class","relative group"),a(_r,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a(gr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin.save_pretrained"),a(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(xt,"id","diffusers.models.unet_2d.UNet2DOutput"),a(xt,"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"),a(xt,"href","#diffusers.models.unet_2d.UNet2DOutput"),a(Fe,"class","relative group"),a(Oo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(wt,"id","diffusers.UNet2DModel"),a(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"),a(wt,"href","#diffusers.UNet2DModel"),a(Pe,"class","relative group"),a(br,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a(vr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a($t,"id","diffusers.models.unet_1d.UNet1DOutput"),a($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"),a($t,"href","#diffusers.models.unet_1d.UNet1DOutput"),a(je,"class","relative group"),a(Wo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Mt,"id","diffusers.UNet1DModel"),a(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"),a(Mt,"href","#diffusers.UNet1DModel"),a(Ie,"class","relative group"),a(yr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a(xr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Dt,"id","diffusers.models.unet_2d_condition.UNet2DConditionOutput"),a(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"),a(Dt,"href","#diffusers.models.unet_2d_condition.UNet2DConditionOutput"),a(Oe,"class","relative group"),a(Yo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Tt,"id","diffusers.UNet2DConditionModel"),a(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"),a(Tt,"href","#diffusers.UNet2DConditionModel"),a(Le,"class","relative group"),a(wr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a($r,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Mr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Nt,"id","diffusers.models.unet_3d_condition.UNet3DConditionOutput"),a(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"),a(Nt,"href","#diffusers.models.unet_3d_condition.UNet3DConditionOutput"),a(Be,"class","relative group"),a(dn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Ut,"id","diffusers.UNet3DConditionModel"),a(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"),a(Ut,"href","#diffusers.UNet3DConditionModel"),a(Ve,"class","relative group"),a(Dr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a(Tr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(kr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(At,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Et,"id","diffusers.models.vae.DecoderOutput"),a(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"),a(Et,"href","#diffusers.models.vae.DecoderOutput"),a(qe,"class","relative group"),a(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Ct,"id","diffusers.models.vq_model.VQEncoderOutput"),a(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"),a(Ct,"href","#diffusers.models.vq_model.VQEncoderOutput"),a(ze,"class","relative group"),a(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Ft,"id","diffusers.VQModel"),a(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"),a(Ft,"href","#diffusers.VQModel"),a(Xe,"class","relative group"),a(Nr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a(Ur,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Pt,"id","diffusers.models.autoencoder_kl.AutoencoderKLOutput"),a(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"),a(Pt,"href","#diffusers.models.autoencoder_kl.AutoencoderKLOutput"),a(Ge,"class","relative group"),a(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(jt,"id","diffusers.AutoencoderKL"),a(jt,"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"),a(jt,"href","#diffusers.AutoencoderKL"),a(Ze,"class","relative group"),a(Ar,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a(It,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Er,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Jt,"id","diffusers.Transformer2DModel"),a(Jt,"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"),a(Jt,"href","#diffusers.Transformer2DModel"),a(Re,"class","relative group"),a(Cr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(zt,"id","diffusers.models.transformer_2d.Transformer2DModelOutput"),a(zt,"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"),a(zt,"href","#diffusers.models.transformer_2d.Transformer2DModelOutput"),a(Ke,"class","relative group"),a(Wn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Wt,"id","diffusers.models.transformer_temporal.TransformerTemporalModel"),a(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"),a(Wt,"href","#diffusers.models.transformer_temporal.TransformerTemporalModel"),a(Ye,"class","relative group"),a(Fr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Xt,"id","diffusers.models.transformer_temporal.TransformerTemporalModelOutput"),a(Xt,"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"),a(Xt,"href","#diffusers.models.transformer_temporal.TransformerTemporalModelOutput"),a(Qe,"class","relative group"),a(Kn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Gt,"id","diffusers.PriorTransformer"),a(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"),a(Gt,"href","#diffusers.PriorTransformer"),a(He,"class","relative group"),a(Pr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),a(ts,"href","https://arxiv.org/abs/2204.06125"),a(ts,"rel","nofollow"),a(Ir,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(St,"id","diffusers.models.prior_transformer.PriorTransformerOutput"),a(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"),a(St,"href","#diffusers.models.prior_transformer.PriorTransformerOutput"),a(et,"class","relative group"),a(ss,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Zt,"id","diffusers.models.controlnet.ControlNetOutput"),a(Zt,"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"),a(Zt,"href","#diffusers.models.controlnet.ControlNetOutput"),a(tt,"class","relative group"),a(is,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Rt,"id","diffusers.ControlNetModel"),a(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"),a(Rt,"href","#diffusers.ControlNetModel"),a(ot,"class","relative group"),a(Kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Or,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(Qt,"id","diffusers.FlaxModelMixin"),a(Qt,"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"),a(Qt,"href","#diffusers.FlaxModelMixin"),a(nt,"class","relative group"),a(Br,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.FlaxModelMixin"),a(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(eo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(so,"id","diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput"),a(so,"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"),a(so,"href","#diffusers.models.unet_2d_condition_flax.FlaxUNet2DConditionOutput"),a(st,"class","relative group"),a(ro,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(ao,"id","diffusers.FlaxUNet2DConditionModel"),a(ao,"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"),a(ao,"href","#diffusers.FlaxUNet2DConditionModel"),a(at,"class","relative group"),a(Vr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.FlaxModelMixin"),a(Cs,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),a(Cs,"rel","nofollow"),a(Fs,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),a(Fs,"rel","nofollow"),a(Ps,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),a(Ps,"rel","nofollow"),a(js,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),a(js,"rel","nofollow"),a(Is,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),a(Is,"rel","nofollow"),a(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(io,"id","diffusers.models.vae_flax.FlaxDecoderOutput"),a(io,"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"),a(io,"href","#diffusers.models.vae_flax.FlaxDecoderOutput"),a(it,"class","relative group"),a(lo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(co,"id","diffusers.models.vae_flax.FlaxAutoencoderKLOutput"),a(co,"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"),a(co,"href","#diffusers.models.vae_flax.FlaxAutoencoderKLOutput"),a(dt,"class","relative group"),a(mo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(po,"id","diffusers.FlaxAutoencoderKL"),a(po,"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"),a(po,"href","#diffusers.FlaxAutoencoderKL"),a(lt,"class","relative group"),a(Gs,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),a(Gs,"rel","nofollow"),a(Ss,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),a(Ss,"rel","nofollow"),a(Zs,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),a(Zs,"rel","nofollow"),a(Rs,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),a(Rs,"rel","nofollow"),a(Ks,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),a(Ks,"rel","nofollow"),a(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(fo,"id","diffusers.models.controlnet_flax.FlaxControlNetOutput"),a(fo,"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"),a(fo,"href","#diffusers.models.controlnet_flax.FlaxControlNetOutput"),a(ct,"class","relative group"),a(uo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(ho,"id","diffusers.FlaxControlNetModel"),a(ho,"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"),a(ho,"href","#diffusers.FlaxControlNetModel"),a(pt,"class","relative group"),a(nr,"href","https://arxiv.org/abs/2302.05543"),a(nr,"rel","nofollow"),a(qr,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.FlaxModelMixin"),a(ar,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),a(ar,"rel","nofollow"),a(ir,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),a(ir,"rel","nofollow"),a(dr,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),a(dr,"rel","nofollow"),a(lr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),a(lr,"rel","nofollow"),a(cr,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),a(cr,"rel","nofollow"),a(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,m){e(document.head,x),p(t,T,m),p(t,M,m),e(M,w),e(w,D),h(v,D,null),e(M,$),e(M,ne),e(ne,Ae),p(t,R,m),p(t,K,m),e(K,ur),Kd.m(Ry,K),e(K,Yd),e(K,Qr),e(Qr,Dm),e(K,Tm),p(t,Qd,m),p(t,Ee,m),e(Ee,ut),e(ut,Hr),h(Mo,Hr,null),e(Ee,km),e(Ee,ea),e(ea,Nm),p(t,Hd,m),p(t,N,m),h(Do,N,null),e(N,Um),e(N,ta),e(ta,Am),e(N,Em),e(N,hr),e(hr,_r),e(_r,Cm),e(hr,Fm),e(N,Pm),e(N,oa),e(oa,he),e(he,na),e(na,jm),e(he,Im),e(he,sa),e(sa,Om),e(he,Lm),e(he,gr),e(gr,Bm),e(he,Vm),e(N,qm),e(N,_e),h(To,_e,null),e(_e,Jm),e(_e,ra),e(ra,zm),e(_e,Wm),e(_e,aa),e(aa,Xm),e(N,Gm),e(N,ht),h(ko,ht,null),e(ht,Sm),e(ht,ia),e(ia,Zm),e(N,Rm),e(N,ge),h(No,ge,null),e(ge,Km),e(ge,da),e(da,Ym),e(ge,Qm),e(ge,la),e(la,Hm),e(N,ep),e(N,W),h(Uo,W,null),e(W,tp),e(W,ca),e(ca,op),e(W,np),e(W,ma),e(ma,sp),e(W,rp),e(W,pa),e(pa,ap),e(W,ip),h(_t,W,null),e(N,dp),e(N,j),h(Ao,j,null),e(j,lp),e(j,fa),e(fa,cp),e(j,mp),e(j,Ce),e(Ce,pp),e(Ce,ua),e(ua,fp),e(Ce,up),e(Ce,ha),e(ha,hp),e(Ce,_p),e(j,gp),e(j,Eo),e(Eo,bp),e(Eo,_a),e(_a,vp),e(Eo,yp),e(j,xp),e(j,Co),e(Co,wp),e(Co,ga),e(ga,$p),e(Co,Mp),e(j,Dp),h(gt,j,null),e(j,Tp),h(bt,j,null),e(N,kp),e(N,vt),h(Fo,vt,null),e(vt,Np),e(vt,ba),e(ba,Up),e(N,Ap),e(N,yt),h(Po,yt,null),e(yt,Ep),e(yt,jo),e(jo,Cp),e(jo,va),e(va,Fp),e(jo,Pp),p(t,el,m),p(t,Fe,m),e(Fe,xt),e(xt,ya),h(Io,ya,null),e(Fe,jp),e(Fe,xa),e(xa,Ip),p(t,tl,m),p(t,Oo,m),h(Lo,Oo,null),p(t,ol,m),p(t,Pe,m),e(Pe,wt),e(wt,wa),h(Bo,wa,null),e(Pe,Op),e(Pe,$a),e($a,Lp),p(t,nl,m),p(t,Y,m),h(Vo,Y,null),e(Y,Bp),e(Y,Ma),e(Ma,Vp),e(Y,qp),e(Y,qo),e(qo,Jp),e(qo,br),e(br,zp),e(qo,Wp),e(Y,Xp),e(Y,vr),h(Jo,vr,null),p(t,sl,m),p(t,je,m),e(je,$t),e($t,Da),h(zo,Da,null),e(je,Gp),e(je,Ta),e(Ta,Sp),p(t,rl,m),p(t,Wo,m),h(Xo,Wo,null),p(t,al,m),p(t,Ie,m),e(Ie,Mt),e(Mt,ka),h(Go,ka,null),e(Ie,Zp),e(Ie,Na),e(Na,Rp),p(t,il,m),p(t,Q,m),h(So,Q,null),e(Q,Kp),e(Q,Ua),e(Ua,Yp),e(Q,Qp),e(Q,Zo),e(Zo,Hp),e(Zo,yr),e(yr,ef),e(Zo,tf),e(Q,of),e(Q,xr),h(Ro,xr,null),p(t,dl,m),p(t,Oe,m),e(Oe,Dt),e(Dt,Aa),h(Ko,Aa,null),e(Oe,nf),e(Oe,Ea),e(Ea,sf),p(t,ll,m),p(t,Yo,m),h(Qo,Yo,null),p(t,cl,m),p(t,Le,m),e(Le,Tt),e(Tt,Ca),h(Ho,Ca,null),e(Le,rf),e(Le,Fa),e(Fa,af),p(t,ml,m),p(t,F,m),h(en,F,null),e(F,df),e(F,Pa),e(Pa,lf),e(F,cf),e(F,tn),e(tn,mf),e(tn,wr),e(wr,pf),e(tn,ff),e(F,uf),e(F,$r),h(on,$r,null),e(F,hf),e(F,be),h(nn,be,null),e(be,_f),e(be,ja),e(ja,gf),e(be,bf),e(be,Ia),e(Ia,vf),e(F,yf),e(F,Mr),h(sn,Mr,null),e(F,xf),e(F,kt),h(rn,kt,null),e(kt,wf),e(kt,Oa),e(Oa,$f),p(t,pl,m),p(t,Be,m),e(Be,Nt),e(Nt,La),h(an,La,null),e(Be,Mf),e(Be,Ba),e(Ba,Df),p(t,fl,m),p(t,dn,m),h(ln,dn,null),p(t,ul,m),p(t,Ve,m),e(Ve,Ut),e(Ut,Va),h(cn,Va,null),e(Ve,Tf),e(Ve,qa),e(qa,kf),p(t,hl,m),p(t,P,m),h(mn,P,null),e(P,Nf),e(P,Ja),e(Ja,Uf),e(P,Af),e(P,pn),e(pn,Ef),e(pn,Dr),e(Dr,Cf),e(pn,Ff),e(P,Pf),e(P,Tr),h(fn,Tr,null),e(P,jf),e(P,ve),h(un,ve,null),e(ve,If),e(ve,za),e(za,Of),e(ve,Lf),e(ve,Wa),e(Wa,Bf),e(P,Vf),e(P,kr),h(hn,kr,null),e(P,qf),e(P,At),h(_n,At,null),e(At,Jf),e(At,Xa),e(Xa,zf),p(t,_l,m),p(t,qe,m),e(qe,Et),e(Et,Ga),h(gn,Ga,null),e(qe,Wf),e(qe,Sa),e(Sa,Xf),p(t,gl,m),p(t,Je,m),h(bn,Je,null),e(Je,Gf),e(Je,Za),e(Za,Sf),p(t,bl,m),p(t,ze,m),e(ze,Ct),e(Ct,Ra),h(vn,Ra,null),e(ze,Zf),e(ze,Ka),e(Ka,Rf),p(t,vl,m),p(t,We,m),h(yn,We,null),e(We,Kf),e(We,Ya),e(Ya,Yf),p(t,yl,m),p(t,Xe,m),e(Xe,Ft),e(Ft,Qa),h(xn,Qa,null),e(Xe,Qf),e(Xe,Ha),e(Ha,Hf),p(t,xl,m),p(t,H,m),h(wn,H,null),e(H,eu),e(H,ei),e(ei,tu),e(H,ou),e(H,$n),e($n,nu),e($n,Nr),e(Nr,su),e($n,ru),e(H,au),e(H,Ur),h(Mn,Ur,null),p(t,wl,m),p(t,Ge,m),e(Ge,Pt),e(Pt,ti),h(Dn,ti,null),e(Ge,iu),e(Ge,oi),e(oi,du),p(t,$l,m),p(t,Se,m),h(Tn,Se,null),e(Se,lu),e(Se,ni),e(ni,cu),p(t,Ml,m),p(t,Ze,m),e(Ze,jt),e(jt,si),h(kn,si,null),e(Ze,mu),e(Ze,ri),e(ri,pu),p(t,Dl,m),p(t,U,m),h(Nn,U,null),e(U,fu),e(U,ai),e(ai,uu),e(U,hu),e(U,Un),e(Un,_u),e(Un,Ar),e(Ar,gu),e(Un,bu),e(U,vu),e(U,It),h(An,It,null),e(It,yu),e(It,En),e(En,xu),e(En,ii),e(ii,wu),e(En,$u),e(U,Mu),e(U,Ot),h(Cn,Ot,null),e(Ot,Du),e(Ot,Fn),e(Fn,Tu),e(Fn,di),e(di,ku),e(Fn,Nu),e(U,Uu),e(U,Lt),h(Pn,Lt,null),e(Lt,Au),e(Lt,li),e(li,Eu),e(U,Cu),e(U,Bt),h(jn,Bt,null),e(Bt,Fu),e(Bt,ci),e(ci,Pu),e(U,ju),e(U,Er),h(In,Er,null),e(U,Iu),e(U,Vt),h(On,Vt,null),e(Vt,Ou),e(Vt,mi),e(mi,Lu),e(U,Bu),e(U,qt),h(Ln,qt,null),e(qt,Vu),e(qt,pi),e(pi,qu),p(t,Tl,m),p(t,Re,m),e(Re,Jt),e(Jt,fi),h(Bn,fi,null),e(Re,Ju),e(Re,ui),e(ui,zu),p(t,kl,m),p(t,I,m),h(Vn,I,null),e(I,Wu),e(I,hi),e(hi,Xu),e(I,Gu),e(I,_i),e(_i,Su),e(I,Zu),e(I,qn),e(qn,Ru),e(qn,gi),e(gi,Ku),e(qn,Yu),e(I,Qu),e(I,bi),e(bi,Hu),e(I,eh),e(I,Cr),h(Jn,Cr,null),p(t,Nl,m),p(t,Ke,m),e(Ke,zt),e(zt,vi),h(zn,vi,null),e(Ke,th),e(Ke,yi),e(yi,oh),p(t,Ul,m),p(t,Wn,m),h(Xn,Wn,null),p(t,Al,m),p(t,Ye,m),e(Ye,Wt),e(Wt,xi),h(Gn,xi,null),e(Ye,nh),e(Ye,wi),e(wi,sh),p(t,El,m),p(t,le,m),h(Sn,le,null),e(le,rh),e(le,$i),e($i,ah),e(le,ih),e(le,Fr),h(Zn,Fr,null),p(t,Cl,m),p(t,Qe,m),e(Qe,Xt),e(Xt,Mi),h(Rn,Mi,null),e(Qe,dh),e(Qe,Di),e(Di,lh),p(t,Fl,m),p(t,Kn,m),h(Yn,Kn,null),p(t,Pl,m),p(t,He,m),e(He,Gt),e(Gt,Ti),h(Qn,Ti,null),e(He,ch),e(He,ki),e(ki,mh),p(t,jl,m),p(t,q,m),h(Hn,q,null),e(q,ph),e(q,Ni),e(Ni,fh),e(q,uh),e(q,es),e(es,hh),e(es,Pr),e(Pr,_h),e(es,gh),e(q,bh),e(q,jr),e(jr,vh),e(jr,ts),e(ts,yh),e(q,xh),e(q,Ir),h(os,Ir,null),p(t,Il,m),p(t,et,m),e(et,St),e(St,Ui),h(ns,Ui,null),e(et,wh),e(et,Ai),e(Ai,$h),p(t,Ol,m),p(t,ss,m),h(rs,ss,null),p(t,Ll,m),p(t,tt,m),e(tt,Zt),e(Zt,Ei),h(as,Ei,null),e(tt,Mh),e(tt,Ci),e(Ci,Dh),p(t,Bl,m),p(t,is,m),h(ds,is,null),p(t,Vl,m),p(t,ot,m),e(ot,Rt),e(Rt,Fi),h(ls,Fi,null),e(ot,Th),e(ot,Pi),e(Pi,kh),p(t,ql,m),p(t,J,m),h(cs,J,null),e(J,Nh),e(J,Kt),h(ms,Kt,null),e(Kt,Uh),e(Kt,ji),e(ji,Ah),e(J,Eh),e(J,ye),h(ps,ye,null),e(ye,Ch),e(ye,Ii),e(Ii,Fh),e(ye,Ph),e(ye,Oi),e(Oi,jh),e(J,Ih),e(J,Or),h(fs,Or,null),e(J,Oh),e(J,Yt),h(us,Yt,null),e(Yt,Lh),e(Yt,Li),e(Li,Bh),p(t,Jl,m),p(t,nt,m),e(nt,Qt),e(Qt,Bi),h(hs,Bi,null),e(nt,Vh),e(nt,Vi),e(Vi,qh),p(t,zl,m),p(t,E,m),h(_s,E,null),e(E,Jh),e(E,qi),e(qi,zh),e(E,Wh),e(E,Lr),e(Lr,Br),e(Br,Xh),e(Lr,Gh),e(E,Sh),e(E,X),h(gs,X,null),e(X,Zh),e(X,Ji),e(Ji,Rh),e(X,Kh),e(X,bs),e(bs,Yh),e(bs,zi),e(zi,Qh),e(bs,Hh),e(X,e_),e(X,vs),e(vs,t_),e(vs,Wi),e(Wi,o_),e(vs,n_),e(X,s_),h(Ht,X,null),e(E,r_),e(E,eo),h(ys,eo,null),e(eo,a_),e(eo,xs),e(xs,i_),e(xs,Xi),e(Xi,d_),e(xs,l_),e(E,c_),e(E,se),h(ws,se,null),e(se,m_),e(se,ee),e(ee,p_),e(ee,Gi),e(Gi,f_),e(ee,u_),e(ee,Si),e(Si,h_),e(ee,__),e(ee,Zi),e(Zi,g_),e(ee,b_),e(ee,Ri),e(Ri,v_),e(ee,y_),e(se,x_),e(se,Ki),e(Ki,w_),e(se,$_),h(to,se,null),e(E,M_),e(E,re),h($s,re,null),e(re,D_),e(re,te),e(te,T_),e(te,Yi),e(Yi,k_),e(te,N_),e(te,Qi),e(Qi,U_),e(te,A_),e(te,Hi),e(Hi,E_),e(te,C_),e(te,ed),e(ed,F_),e(te,P_),e(re,j_),e(re,td),e(td,I_),e(re,O_),h(oo,re,null),e(E,L_),e(E,xe),h(Ms,xe,null),e(xe,B_),e(xe,oe),e(oe,V_),e(oe,od),e(od,q_),e(oe,J_),e(oe,nd),e(nd,z_),e(oe,W_),e(oe,sd),e(sd,X_),e(oe,G_),e(oe,rd),e(rd,S_),e(oe,Z_),e(xe,R_),h(no,xe,null),p(t,Wl,m),p(t,st,m),e(st,so),e(so,ad),h(Ds,ad,null),e(st,K_),e(st,id),e(id,Y_),p(t,Xl,m),p(t,rt,m),h(Ts,rt,null),e(rt,Q_),e(rt,ro),h(ks,ro,null),e(ro,H_),e(ro,dd),e(dd,eg),p(t,Gl,m),p(t,at,m),e(at,ao),e(ao,ld),h(Ns,ld,null),e(at,tg),e(at,cd),e(cd,og),p(t,Sl,m),p(t,O,m),h(Us,O,null),e(O,ng),e(O,md),e(md,sg),e(O,rg),e(O,As),e(As,ag),e(As,Vr),e(Vr,ig),e(As,dg),e(O,lg),e(O,Es),e(Es,cg),e(Es,Cs),e(Cs,mg),e(Es,pg),e(O,fg),e(O,pd),e(pd,ug),e(O,hg),e(O,ce),e(ce,fd),e(fd,Fs),e(Fs,_g),e(ce,gg),e(ce,ud),e(ud,Ps),e(Ps,bg),e(ce,vg),e(ce,hd),e(hd,js),e(js,yg),e(ce,xg),e(ce,_d),e(_d,Is),e(Is,wg),p(t,Zl,m),p(t,it,m),e(it,io),e(io,gd),h(Os,gd,null),e(it,$g),e(it,bd),e(bd,Mg),p(t,Rl,m),p(t,me,m),h(Ls,me,null),e(me,Dg),e(me,vd),e(vd,Tg),e(me,kg),e(me,lo),h(Bs,lo,null),e(lo,Ng),e(lo,yd),e(yd,Ug),p(t,Kl,m),p(t,dt,m),e(dt,co),e(co,xd),h(Vs,xd,null),e(dt,Ag),e(dt,wd),e(wd,Eg),p(t,Yl,m),p(t,pe,m),h(qs,pe,null),e(pe,Cg),e(pe,$d),e($d,Fg),e(pe,Pg),e(pe,mo),h(Js,mo,null),e(mo,jg),e(mo,Md),e(Md,Ig),p(t,Ql,m),p(t,lt,m),e(lt,po),e(po,Dd),h(zs,Dd,null),e(lt,Og),e(lt,Td),e(Td,Lg),p(t,Hl,m),p(t,z,m),h(Ws,z,null),e(z,Bg),e(z,kd),e(kd,Vg),e(z,qg),e(z,Xs),e(Xs,Jg),e(Xs,Gs),e(Gs,zg),e(Xs,Wg),e(z,Xg),e(z,Nd),e(Nd,Gg),e(z,Sg),e(z,fe),e(fe,Ud),e(Ud,Ss),e(Ss,Zg),e(fe,Rg),e(fe,Ad),e(Ad,Zs),e(Zs,Kg),e(fe,Yg),e(fe,Ed),e(Ed,Rs),e(Rs,Qg),e(fe,Hg),e(fe,Cd),e(Cd,Ks),e(Ks,eb),p(t,ec,m),p(t,ct,m),e(ct,fo),e(fo,Fd),h(Ys,Fd,null),e(ct,tb),e(ct,Pd),e(Pd,ob),p(t,tc,m),p(t,mt,m),h(Qs,mt,null),e(mt,nb),e(mt,uo),h(Hs,uo,null),e(uo,sb),e(uo,jd),e(jd,rb),p(t,oc,m),p(t,pt,m),e(pt,ho),e(ho,Id),h(er,Id,null),e(pt,ab),e(pt,Od),e(Od,ib),p(t,nc,m),p(t,L,m),h(tr,L,null),e(L,db),e(L,or),e(or,lb),e(or,nr),e(nr,cb),e(or,mb),e(L,pb),e(L,sr),e(sr,fb),e(sr,qr),e(qr,ub),e(sr,hb),e(L,_b),e(L,rr),e(rr,gb),e(rr,ar),e(ar,bb),e(rr,vb),e(L,yb),e(L,Ld),e(Ld,xb),e(L,wb),e(L,ue),e(ue,Bd),e(Bd,ir),e(ir,$b),e(ue,Mb),e(ue,Vd),e(Vd,dr),e(dr,Db),e(ue,Tb),e(ue,qd),e(qd,lr),e(lr,kb),e(ue,Nb),e(ue,Jd),e(Jd,cr),e(cr,Ub),sc=!0},p(t,[m]){const mr={};m&2&&(mr.$$scope={dirty:m,ctx:t}),_t.$set(mr);const zd={};m&2&&(zd.$$scope={dirty:m,ctx:t}),gt.$set(zd);const Wd={};m&2&&(Wd.$$scope={dirty:m,ctx:t}),bt.$set(Wd);const Xd={};m&2&&(Xd.$$scope={dirty:m,ctx:t}),Ht.$set(Xd);const ft={};m&2&&(ft.$$scope={dirty:m,ctx:t}),to.$set(ft);const Gd={};m&2&&(Gd.$$scope={dirty:m,ctx:t}),oo.$set(Gd);const pr={};m&2&&(pr.$$scope={dirty:m,ctx:t}),no.$set(pr)},i(t){sc||(_(v.$$.fragment,t),_(Mo.$$.fragment,t),_(Do.$$.fragment,t),_(To.$$.fragment,t),_(ko.$$.fragment,t),_(No.$$.fragment,t),_(Uo.$$.fragment,t),_(_t.$$.fragment,t),_(Ao.$$.fragment,t),_(gt.$$.fragment,t),_(bt.$$.fragment,t),_(Fo.$$.fragment,t),_(Po.$$.fragment,t),_(Io.$$.fragment,t),_(Lo.$$.fragment,t),_(Bo.$$.fragment,t),_(Vo.$$.fragment,t),_(Jo.$$.fragment,t),_(zo.$$.fragment,t),_(Xo.$$.fragment,t),_(Go.$$.fragment,t),_(So.$$.fragment,t),_(Ro.$$.fragment,t),_(Ko.$$.fragment,t),_(Qo.$$.fragment,t),_(Ho.$$.fragment,t),_(en.$$.fragment,t),_(on.$$.fragment,t),_(nn.$$.fragment,t),_(sn.$$.fragment,t),_(rn.$$.fragment,t),_(an.$$.fragment,t),_(ln.$$.fragment,t),_(cn.$$.fragment,t),_(mn.$$.fragment,t),_(fn.$$.fragment,t),_(un.$$.fragment,t),_(hn.$$.fragment,t),_(_n.$$.fragment,t),_(gn.$$.fragment,t),_(bn.$$.fragment,t),_(vn.$$.fragment,t),_(yn.$$.fragment,t),_(xn.$$.fragment,t),_(wn.$$.fragment,t),_(Mn.$$.fragment,t),_(Dn.$$.fragment,t),_(Tn.$$.fragment,t),_(kn.$$.fragment,t),_(Nn.$$.fragment,t),_(An.$$.fragment,t),_(Cn.$$.fragment,t),_(Pn.$$.fragment,t),_(jn.$$.fragment,t),_(In.$$.fragment,t),_(On.$$.fragment,t),_(Ln.$$.fragment,t),_(Bn.$$.fragment,t),_(Vn.$$.fragment,t),_(Jn.$$.fragment,t),_(zn.$$.fragment,t),_(Xn.$$.fragment,t),_(Gn.$$.fragment,t),_(Sn.$$.fragment,t),_(Zn.$$.fragment,t),_(Rn.$$.fragment,t),_(Yn.$$.fragment,t),_(Qn.$$.fragment,t),_(Hn.$$.fragment,t),_(os.$$.fragment,t),_(ns.$$.fragment,t),_(rs.$$.fragment,t),_(as.$$.fragment,t),_(ds.$$.fragment,t),_(ls.$$.fragment,t),_(cs.$$.fragment,t),_(ms.$$.fragment,t),_(ps.$$.fragment,t),_(fs.$$.fragment,t),_(us.$$.fragment,t),_(hs.$$.fragment,t),_(_s.$$.fragment,t),_(gs.$$.fragment,t),_(Ht.$$.fragment,t),_(ys.$$.fragment,t),_(ws.$$.fragment,t),_(to.$$.fragment,t),_($s.$$.fragment,t),_(oo.$$.fragment,t),_(Ms.$$.fragment,t),_(no.$$.fragment,t),_(Ds.$$.fragment,t),_(Ts.$$.fragment,t),_(ks.$$.fragment,t),_(Ns.$$.fragment,t),_(Us.$$.fragment,t),_(Os.$$.fragment,t),_(Ls.$$.fragment,t),_(Bs.$$.fragment,t),_(Vs.$$.fragment,t),_(qs.$$.fragment,t),_(Js.$$.fragment,t),_(zs.$$.fragment,t),_(Ws.$$.fragment,t),_(Ys.$$.fragment,t),_(Qs.$$.fragment,t),_(Hs.$$.fragment,t),_(er.$$.fragment,t),_(tr.$$.fragment,t),sc=!0)},o(t){g(v.$$.fragment,t),g(Mo.$$.fragment,t),g(Do.$$.fragment,t),g(To.$$.fragment,t),g(ko.$$.fragment,t),g(No.$$.fragment,t),g(Uo.$$.fragment,t),g(_t.$$.fragment,t),g(Ao.$$.fragment,t),g(gt.$$.fragment,t),g(bt.$$.fragment,t),g(Fo.$$.fragment,t),g(Po.$$.fragment,t),g(Io.$$.fragment,t),g(Lo.$$.fragment,t),g(Bo.$$.fragment,t),g(Vo.$$.fragment,t),g(Jo.$$.fragment,t),g(zo.$$.fragment,t),g(Xo.$$.fragment,t),g(Go.$$.fragment,t),g(So.$$.fragment,t),g(Ro.$$.fragment,t),g(Ko.$$.fragment,t),g(Qo.$$.fragment,t),g(Ho.$$.fragment,t),g(en.$$.fragment,t),g(on.$$.fragment,t),g(nn.$$.fragment,t),g(sn.$$.fragment,t),g(rn.$$.fragment,t),g(an.$$.fragment,t),g(ln.$$.fragment,t),g(cn.$$.fragment,t),g(mn.$$.fragment,t),g(fn.$$.fragment,t),g(un.$$.fragment,t),g(hn.$$.fragment,t),g(_n.$$.fragment,t),g(gn.$$.fragment,t),g(bn.$$.fragment,t),g(vn.$$.fragment,t),g(yn.$$.fragment,t),g(xn.$$.fragment,t),g(wn.$$.fragment,t),g(Mn.$$.fragment,t),g(Dn.$$.fragment,t),g(Tn.$$.fragment,t),g(kn.$$.fragment,t),g(Nn.$$.fragment,t),g(An.$$.fragment,t),g(Cn.$$.fragment,t),g(Pn.$$.fragment,t),g(jn.$$.fragment,t),g(In.$$.fragment,t),g(On.$$.fragment,t),g(Ln.$$.fragment,t),g(Bn.$$.fragment,t),g(Vn.$$.fragment,t),g(Jn.$$.fragment,t),g(zn.$$.fragment,t),g(Xn.$$.fragment,t),g(Gn.$$.fragment,t),g(Sn.$$.fragment,t),g(Zn.$$.fragment,t),g(Rn.$$.fragment,t),g(Yn.$$.fragment,t),g(Qn.$$.fragment,t),g(Hn.$$.fragment,t),g(os.$$.fragment,t),g(ns.$$.fragment,t),g(rs.$$.fragment,t),g(as.$$.fragment,t),g(ds.$$.fragment,t),g(ls.$$.fragment,t),g(cs.$$.fragment,t),g(ms.$$.fragment,t),g(ps.$$.fragment,t),g(fs.$$.fragment,t),g(us.$$.fragment,t),g(hs.$$.fragment,t),g(_s.$$.fragment,t),g(gs.$$.fragment,t),g(Ht.$$.fragment,t),g(ys.$$.fragment,t),g(ws.$$.fragment,t),g(to.$$.fragment,t),g($s.$$.fragment,t),g(oo.$$.fragment,t),g(Ms.$$.fragment,t),g(no.$$.fragment,t),g(Ds.$$.fragment,t),g(Ts.$$.fragment,t),g(ks.$$.fragment,t),g(Ns.$$.fragment,t),g(Us.$$.fragment,t),g(Os.$$.fragment,t),g(Ls.$$.fragment,t),g(Bs.$$.fragment,t),g(Vs.$$.fragment,t),g(qs.$$.fragment,t),g(Js.$$.fragment,t),g(zs.$$.fragment,t),g(Ws.$$.fragment,t),g(Ys.$$.fragment,t),g(Qs.$$.fragment,t),g(Hs.$$.fragment,t),g(er.$$.fragment,t),g(tr.$$.fragment,t),sc=!1},d(t){o(x),t&&o(T),t&&o(M),b(v),t&&o(R),t&&o(K),t&&o(Qd),t&&o(Ee),b(Mo),t&&o(Hd),t&&o(N),b(Do),b(To),b(ko),b(No),b(Uo),b(_t),b(Ao),b(gt),b(bt),b(Fo),b(Po),t&&o(el),t&&o(Fe),b(Io),t&&o(tl),t&&o(Oo),b(Lo),t&&o(ol),t&&o(Pe),b(Bo),t&&o(nl),t&&o(Y),b(Vo),b(Jo),t&&o(sl),t&&o(je),b(zo),t&&o(rl),t&&o(Wo),b(Xo),t&&o(al),t&&o(Ie),b(Go),t&&o(il),t&&o(Q),b(So),b(Ro),t&&o(dl),t&&o(Oe),b(Ko),t&&o(ll),t&&o(Yo),b(Qo),t&&o(cl),t&&o(Le),b(Ho),t&&o(ml),t&&o(F),b(en),b(on),b(nn),b(sn),b(rn),t&&o(pl),t&&o(Be),b(an),t&&o(fl),t&&o(dn),b(ln),t&&o(ul),t&&o(Ve),b(cn),t&&o(hl),t&&o(P),b(mn),b(fn),b(un),b(hn),b(_n),t&&o(_l),t&&o(qe),b(gn),t&&o(gl),t&&o(Je),b(bn),t&&o(bl),t&&o(ze),b(vn),t&&o(vl),t&&o(We),b(yn),t&&o(yl),t&&o(Xe),b(xn),t&&o(xl),t&&o(H),b(wn),b(Mn),t&&o(wl),t&&o(Ge),b(Dn),t&&o($l),t&&o(Se),b(Tn),t&&o(Ml),t&&o(Ze),b(kn),t&&o(Dl),t&&o(U),b(Nn),b(An),b(Cn),b(Pn),b(jn),b(In),b(On),b(Ln),t&&o(Tl),t&&o(Re),b(Bn),t&&o(kl),t&&o(I),b(Vn),b(Jn),t&&o(Nl),t&&o(Ke),b(zn),t&&o(Ul),t&&o(Wn),b(Xn),t&&o(Al),t&&o(Ye),b(Gn),t&&o(El),t&&o(le),b(Sn),b(Zn),t&&o(Cl),t&&o(Qe),b(Rn),t&&o(Fl),t&&o(Kn),b(Yn),t&&o(Pl),t&&o(He),b(Qn),t&&o(jl),t&&o(q),b(Hn),b(os),t&&o(Il),t&&o(et),b(ns),t&&o(Ol),t&&o(ss),b(rs),t&&o(Ll),t&&o(tt),b(as),t&&o(Bl),t&&o(is),b(ds),t&&o(Vl),t&&o(ot),b(ls),t&&o(ql),t&&o(J),b(cs),b(ms),b(ps),b(fs),b(us),t&&o(Jl),t&&o(nt),b(hs),t&&o(zl),t&&o(E),b(_s),b(gs),b(Ht),b(ys),b(ws),b(to),b($s),b(oo),b(Ms),b(no),t&&o(Wl),t&&o(st),b(Ds),t&&o(Xl),t&&o(rt),b(Ts),b(ks),t&&o(Gl),t&&o(at),b(Ns),t&&o(Sl),t&&o(O),b(Us),t&&o(Zl),t&&o(it),b(Os),t&&o(Rl),t&&o(me),b(Ls),b(Bs),t&&o(Kl),t&&o(dt),b(Vs),t&&o(Yl),t&&o(pe),b(qs),b(Js),t&&o(Ql),t&&o(lt),b(zs),t&&o(Hl),t&&o(z),b(Ws),t&&o(ec),t&&o(ct),b(Ys),t&&o(tc),t&&o(mt),b(Qs),b(Hs),t&&o(oc),t&&o(pt),b(er),t&&o(nc),t&&o(L),b(tr)}}}const m0={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.unet_3d_condition.UNet3DConditionOutput",title:"UNet3DConditionOutput"},{local:"diffusers.UNet3DConditionModel",title:"UNet3DConditionModel"},{local:"diffusers.models.vae.DecoderOutput",title:"DecoderOutput"},{local:"diffusers.models.vq_model.VQEncoderOutput",title:"VQEncoderOutput"},{local:"diffusers.VQModel",title:"VQModel"},{local:"diffusers.models.autoencoder_kl.AutoencoderKLOutput",title:"AutoencoderKLOutput"},{local:"diffusers.AutoencoderKL",title:"AutoencoderKL"},{local:"diffusers.Transformer2DModel",title:"Transformer2DModel"},{local:"diffusers.models.transformer_2d.Transformer2DModelOutput",title:"Transformer2DModelOutput"},{local:"diffusers.models.transformer_temporal.TransformerTemporalModel",title:"TransformerTemporalModel"},{local:"diffusers.models.transformer_temporal.TransformerTemporalModelOutput",title:"Transformer2DModelOutput"},{local:"diffusers.PriorTransformer",title:"PriorTransformer"},{local:"diffusers.models.prior_transformer.PriorTransformerOutput",title:"PriorTransformerOutput"},{local:"diffusers.models.controlnet.ControlNetOutput",title:"ControlNetOutput"},{local:"diffusers.ControlNetModel",title:"ControlNetModel"},{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"},{local:"diffusers.models.controlnet_flax.FlaxControlNetOutput",title:"FlaxControlNetOutput"},{local:"diffusers.FlaxControlNetModel",title:"FlaxControlNetModel"}],title:"Models"};function p0(B){return o0(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class v0 extends Ky{constructor(x){super();Yy(this,x,p0,c0,Qy,{})}}export{v0 as default,m0 as metadata};
