import{S as Pi,i as Ri,s as Gi,e as r,k as f,w as b,t as i,M as Vi,c as n,d as t,m,a,x as y,h as l,b as p,G as e,g as v,y as w,q as M,o as $,B as L,v as Bi,L as it}from"../../chunks/vendor-hf-doc-builder.js";import{T as sr}from"../../chunks/Tip-hf-doc-builder.js";import{D as U}from"../../chunks/Docstring-hf-doc-builder.js";import{C as lt}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as No}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as st}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function qi(E){let d,_,h,c,x,s,u,F,A,P,C;return{c(){d=r("p"),_=i("\u{1F9EA} The "),h=r("code"),c=i("LoaderMixins"),x=i(" are highly experimental and prone to future changes. To use private or "),s=r("a"),u=i("gated"),F=i(" models, log-in with "),A=r("code"),P=i("huggingface-cli login"),C=i("."),this.h()},l(N){d=n(N,"P",{});var T=a(d);_=l(T,"\u{1F9EA} The "),h=n(T,"CODE",{});var ae=a(h);c=l(ae,"LoaderMixins"),ae.forEach(t),x=l(T," are highly experimental and prone to future changes. To use private or "),s=n(T,"A",{href:!0,rel:!0});var se=a(s);u=l(se,"gated"),se.forEach(t),F=l(T," models, log-in with "),A=n(T,"CODE",{});var O=a(A);P=l(O,"huggingface-cli login"),O.forEach(t),C=l(T,"."),T.forEach(t),this.h()},h(){p(s,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),p(s,"rel","nofollow")},m(N,T){v(N,d,T),e(d,_),e(d,h),e(h,c),e(d,x),e(d,s),e(s,u),e(d,F),e(d,A),e(A,P),e(d,C)},d(N){N&&t(d)}}}function Yi(E){let d,_,h,c,x;return c=new lt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNikudG8oJTIyY3VkYSUyMiklMEElMEFwaXBlLmxvYWRfdGV4dHVhbF9pbnZlcnNpb24oJTIyc2QtY29uY2VwdHMtbGlicmFyeSUyRmNhdC10b3klMjIpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyQSUyMCUzQ2NhdC10b3klM0UlMjBiYWNrcGFjayUyMiUwQSUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNENTApLmltYWdlcyU1QjAlNUQlMEFpbWFnZS5zYXZlKCUyMmNhdC1iYWNrcGFjay5wbmclMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline
<span class="hljs-keyword">import</span> torch

model_id = <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to(<span class="hljs-string">&quot;cuda&quot;</span>)

pipe.load_textual_inversion(<span class="hljs-string">&quot;sd-concepts-library/cat-toy&quot;</span>)

prompt = <span class="hljs-string">&quot;A &lt;cat-toy&gt; backpack&quot;</span>

image = pipe(prompt, num_inference_steps=<span class="hljs-number">50</span>).images[<span class="hljs-number">0</span>]
image.save(<span class="hljs-string">&quot;cat-backpack.png&quot;</span>)`}}),{c(){d=r("p"),_=i("To load a textual inversion embedding vector in \u{1F917} Diffusers format:"),h=f(),b(c.$$.fragment)},l(s){d=n(s,"P",{});var u=a(d);_=l(u,"To load a textual inversion embedding vector in \u{1F917} Diffusers format:"),u.forEach(t),h=m(s),y(c.$$.fragment,s)},m(s,u){v(s,d,u),e(d,_),v(s,h,u),w(c,s,u),x=!0},p:it,i(s){x||(M(c.$$.fragment,s),x=!0)},o(s){$(c.$$.fragment,s),x=!1},d(s){s&&t(d),s&&t(h),L(c,s)}}}function zi(E){let d,_,h,c,x;return c=new lt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNikudG8oJTIyY3VkYSUyMiklMEElMEFwaXBlLmxvYWRfdGV4dHVhbF9pbnZlcnNpb24oJTIyLiUyRmNoYXJ0dXJuZXJ2Mi5wdCUyMiUyQyUyMHRva2VuJTNEJTIyY2hhcnR1cm5lcnYyJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMmNoYXJ0dXJuZXJ2MiUyQyUyMG11bHRpcGxlJTIwdmlld3MlMjBvZiUyMHRoZSUyMHNhbWUlMjBjaGFyYWN0ZXIlMjBpbiUyMHRoZSUyMHNhbWUlMjBvdXRmaXQlMkMlMjBhJTIwY2hhcmFjdGVyJTIwdHVybmFyb3VuZCUyMG9mJTIwYSUyMHdvbWFuJTIwd2VhcmluZyUyMGElMjBibGFjayUyMGphY2tldCUyMGFuZCUyMHJlZCUyMHNoaXJ0JTJDJTIwYmVzdCUyMHF1YWxpdHklMkMlMjBpbnRyaWNhdGUlMjBkZXRhaWxzLiUyMiUwQSUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNENTApLmltYWdlcyU1QjAlNUQlMEFpbWFnZS5zYXZlKCUyMmNoYXJhY3Rlci5wbmclMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline
<span class="hljs-keyword">import</span> torch

model_id = <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to(<span class="hljs-string">&quot;cuda&quot;</span>)

pipe.load_textual_inversion(<span class="hljs-string">&quot;./charturnerv2.pt&quot;</span>, token=<span class="hljs-string">&quot;charturnerv2&quot;</span>)

prompt = <span class="hljs-string">&quot;charturnerv2, multiple views of the same character in the same outfit, a character turnaround of a woman wearing a black jacket and red shirt, best quality, intricate details.&quot;</span>

image = pipe(prompt, num_inference_steps=<span class="hljs-number">50</span>).images[<span class="hljs-number">0</span>]
image.save(<span class="hljs-string">&quot;character.png&quot;</span>)`}}),{c(){d=r("p"),_=i("locally:"),h=f(),b(c.$$.fragment)},l(s){d=n(s,"P",{});var u=a(d);_=l(u,"locally:"),u.forEach(t),h=m(s),y(c.$$.fragment,s)},m(s,u){v(s,d,u),e(d,_),v(s,h,u),w(c,s,u),x=!0},p:it,i(s){x||(M(c.$$.fragment,s),x=!0)},o(s){$(c.$$.fragment,s),x=!1},d(s){s&&t(d),s&&t(h),L(c,s)}}}function Oi(E){let d,_;return{c(){d=r("p"),_=i("This is an experimental API.")},l(h){d=n(h,"P",{});var c=a(d);_=l(c,"This is an experimental API."),c.forEach(t)},m(h,c){v(h,d,c),e(d,_)},d(h){h&&t(d)}}}function Hi(E){let d,_,h,c,x;return{c(){d=r("p"),_=i("We support loading A1111 formatted LoRA checkpoints in a limited capacity."),h=f(),c=r("p"),x=i("This function is experimental and might change in the future.")},l(s){d=n(s,"P",{});var u=a(d);_=l(u,"We support loading A1111 formatted LoRA checkpoints in a limited capacity."),u.forEach(t),h=m(s),c=n(s,"P",{});var F=a(c);x=l(F,"This function is experimental and might change in the future."),F.forEach(t)},m(s,u){v(s,d,u),e(d,_),v(s,h,u),v(s,c,u),e(c,x)},d(s){s&&t(d),s&&t(h),s&&t(c)}}}function Xi(E){let d,_;return{c(){d=r("p"),_=i("This is an experimental API.")},l(h){d=n(h,"P",{});var c=a(d);_=l(c,"This is an experimental API."),c.forEach(t)},m(h,c){v(h,d,c),e(d,_)},d(h){h&&t(d)}}}function Qi(E){let d,_,h,c,x;return c=new lt({props:{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">&gt;&gt;&gt; </span>...'}}),{c(){d=r("p"),_=i("Examples:"),h=f(),b(c.$$.fragment)},l(s){d=n(s,"P",{});var u=a(d);_=l(u,"Examples:"),u.forEach(t),h=m(s),y(c.$$.fragment,s)},m(s,u){v(s,d,u),e(d,_),v(s,h,u),w(c,s,u),x=!0},p:it,i(s){x||(M(c.$$.fragment,s),x=!0)},o(s){$(c.$$.fragment,s),x=!1},d(s){s&&t(d),s&&t(h),L(c,s)}}}function Ki(E){let d,_,h,c,x;return c=new lt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQXBpcGVsaW5lJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9zaW5nbGVfZmlsZSglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGV2Fycmlvck1hbWE3NzclMkZPcmFuZ2VNaXhzJTJGYmxvYiUyRm1haW4lMkZNb2RlbHMlMkZBYnlzc09yYW5nZU1peCUyRkFieXNzT3JhbmdlTWl4LnNhZmV0ZW5zb3JzJTIyJTBBKSUwQSUwQSUyMyUyMERvd25sb2FkJTIwcGlwZWxpbmUlMjBmcm9tJTIwbG9jYWwlMjBmaWxlJTBBJTIzJTIwZmlsZSUyMGlzJTIwZG93bmxvYWRlZCUyMHVuZGVyJTIwLiUyRnYxLTUtcHJ1bmVkLWVtYW9ubHkuY2twdCUwQXBpcGVsaW5lJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9zaW5nbGVfZmlsZSglMjIuJTJGdjEtNS1wcnVuZWQtZW1hb25seSUyMiklMEElMEElMjMlMjBFbmFibGUlMjBmbG9hdDE2JTIwYW5kJTIwbW92ZSUyMHRvJTIwR1BVJTBBcGlwZWxpbmUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25QaXBlbGluZS5mcm9tX3NpbmdsZV9maWxlKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRmJsb2IlMkZtYWluJTJGdjEtNS1wcnVuZWQtZW1hb25seS5ja3B0JTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBKSUwQXBpcGVsaW5lLnRvKCUyMmN1ZGElMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download pipeline from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_single_file(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/WarriorMama777/OrangeMixs/blob/main/Models/AbyssOrangeMix/AbyssOrangeMix.safetensors&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download pipeline from local file</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># file is downloaded under ./v1-5-pruned-emaonly.ckpt</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_single_file(<span class="hljs-string">&quot;./v1-5-pruned-emaonly&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Enable float16 and move to GPU</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = StableDiffusionPipeline.from_single_file(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.ckpt&quot;</span>,
<span class="hljs-meta">... </span>    torch_dtype=torch.float16,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.to(<span class="hljs-string">&quot;cuda&quot;</span>)`}}),{c(){d=r("p"),_=i("Examples:"),h=f(),b(c.$$.fragment)},l(s){d=n(s,"P",{});var u=a(d);_=l(u,"Examples:"),u.forEach(t),h=m(s),y(c.$$.fragment,s)},m(s,u){v(s,d,u),e(d,_),v(s,h,u),w(c,s,u),x=!0},p:it,i(s){x||(M(c.$$.fragment,s),x=!0)},o(s){$(c.$$.fragment,s),x=!1},d(s){s&&t(d),s&&t(h),L(c,s)}}}function el(E){let d,_,h,c,x;return c=new lt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvbkNvbnRyb2xuZXRQaXBlbGluZSUyQyUyMENvbnRyb2xOZXRNb2RlbCUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZsbGx5YXN2aWVsJTJGQ29udHJvbE5ldC12MS0xJTJGYmxvYiUyRm1haW4lMkZjb250cm9sX3YxMXBfc2QxNV9jYW5ueS5wdGglMjIlMjAlMjAlMjMlMjBjYW4lMjBhbHNvJTIwYmUlMjBhJTIwbG9jYWwlMjBwYXRoJTBBbW9kZWwlMjAlM0QlMjBDb250cm9sTmV0TW9kZWwuZnJvbV9zaW5nbGVfZmlsZSh1cmwpJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGYmxvYiUyRm1haW4lMkZ2MS01LXBydW5lZC5zYWZldGVuc29ycyUyMiUyMCUyMCUyMyUyMGNhbiUyMGFsc28lMjBiZSUyMGElMjBsb2NhbCUyMHBhdGglMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uQ29udHJvbG5ldFBpcGVsaW5lLmZyb21fc2luZ2xlX2ZpbGUodXJsJTJDJTIwY29udHJvbG5ldCUzRGNvbnRyb2xuZXQp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionControlnetPipeline, ControlNetModel

url = <span class="hljs-string">&quot;https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_canny.pth&quot;</span>  <span class="hljs-comment"># can also be a local path</span>
model = ControlNetModel.from_single_file(url)

url = <span class="hljs-string">&quot;https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned.safetensors&quot;</span>  <span class="hljs-comment"># can also be a local path</span>
pipe = StableDiffusionControlnetPipeline.from_single_file(url, controlnet=controlnet)`}}),{c(){d=r("p"),_=i("Examples:"),h=f(),b(c.$$.fragment)},l(s){d=n(s,"P",{});var u=a(d);_=l(u,"Examples:"),u.forEach(t),h=m(s),y(c.$$.fragment,s)},m(s,u){v(s,d,u),e(d,_),v(s,h,u),w(c,s,u),x=!0},p:it,i(s){x||(M(c.$$.fragment,s),x=!0)},o(s){$(c.$$.fragment,s),x=!1},d(s){s&&t(d),s&&t(h),L(c,s)}}}function ol(E){let d,_,h,c,x,s,u,F,A,P,C;return{c(){d=r("p"),_=i("Make sure to pass both "),h=r("code"),c=i("image_size"),x=i(" and "),s=r("code"),u=i("scaling_factor"),F=i(" to "),A=r("code"),P=i("from_single_file()"),C=i(` if you want to load
a VAE that does accompany a stable diffusion model of v2 or higher or SDXL.`)},l(N){d=n(N,"P",{});var T=a(d);_=l(T,"Make sure to pass both "),h=n(T,"CODE",{});var ae=a(h);c=l(ae,"image_size"),ae.forEach(t),x=l(T," and "),s=n(T,"CODE",{});var se=a(s);u=l(se,"scaling_factor"),se.forEach(t),F=l(T," to "),A=n(T,"CODE",{});var O=a(A);P=l(O,"from_single_file()"),O.forEach(t),C=l(T,` if you want to load
a VAE that does accompany a stable diffusion model of v2 or higher or SDXL.`),T.forEach(t)},m(N,T){v(N,d,T),e(d,_),e(d,h),e(h,c),e(d,x),e(d,s),e(s,u),e(d,F),e(d,A),e(A,P),e(d,C)},d(N){N&&t(d)}}}function tl(E){let d,_,h,c,x;return c=new lt({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9lbmNvZGVyS0wlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc3RhYmlsaXR5YWklMkZzZC12YWUtZnQtbXNlLW9yaWdpbmFsJTJGYmxvYiUyRm1haW4lMkZ2YWUtZnQtbXNlLTg0MDAwMC1lbWEtcHJ1bmVkLnNhZmV0ZW5zb3JzJTIyJTIwJTIwJTIzJTIwY2FuJTIwYWxzbyUyMGJlJTIwbG9jYWwlMjBmaWxlJTBBbW9kZWwlMjAlM0QlMjBBdXRvZW5jb2RlcktMLmZyb21fc2luZ2xlX2ZpbGUodXJsKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoencoderKL

url = <span class="hljs-string">&quot;https://huggingface.co/stabilityai/sd-vae-ft-mse-original/blob/main/vae-ft-mse-840000-ema-pruned.safetensors&quot;</span>  <span class="hljs-comment"># can also be local file</span>
model = AutoencoderKL.from_single_file(url)`}}),{c(){d=r("p"),_=i("Examples:"),h=f(),b(c.$$.fragment)},l(s){d=n(s,"P",{});var u=a(d);_=l(u,"Examples:"),u.forEach(t),h=m(s),y(c.$$.fragment,s)},m(s,u){v(s,d,u),e(d,_),v(s,h,u),w(c,s,u),x=!0},p:it,i(s){x||(M(c.$$.fragment,s),x=!0)},o(s){$(c.$$.fragment,s),x=!1},d(s){s&&t(d),s&&t(h),L(c,s)}}}function rl(E){let d,_,h,c,x,s,u,F,A,P,C,N,T,ae,se,O,ye,ir,ie,we,dt,Oe,Wr,ct,jr,lr,B,He,Pr,Me,Xe,Rr,q,Gr,Zo,Vr,Br,Qe,ft,qr,Yr,mt,zr,Or,Hr,$e,Ke,Xr,eo,Qr,So,Kr,en,dr,le,Le,pt,oo,on,ht,tn,cr,Z,to,rn,ut,nn,an,J,ro,sn,no,ln,Wo,dn,cn,fn,gt,mn,pn,Te,hn,ao,un,so,gn,_n,vn,ke,xn,Ee,io,bn,_t,yn,fr,de,Ue,vt,lo,wn,xt,Mn,mr,k,co,$n,ce,Ln,jo,Tn,kn,fo,bt,En,Un,In,H,mo,Fn,yt,Cn,Jn,Ie,Dn,Fe,po,An,Ce,Nn,wt,Zn,Sn,Mt,Wn,jn,Je,ho,Pn,fe,Rn,$t,Gn,Vn,Lt,Bn,qn,Yn,D,uo,zn,Y,On,Tt,Hn,Xn,kt,Qn,Kn,Et,ea,oa,ta,go,ra,Ut,na,aa,sa,_o,ia,Po,la,da,ca,me,fa,Ro,ma,pa,It,ha,ua,ga,pe,_a,Go,va,xa,Ft,ba,ya,wa,X,vo,Ma,Ct,$a,La,De,Ta,Ae,xo,ka,Jt,Ea,Ua,Q,bo,Ia,yo,Fa,wo,Dt,Ca,Ja,Da,Ne,Aa,K,Mo,Na,At,Za,Sa,Ze,pr,he,Se,Nt,$o,Wa,Zt,ja,hr,z,Lo,Pa,ue,Ra,St,Ga,Va,Vo,Ba,qa,Ya,ee,To,za,S,Oa,Bo,Ha,Xa,Wt,Qa,Ka,jt,es,os,Pt,ts,rs,ns,We,ur,ge,je,Rt,ko,as,Gt,ss,gr,_e,Eo,is,oe,Uo,ls,W,ds,qo,cs,fs,Vt,ms,ps,Bt,hs,us,qt,gs,_s,vs,Pe,_r,ve,Re,Yt,Io,xs,zt,bs,vr,xe,Fo,ys,R,Co,ws,j,Ms,Yo,$s,Ls,Ot,Ts,ks,Ht,Es,Us,Xt,Is,Fs,Cs,Ge,Js,Ve,xr;return s=new No({}),ye=new sr({props:{warning:!0,$$slots:{default:[qi]},$$scope:{ctx:E}}}),Oe=new No({}),He=new U({props:{name:"class diffusers.loaders.UNet2DConditionLoadersMixin",anchor:"diffusers.loaders.UNet2DConditionLoadersMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L232"}}),Xe=new U({props:{name:"load_attn_procs",anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the model id (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on
the Hub.</li>
<li>A path to a directory (for example <code>./my_model_directory</code>) containing the model weights saved
with <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li>
<li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state
dict</a>.</li>
</ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.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.loaders.UNet2DConditionLoadersMixin.load_attn_procs.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.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, for example, <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.loaders.UNet2DConditionLoadersMixin.load_attn_procs.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.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>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.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, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L236"}}),Ke=new U({props:{name:"save_attn_procs",anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.save_attn_procs",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.save_attn_procs.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save an attention processor to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.save_attn_procs.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 during distributed training and you
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.loaders.UNet2DConditionLoadersMixin.save_attn_procs.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.save_attn_procs.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L502"}}),oo=new No({}),to=new U({props:{name:"class diffusers.loaders.TextualInversionLoaderMixin",anchor:"diffusers.loaders.TextualInversionLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L594"}}),ro=new U({props:{name:"load_textual_inversion",anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, typing.List[str], typing.Dict[str, torch.Tensor], typing.List[typing.Dict[str, torch.Tensor]]]"},{name:"token",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code> or <code>List[str or os.PathLike]</code> or <code>Dict</code> or <code>List[Dict]</code>) &#x2014;
Can be either one of the following or a list of them:</p>
<ul>
<li>A string, the <em>model id</em> (for example <code>sd-concepts-library/low-poly-hd-logos-icons</code>) of a
pretrained model hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_text_inversion_directory/</code>) containing the textual
inversion weights.</li>
<li>A path to a <em>file</em> (for example <code>./my_text_inversions.pt</code>) containing textual inversion weights.</li>
<li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state
dict</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.token",description:`<strong>token</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Override the token to use for the textual inversion weights. If <code>pretrained_model_name_or_path</code> is a
list, then <code>token</code> must also be a list of equal length.`,name:"token"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of a custom weight file. This should be used when:</p>
<ul>
<li>The saved textual inversion file is in &#x1F917; Diffusers format, but was saved under a specific weight
name such as <code>text_inv.bin</code>.</li>
<li>The saved textual inversion file is in the Automatic1111 format.</li>
</ul>`,name:"weight_name"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.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.loaders.TextualInversionLoaderMixin.load_textual_inversion.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.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, for example, <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.loaders.TextualInversionLoaderMixin.load_textual_inversion.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.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>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.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, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L656"}}),Te=new st({props:{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.example",$$slots:{default:[Yi]},$$scope:{ctx:E}}}),ke=new st({props:{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.example-2",$$slots:{default:[zi]},$$scope:{ctx:E}}}),io=new U({props:{name:"maybe_convert_prompt",anchor:"diffusers.loaders.TextualInversionLoaderMixin.maybe_convert_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"tokenizer",val:": PreTrainedTokenizer"}],parametersDescription:[{anchor:"diffusers.loaders.TextualInversionLoaderMixin.maybe_convert_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or list of <code>str</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.maybe_convert_prompt.tokenizer",description:`<strong>tokenizer</strong> (<code>PreTrainedTokenizer</code>) &#x2014;
The tokenizer responsible for encoding the prompt into input tokens.`,name:"tokenizer"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L599",returnDescription:`
<p>The converted prompt</p>
`,returnType:`
<p><code>str</code> or list of <code>str</code></p>
`}}),lo=new No({}),co=new U({props:{name:"class diffusers.loaders.LoraLoaderMixin",anchor:"diffusers.loaders.LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L920"}}),mo=new U({props:{name:"fuse_lora",anchor:"diffusers.loaders.LoraLoaderMixin.fuse_lora",parameters:[{name:"fuse_unet",val:": bool = True"},{name:"fuse_text_encoder",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.loaders.LoraLoaderMixin.fuse_lora.fuse_unet",description:"<strong>fuse_unet</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to fuse the UNet LoRA parameters.",name:"fuse_unet"},{anchor:"diffusers.loaders.LoraLoaderMixin.fuse_lora.fuse_text_encoder",description:`<strong>fuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to fuse the text encoder LoRA parameters. If the text encoder wasn&#x2019;t monkey-patched with the
LoRA parameters then it won&#x2019;t have any effect.`,name:"fuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1810"}}),Ie=new sr({props:{warning:!0,$$slots:{default:[Oi]},$$scope:{ctx:E}}}),po=new U({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"}],parametersDescription:[{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
See <code>LoRALinearLayer</code> for more details.`,name:"network_alphas"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1290"}}),ho=new U({props:{name:"load_lora_into_unet",anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_unet",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"unet",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_unet.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
See <code>LoRALinearLayer</code> for more details.`,name:"network_alphas"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_into_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) &#x2014;
The UNet model to load the LoRA layers into.`,name:"unet"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1248"}}),uo=new U({props:{name:"load_lora_weights",anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L928"}}),vo=new U({props:{name:"lora_state_dict",anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on
the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved
with <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li>
<li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state
dict</a>.</li>
</ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.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.loaders.LoraLoaderMixin.lora_state_dict.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.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, for example, <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.loaders.LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.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>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.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, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.LoraLoaderMixin.lora_state_dict.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L958"}}),De=new sr({props:{warning:!0,$$slots:{default:[Hi]},$$scope:{ctx:E}}}),xo=new U({props:{name:"save_lora_weights",anchor:"diffusers.loaders.LoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"unet_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.loaders.LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.LoraLoaderMixin.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.LoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.LoraLoaderMixin.save_lora_weights.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 during distributed training and you
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.loaders.LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1534"}}),bo=new U({props:{name:"unfuse_lora",anchor:"diffusers.loaders.LoraLoaderMixin.unfuse_lora",parameters:[{name:"unfuse_unet",val:": bool = True"},{name:"unfuse_text_encoder",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.loaders.LoraLoaderMixin.unfuse_lora.unfuse_unet",description:"<strong>unfuse_unet</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_unet"},{anchor:"diffusers.loaders.LoraLoaderMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn&#x2019;t monkey-patched with the
LoRA parameters then it won&#x2019;t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1848"}}),Ne=new sr({props:{warning:!0,$$slots:{default:[Xi]},$$scope:{ctx:E}}}),Mo=new U({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.LoraLoaderMixin.unload_lora_weights",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1791"}}),Ze=new st({props:{anchor:"diffusers.loaders.LoraLoaderMixin.unload_lora_weights.example",$$slots:{default:[Qi]},$$scope:{ctx:E}}}),$o=new No({}),Lo=new U({props:{name:"class diffusers.loaders.FromSingleFileMixin",anchor:"diffusers.loaders.FromSingleFileMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1888"}}),To=new U({props:{name:"from_single_file",anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file",parameters:[{name:"pretrained_model_link_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.pretrained_model_link_or_path",description:`<strong>pretrained_model_link_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:<ul>
<li>A link to the <code>.ckpt</code> file (for example
<code>&quot;https://huggingface.co/&lt;repo_id&gt;/blob/main/&lt;path_to_file&gt;.ckpt&quot;</code>) on the Hub.</li>
<li>A path to a <em>file</em> containing all pipeline weights.</li>
</ul>`,name:"pretrained_model_link_or_path"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.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 with another dtype. If <code>&quot;auto&quot;</code> is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.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.loaders.FromSingleFileMixin.from_single_file.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.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, for example, <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.loaders.FromSingleFileMixin.from_single_file.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.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>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.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, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.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 safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.extract_ema",description:`<strong>extract_ema</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to extract the EMA weights or not. Pass <code>True</code> to extract the EMA weights which usually yield
higher quality images for inference. Non-EMA weights are usually better for continuing finetuning.`,name:"extract_ema"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.upcast_attention",description:`<strong>upcast_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether the attention computation should always be upcasted.`,name:"upcast_attention"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The image size the model was trained on. Use 512 for all Stable Diffusion v1 models and the Stable
Diffusion v2 base model. Use 768 for Stable Diffusion v2.`,name:"image_size"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.prediction_type",description:`<strong>prediction_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The prediction type the model was trained on. Use <code>&apos;epsilon&apos;</code> for all Stable Diffusion v1 models and
the Stable Diffusion v2 base model. Use <code>&apos;v_prediction&apos;</code> for Stable Diffusion v2.`,name:"prediction_type"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.num_in_channels",description:`<strong>num_in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The number of input channels. If <code>None</code>, it is automatically inferred.`,name:"num_in_channels"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.scheduler_type",description:`<strong>scheduler_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pndm&quot;</code>) &#x2014;
Type of scheduler to use. Should be one of <code>[&quot;pndm&quot;, &quot;lms&quot;, &quot;heun&quot;, &quot;euler&quot;, &quot;euler-ancestral&quot;, &quot;dpm&quot;, &quot;ddim&quot;]</code>.`,name:"scheduler_type"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.load_safety_checker",description:`<strong>load_safety_checker</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to load the safety checker or not.`,name:"load_safety_checker"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIPTextModel</a>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
An instance of <code>CLIPTextModel</code> to use, specifically the
<a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a> variant. If this
parameter is <code>None</code>, the function loads a new instance of <code>CLIPTextModel</code> by itself if needed.`,name:"text_encoder"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.vae",description:`<strong>vae</strong> (<code>AutoencoderKL</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations. If
this parameter is <code>None</code>, the function will load a new instance of [CLIP] by itself, if needed.`,name:"vae"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.tokenizer",description:`<strong>tokenizer</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
An instance of <code>CLIPTokenizer</code> to use. If this parameter is <code>None</code>, the function loads a new instance
of <code>CLIPTokenizer</code> by itself if needed.`,name:"tokenizer"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.original_config_file",description:`<strong>original_config_file</strong> (<code>str</code>) &#x2014;
Path to <code>.yaml</code> config file corresponding to the original architecture. If <code>None</code>, will be
automatically inferred by looking for a key that only exists in SD2.0 models.`,name:"original_config_file"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (for example the pipeline components of the
specific pipeline class). The overwritten components are directly passed to the pipelines <code>__init__</code>
method. See example below for more information.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L1899"}}),We=new st({props:{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.example",$$slots:{default:[Ki]},$$scope:{ctx:E}}}),ko=new No({}),Eo=new U({props:{name:"class diffusers.loaders.FromOriginalControlnetMixin",anchor:"diffusers.loaders.FromOriginalControlnetMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L2319"}}),Uo=new U({props:{name:"from_single_file",anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file",parameters:[{name:"pretrained_model_link_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.pretrained_model_link_or_path",description:`<strong>pretrained_model_link_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:<ul>
<li>A link to the <code>.ckpt</code> file (for example
<code>&quot;https://huggingface.co/&lt;repo_id&gt;/blob/main/&lt;path_to_file&gt;.ckpt&quot;</code>) on the Hub.</li>
<li>A path to a <em>file</em> containing all pipeline weights.</li>
</ul>`,name:"pretrained_model_link_or_path"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.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 with another dtype. If <code>&quot;auto&quot;</code> is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.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.loaders.FromOriginalControlnetMixin.from_single_file.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.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, for example, <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.loaders.FromOriginalControlnetMixin.from_single_file.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to True, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.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>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.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, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.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 safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The image size the model was trained on. Use 512 for all Stable Diffusion v1 models and the Stable
Diffusion v2 base model. Use 768 for Stable Diffusion v2.`,name:"image_size"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.upcast_attention",description:`<strong>upcast_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether the attention computation should always be upcasted.`,name:"upcast_attention"},{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (for example the pipeline components of the
specific pipeline class). The overwritten components are directly passed to the pipelines <code>__init__</code>
method. See example below for more information.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L2320"}}),Pe=new st({props:{anchor:"diffusers.loaders.FromOriginalControlnetMixin.from_single_file.example",$$slots:{default:[el]},$$scope:{ctx:E}}}),Io=new No({}),Fo=new U({props:{name:"class diffusers.loaders.FromOriginalVAEMixin",anchor:"diffusers.loaders.FromOriginalVAEMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L2126"}}),Co=new U({props:{name:"from_single_file",anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file",parameters:[{name:"pretrained_model_link_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.pretrained_model_link_or_path",description:`<strong>pretrained_model_link_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:<ul>
<li>A link to the <code>.ckpt</code> file (for example
<code>&quot;https://huggingface.co/&lt;repo_id&gt;/blob/main/&lt;path_to_file&gt;.ckpt&quot;</code>) on the Hub.</li>
<li>A path to a <em>file</em> containing all pipeline weights.</li>
</ul>`,name:"pretrained_model_link_or_path"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.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 with another dtype. If <code>&quot;auto&quot;</code> is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.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.loaders.FromOriginalVAEMixin.from_single_file.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.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, for example, <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.loaders.FromOriginalVAEMixin.from_single_file.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to True, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.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>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.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, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The image size the model was trained on. Use 512 for all Stable Diffusion v1 models and the Stable
Diffusion v2 base model. Use 768 for Stable Diffusion v2.`,name:"image_size"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.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 safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.upcast_attention",description:`<strong>upcast_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether the attention computation should always be upcasted.`,name:"upcast_attention"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.scaling_factor",description:`<strong>scaling_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.18215) &#x2014;
The component-wise standard deviation of the trained latent space computed using the first batch of the
training set. This is used to scale the latent space to have unit variance when training the diffusion
model. The latents are scaled with the formula <code>z = z * scaling_factor</code> before being passed to the
diffusion model. When decoding, the latents are scaled back to the original scale with the formula: <code>z = 1 / scaling_factor * z</code>. For more details, refer to sections 4.3.2 and D.1 of the <a href="https://arxiv.org/abs/2112.10752" rel="nofollow">High-Resolution
Image Synthesis with Latent Diffusion Models</a> paper.`,name:"scaling_factor"},{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (for example the pipeline components of the
specific pipeline class). The overwritten components are directly passed to the pipelines <code>__init__</code>
method. See example below for more information.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py#L2127"}}),Ge=new sr({props:{warning:!0,$$slots:{default:[ol]},$$scope:{ctx:E}}}),Ve=new st({props:{anchor:"diffusers.loaders.FromOriginalVAEMixin.from_single_file.example",$$slots:{default:[tl]},$$scope:{ctx:E}}}),{c(){d=r("meta"),_=f(),h=r("h1"),c=r("a"),x=r("span"),b(s.$$.fragment),u=f(),F=r("span"),A=i("Loaders"),P=f(),C=r("p"),N=i("Adapters (textual inversion, LoRA, hypernetworks) allow you to modify a diffusion model to generate images in a specific style without training or finetuning the entire model. The adapter weights are typically only a tiny fraction of the pretrained model\u2019s which making them very portable. \u{1F917} Diffusers provides an easy-to-use "),T=r("code"),ae=i("LoaderMixin"),se=i(" API to load adapter weights."),O=f(),b(ye.$$.fragment),ir=f(),ie=r("h2"),we=r("a"),dt=r("span"),b(Oe.$$.fragment),Wr=f(),ct=r("span"),jr=i("UNet2DConditionLoadersMixin"),lr=f(),B=r("div"),b(He.$$.fragment),Pr=f(),Me=r("div"),b(Xe.$$.fragment),Rr=f(),q=r("p"),Gr=i("Load pretrained attention processor layers into "),Zo=r("a"),Vr=i("UNet2DConditionModel"),Br=i(`. Attention processor layers have to be
defined in
`),Qe=r("a"),ft=r("code"),qr=i("attention_processor.py"),Yr=i(`
and be a `),mt=r("code"),zr=i("torch.nn.Module"),Or=i(" class."),Hr=f(),$e=r("div"),b(Ke.$$.fragment),Xr=f(),eo=r("p"),Qr=i(`Save an attention processor to a directory so that it can be reloaded using the
`),So=r("a"),Kr=i("load_attn_procs()"),en=i(" method."),dr=f(),le=r("h2"),Le=r("a"),pt=r("span"),b(oo.$$.fragment),on=f(),ht=r("span"),tn=i("TextualInversionLoaderMixin"),cr=f(),Z=r("div"),b(to.$$.fragment),rn=f(),ut=r("p"),nn=i("Load textual inversion tokens and embeddings to the tokenizer and text encoder."),an=f(),J=r("div"),b(ro.$$.fragment),sn=f(),no=r("p"),ln=i("Load textual inversion embeddings into the text encoder of "),Wo=r("a"),dn=i("StableDiffusionPipeline"),cn=i(` (both \u{1F917} Diffusers and
Automatic1111 formats are supported).`),fn=f(),gt=r("p"),mn=i("Example:"),pn=f(),b(Te.$$.fragment),hn=f(),ao=r("p"),un=i(`To load a textual inversion embedding vector in Automatic1111 format, make sure to download the vector first
(for example from `),so=r("a"),gn=i("civitAI"),_n=i(") and then load the vector"),vn=f(),b(ke.$$.fragment),xn=f(),Ee=r("div"),b(io.$$.fragment),bn=f(),_t=r("p"),yn=i(`Processes prompts that include a special token corresponding to a multi-vector textual inversion embedding to
be replaced with multiple special tokens each corresponding to one of the vectors. If the prompt has no textual
inversion token or if the textual inversion token is a single vector, the input prompt is returned.`),fr=f(),de=r("h2"),Ue=r("a"),vt=r("span"),b(lo.$$.fragment),wn=f(),xt=r("span"),Mn=i("LoraLoaderMixin"),mr=f(),k=r("div"),b(co.$$.fragment),$n=f(),ce=r("p"),Ln=i("Load LoRA layers into "),jo=r("a"),Tn=i("UNet2DConditionModel"),kn=i(` and
`),fo=r("a"),bt=r("code"),En=i("CLIPTextModel"),Un=i("."),In=f(),H=r("div"),b(mo.$$.fragment),Fn=f(),yt=r("p"),Cn=i("Fuses the LoRA parameters into the original parameters of the corresponding blocks."),Jn=f(),b(Ie.$$.fragment),Dn=f(),Fe=r("div"),b(po.$$.fragment),An=f(),Ce=r("p"),Nn=i("This will load the LoRA layers specified in "),wt=r("code"),Zn=i("state_dict"),Sn=i(" into "),Mt=r("code"),Wn=i("text_encoder"),jn=f(),Je=r("div"),b(ho.$$.fragment),Pn=f(),fe=r("p"),Rn=i("This will load the LoRA layers specified in "),$t=r("code"),Gn=i("state_dict"),Vn=i(" into "),Lt=r("code"),Bn=i("unet"),qn=i("."),Yn=f(),D=r("div"),b(uo.$$.fragment),zn=f(),Y=r("p"),On=i("Load LoRA weights specified in "),Tt=r("code"),Hn=i("pretrained_model_name_or_path_or_dict"),Xn=i(" into "),kt=r("code"),Qn=i("self.unet"),Kn=i(` and
`),Et=r("code"),ea=i("self.text_encoder"),oa=i("."),ta=f(),go=r("p"),ra=i("All kwargs are forwarded to "),Ut=r("code"),na=i("self.lora_state_dict"),aa=i("."),sa=f(),_o=r("p"),ia=i("See "),Po=r("a"),la=i("lora_state_dict()"),da=i(" for more details on how the state dict is loaded."),ca=f(),me=r("p"),fa=i("See "),Ro=r("a"),ma=i("load_lora_into_unet()"),pa=i(` for more details on how the state dict is loaded into
`),It=r("code"),ha=i("self.unet"),ua=i("."),ga=f(),pe=r("p"),_a=i("See "),Go=r("a"),va=i("load_lora_into_text_encoder()"),xa=i(` for more details on how the state dict is loaded
into `),Ft=r("code"),ba=i("self.text_encoder"),ya=i("."),wa=f(),X=r("div"),b(vo.$$.fragment),Ma=f(),Ct=r("p"),$a=i("Return state dict for lora weights and the network alphas."),La=f(),b(De.$$.fragment),Ta=f(),Ae=r("div"),b(xo.$$.fragment),ka=f(),Jt=r("p"),Ea=i("Save the LoRA parameters corresponding to the UNet and text encoder."),Ua=f(),Q=r("div"),b(bo.$$.fragment),Ia=f(),yo=r("p"),Fa=i(`Reverses the effect of
`),wo=r("a"),Dt=r("code"),Ca=i("pipe.fuse_lora()"),Ja=i("."),Da=f(),b(Ne.$$.fragment),Aa=f(),K=r("div"),b(Mo.$$.fragment),Na=f(),At=r("p"),Za=i("Unloads the LoRA parameters."),Sa=f(),b(Ze.$$.fragment),pr=f(),he=r("h2"),Se=r("a"),Nt=r("span"),b($o.$$.fragment),Wa=f(),Zt=r("span"),ja=i("FromSingleFileMixin"),hr=f(),z=r("div"),b(Lo.$$.fragment),Pa=f(),ue=r("p"),Ra=i("Load model weights saved in the "),St=r("code"),Ga=i(".ckpt"),Va=i(" format into a "),Vo=r("a"),Ba=i("DiffusionPipeline"),qa=i("."),Ya=f(),ee=r("div"),b(To.$$.fragment),za=f(),S=r("p"),Oa=i("Instantiate a "),Bo=r("a"),Ha=i("DiffusionPipeline"),Xa=i(" from pretrained pipeline weights saved in the "),Wt=r("code"),Qa=i(".ckpt"),Ka=i(" or "),jt=r("code"),es=i(".safetensors"),os=i(`
format. The pipeline is set in evaluation mode (`),Pt=r("code"),ts=i("model.eval()"),rs=i(") by default."),ns=f(),b(We.$$.fragment),ur=f(),ge=r("h2"),je=r("a"),Rt=r("span"),b(ko.$$.fragment),as=f(),Gt=r("span"),ss=i("FromOriginalControlnetMixin"),gr=f(),_e=r("div"),b(Eo.$$.fragment),is=f(),oe=r("div"),b(Uo.$$.fragment),ls=f(),W=r("p"),ds=i("Instantiate a "),qo=r("a"),cs=i("ControlNetModel"),fs=i(" from pretrained controlnet weights saved in the original "),Vt=r("code"),ms=i(".ckpt"),ps=i(` or
`),Bt=r("code"),hs=i(".safetensors"),us=i(" format. The pipeline is set in evaluation mode ("),qt=r("code"),gs=i("model.eval()"),_s=i(") by default."),vs=f(),b(Pe.$$.fragment),_r=f(),ve=r("h2"),Re=r("a"),Yt=r("span"),b(Io.$$.fragment),xs=f(),zt=r("span"),bs=i("FromOriginalVAEMixin"),vr=f(),xe=r("div"),b(Fo.$$.fragment),ys=f(),R=r("div"),b(Co.$$.fragment),ws=f(),j=r("p"),Ms=i("Instantiate a "),Yo=r("a"),$s=i("AutoencoderKL"),Ls=i(" from pretrained controlnet weights saved in the original "),Ot=r("code"),Ts=i(".ckpt"),ks=i(` or
`),Ht=r("code"),Es=i(".safetensors"),Us=i(" format. The pipeline is format. The pipeline is set in evaluation mode ("),Xt=r("code"),Is=i("model.eval()"),Fs=i(`) by
default.`),Cs=f(),b(Ge.$$.fragment),Js=f(),b(Ve.$$.fragment),this.h()},l(o){const g=Vi('[data-svelte="svelte-1phssyn"]',document.head);d=n(g,"META",{name:!0,content:!0}),g.forEach(t),_=m(o),h=n(o,"H1",{class:!0});var Jo=a(h);c=n(Jo,"A",{id:!0,class:!0,href:!0});var Qt=a(c);x=n(Qt,"SPAN",{});var Kt=a(x);y(s.$$.fragment,Kt),Kt.forEach(t),Qt.forEach(t),u=m(Jo),F=n(Jo,"SPAN",{});var er=a(F);A=l(er,"Loaders"),er.forEach(t),Jo.forEach(t),P=m(o),C=n(o,"P",{});var Do=a(C);N=l(Do,"Adapters (textual inversion, LoRA, hypernetworks) allow you to modify a diffusion model to generate images in a specific style without training or finetuning the entire model. The adapter weights are typically only a tiny fraction of the pretrained model\u2019s which making them very portable. \u{1F917} Diffusers provides an easy-to-use "),T=n(Do,"CODE",{});var or=a(T);ae=l(or,"LoaderMixin"),or.forEach(t),se=l(Do," API to load adapter weights."),Do.forEach(t),O=m(o),y(ye.$$.fragment,o),ir=m(o),ie=n(o,"H2",{class:!0});var Ao=a(ie);we=n(Ao,"A",{id:!0,class:!0,href:!0});var tr=a(we);dt=n(tr,"SPAN",{});var rr=a(dt);y(Oe.$$.fragment,rr),rr.forEach(t),tr.forEach(t),Wr=m(Ao),ct=n(Ao,"SPAN",{});var nr=a(ct);jr=l(nr,"UNet2DConditionLoadersMixin"),nr.forEach(t),Ao.forEach(t),lr=m(o),B=n(o,"DIV",{class:!0});var be=a(B);y(He.$$.fragment,be),Pr=m(be),Me=n(be,"DIV",{class:!0});var br=a(Me);y(Xe.$$.fragment,br),Rr=m(br),q=n(br,"P",{});var Be=a(q);Gr=l(Be,"Load pretrained attention processor layers into "),Zo=n(Be,"A",{href:!0});var Ds=a(Zo);Vr=l(Ds,"UNet2DConditionModel"),Ds.forEach(t),Br=l(Be,`. Attention processor layers have to be
defined in
`),Qe=n(Be,"A",{href:!0,rel:!0});var As=a(Qe);ft=n(As,"CODE",{});var Ns=a(ft);qr=l(Ns,"attention_processor.py"),Ns.forEach(t),As.forEach(t),Yr=l(Be,`
and be a `),mt=n(Be,"CODE",{});var Zs=a(mt);zr=l(Zs,"torch.nn.Module"),Zs.forEach(t),Or=l(Be," class."),Be.forEach(t),br.forEach(t),Hr=m(be),$e=n(be,"DIV",{class:!0});var yr=a($e);y(Ke.$$.fragment,yr),Xr=m(yr),eo=n(yr,"P",{});var wr=a(eo);Qr=l(wr,`Save an attention processor to a directory so that it can be reloaded using the
`),So=n(wr,"A",{href:!0});var Ss=a(So);Kr=l(Ss,"load_attn_procs()"),Ss.forEach(t),en=l(wr," method."),wr.forEach(t),yr.forEach(t),be.forEach(t),dr=m(o),le=n(o,"H2",{class:!0});var Mr=a(le);Le=n(Mr,"A",{id:!0,class:!0,href:!0});var Ws=a(Le);pt=n(Ws,"SPAN",{});var js=a(pt);y(oo.$$.fragment,js),js.forEach(t),Ws.forEach(t),on=m(Mr),ht=n(Mr,"SPAN",{});var Ps=a(ht);tn=l(Ps,"TextualInversionLoaderMixin"),Ps.forEach(t),Mr.forEach(t),cr=m(o),Z=n(o,"DIV",{class:!0});var qe=a(Z);y(to.$$.fragment,qe),rn=m(qe),ut=n(qe,"P",{});var Rs=a(ut);nn=l(Rs,"Load textual inversion tokens and embeddings to the tokenizer and text encoder."),Rs.forEach(t),an=m(qe),J=n(qe,"DIV",{class:!0});var G=a(J);y(ro.$$.fragment,G),sn=m(G),no=n(G,"P",{});var $r=a(no);ln=l($r,"Load textual inversion embeddings into the text encoder of "),Wo=n($r,"A",{href:!0});var Gs=a(Wo);dn=l(Gs,"StableDiffusionPipeline"),Gs.forEach(t),cn=l($r,` (both \u{1F917} Diffusers and
Automatic1111 formats are supported).`),$r.forEach(t),fn=m(G),gt=n(G,"P",{});var Vs=a(gt);mn=l(Vs,"Example:"),Vs.forEach(t),pn=m(G),y(Te.$$.fragment,G),hn=m(G),ao=n(G,"P",{});var Lr=a(ao);un=l(Lr,`To load a textual inversion embedding vector in Automatic1111 format, make sure to download the vector first
(for example from `),so=n(Lr,"A",{href:!0,rel:!0});var Bs=a(so);gn=l(Bs,"civitAI"),Bs.forEach(t),_n=l(Lr,") and then load the vector"),Lr.forEach(t),vn=m(G),y(ke.$$.fragment,G),G.forEach(t),xn=m(qe),Ee=n(qe,"DIV",{class:!0});var Tr=a(Ee);y(io.$$.fragment,Tr),bn=m(Tr),_t=n(Tr,"P",{});var qs=a(_t);yn=l(qs,`Processes prompts that include a special token corresponding to a multi-vector textual inversion embedding to
be replaced with multiple special tokens each corresponding to one of the vectors. If the prompt has no textual
inversion token or if the textual inversion token is a single vector, the input prompt is returned.`),qs.forEach(t),Tr.forEach(t),qe.forEach(t),fr=m(o),de=n(o,"H2",{class:!0});var kr=a(de);Ue=n(kr,"A",{id:!0,class:!0,href:!0});var Ys=a(Ue);vt=n(Ys,"SPAN",{});var zs=a(vt);y(lo.$$.fragment,zs),zs.forEach(t),Ys.forEach(t),wn=m(kr),xt=n(kr,"SPAN",{});var Os=a(xt);Mn=l(Os,"LoraLoaderMixin"),Os.forEach(t),kr.forEach(t),mr=m(o),k=n(o,"DIV",{class:!0});var I=a(k);y(co.$$.fragment,I),$n=m(I),ce=n(I,"P",{});var zo=a(ce);Ln=l(zo,"Load LoRA layers into "),jo=n(zo,"A",{href:!0});var Hs=a(jo);Tn=l(Hs,"UNet2DConditionModel"),Hs.forEach(t),kn=l(zo,` and
`),fo=n(zo,"A",{href:!0,rel:!0});var Xs=a(fo);bt=n(Xs,"CODE",{});var Qs=a(bt);En=l(Qs,"CLIPTextModel"),Qs.forEach(t),Xs.forEach(t),Un=l(zo,"."),zo.forEach(t),In=m(I),H=n(I,"DIV",{class:!0});var Oo=a(H);y(mo.$$.fragment,Oo),Fn=m(Oo),yt=n(Oo,"P",{});var Ks=a(yt);Cn=l(Ks,"Fuses the LoRA parameters into the original parameters of the corresponding blocks."),Ks.forEach(t),Jn=m(Oo),y(Ie.$$.fragment,Oo),Oo.forEach(t),Dn=m(I),Fe=n(I,"DIV",{class:!0});var Er=a(Fe);y(po.$$.fragment,Er),An=m(Er),Ce=n(Er,"P",{});var ar=a(Ce);Nn=l(ar,"This will load the LoRA layers specified in "),wt=n(ar,"CODE",{});var ei=a(wt);Zn=l(ei,"state_dict"),ei.forEach(t),Sn=l(ar," into "),Mt=n(ar,"CODE",{});var oi=a(Mt);Wn=l(oi,"text_encoder"),oi.forEach(t),ar.forEach(t),Er.forEach(t),jn=m(I),Je=n(I,"DIV",{class:!0});var Ur=a(Je);y(ho.$$.fragment,Ur),Pn=m(Ur),fe=n(Ur,"P",{});var Ho=a(fe);Rn=l(Ho,"This will load the LoRA layers specified in "),$t=n(Ho,"CODE",{});var ti=a($t);Gn=l(ti,"state_dict"),ti.forEach(t),Vn=l(Ho," into "),Lt=n(Ho,"CODE",{});var ri=a(Lt);Bn=l(ri,"unet"),ri.forEach(t),qn=l(Ho,"."),Ho.forEach(t),Ur.forEach(t),Yn=m(I),D=n(I,"DIV",{class:!0});var V=a(D);y(uo.$$.fragment,V),zn=m(V),Y=n(V,"P",{});var Ye=a(Y);On=l(Ye,"Load LoRA weights specified in "),Tt=n(Ye,"CODE",{});var ni=a(Tt);Hn=l(ni,"pretrained_model_name_or_path_or_dict"),ni.forEach(t),Xn=l(Ye," into "),kt=n(Ye,"CODE",{});var ai=a(kt);Qn=l(ai,"self.unet"),ai.forEach(t),Kn=l(Ye,` and
`),Et=n(Ye,"CODE",{});var si=a(Et);ea=l(si,"self.text_encoder"),si.forEach(t),oa=l(Ye,"."),Ye.forEach(t),ta=m(V),go=n(V,"P",{});var Ir=a(go);ra=l(Ir,"All kwargs are forwarded to "),Ut=n(Ir,"CODE",{});var ii=a(Ut);na=l(ii,"self.lora_state_dict"),ii.forEach(t),aa=l(Ir,"."),Ir.forEach(t),sa=m(V),_o=n(V,"P",{});var Fr=a(_o);ia=l(Fr,"See "),Po=n(Fr,"A",{href:!0});var li=a(Po);la=l(li,"lora_state_dict()"),li.forEach(t),da=l(Fr," for more details on how the state dict is loaded."),Fr.forEach(t),ca=m(V),me=n(V,"P",{});var Xo=a(me);fa=l(Xo,"See "),Ro=n(Xo,"A",{href:!0});var di=a(Ro);ma=l(di,"load_lora_into_unet()"),di.forEach(t),pa=l(Xo,` for more details on how the state dict is loaded into
`),It=n(Xo,"CODE",{});var ci=a(It);ha=l(ci,"self.unet"),ci.forEach(t),ua=l(Xo,"."),Xo.forEach(t),ga=m(V),pe=n(V,"P",{});var Qo=a(pe);_a=l(Qo,"See "),Go=n(Qo,"A",{href:!0});var fi=a(Go);va=l(fi,"load_lora_into_text_encoder()"),fi.forEach(t),xa=l(Qo,` for more details on how the state dict is loaded
into `),Ft=n(Qo,"CODE",{});var mi=a(Ft);ba=l(mi,"self.text_encoder"),mi.forEach(t),ya=l(Qo,"."),Qo.forEach(t),V.forEach(t),wa=m(I),X=n(I,"DIV",{class:!0});var Ko=a(X);y(vo.$$.fragment,Ko),Ma=m(Ko),Ct=n(Ko,"P",{});var pi=a(Ct);$a=l(pi,"Return state dict for lora weights and the network alphas."),pi.forEach(t),La=m(Ko),y(De.$$.fragment,Ko),Ko.forEach(t),Ta=m(I),Ae=n(I,"DIV",{class:!0});var Cr=a(Ae);y(xo.$$.fragment,Cr),ka=m(Cr),Jt=n(Cr,"P",{});var hi=a(Jt);Ea=l(hi,"Save the LoRA parameters corresponding to the UNet and text encoder."),hi.forEach(t),Cr.forEach(t),Ua=m(I),Q=n(I,"DIV",{class:!0});var et=a(Q);y(bo.$$.fragment,et),Ia=m(et),yo=n(et,"P",{});var Jr=a(yo);Fa=l(Jr,`Reverses the effect of
`),wo=n(Jr,"A",{href:!0,rel:!0});var ui=a(wo);Dt=n(ui,"CODE",{});var gi=a(Dt);Ca=l(gi,"pipe.fuse_lora()"),gi.forEach(t),ui.forEach(t),Ja=l(Jr,"."),Jr.forEach(t),Da=m(et),y(Ne.$$.fragment,et),et.forEach(t),Aa=m(I),K=n(I,"DIV",{class:!0});var ot=a(K);y(Mo.$$.fragment,ot),Na=m(ot),At=n(ot,"P",{});var _i=a(At);Za=l(_i,"Unloads the LoRA parameters."),_i.forEach(t),Sa=m(ot),y(Ze.$$.fragment,ot),ot.forEach(t),I.forEach(t),pr=m(o),he=n(o,"H2",{class:!0});var Dr=a(he);Se=n(Dr,"A",{id:!0,class:!0,href:!0});var vi=a(Se);Nt=n(vi,"SPAN",{});var xi=a(Nt);y($o.$$.fragment,xi),xi.forEach(t),vi.forEach(t),Wa=m(Dr),Zt=n(Dr,"SPAN",{});var bi=a(Zt);ja=l(bi,"FromSingleFileMixin"),bi.forEach(t),Dr.forEach(t),hr=m(o),z=n(o,"DIV",{class:!0});var tt=a(z);y(Lo.$$.fragment,tt),Pa=m(tt),ue=n(tt,"P",{});var rt=a(ue);Ra=l(rt,"Load model weights saved in the "),St=n(rt,"CODE",{});var yi=a(St);Ga=l(yi,".ckpt"),yi.forEach(t),Va=l(rt," format into a "),Vo=n(rt,"A",{href:!0});var wi=a(Vo);Ba=l(wi,"DiffusionPipeline"),wi.forEach(t),qa=l(rt,"."),rt.forEach(t),Ya=m(tt),ee=n(tt,"DIV",{class:!0});var nt=a(ee);y(To.$$.fragment,nt),za=m(nt),S=n(nt,"P",{});var te=a(S);Oa=l(te,"Instantiate a "),Bo=n(te,"A",{href:!0});var Mi=a(Bo);Ha=l(Mi,"DiffusionPipeline"),Mi.forEach(t),Xa=l(te," from pretrained pipeline weights saved in the "),Wt=n(te,"CODE",{});var $i=a(Wt);Qa=l($i,".ckpt"),$i.forEach(t),Ka=l(te," or "),jt=n(te,"CODE",{});var Li=a(jt);es=l(Li,".safetensors"),Li.forEach(t),os=l(te,`
format. The pipeline is set in evaluation mode (`),Pt=n(te,"CODE",{});var Ti=a(Pt);ts=l(Ti,"model.eval()"),Ti.forEach(t),rs=l(te,") by default."),te.forEach(t),ns=m(nt),y(We.$$.fragment,nt),nt.forEach(t),tt.forEach(t),ur=m(o),ge=n(o,"H2",{class:!0});var Ar=a(ge);je=n(Ar,"A",{id:!0,class:!0,href:!0});var ki=a(je);Rt=n(ki,"SPAN",{});var Ei=a(Rt);y(ko.$$.fragment,Ei),Ei.forEach(t),ki.forEach(t),as=m(Ar),Gt=n(Ar,"SPAN",{});var Ui=a(Gt);ss=l(Ui,"FromOriginalControlnetMixin"),Ui.forEach(t),Ar.forEach(t),gr=m(o),_e=n(o,"DIV",{class:!0});var Nr=a(_e);y(Eo.$$.fragment,Nr),is=m(Nr),oe=n(Nr,"DIV",{class:!0});var at=a(oe);y(Uo.$$.fragment,at),ls=m(at),W=n(at,"P",{});var re=a(W);ds=l(re,"Instantiate a "),qo=n(re,"A",{href:!0});var Ii=a(qo);cs=l(Ii,"ControlNetModel"),Ii.forEach(t),fs=l(re," from pretrained controlnet weights saved in the original "),Vt=n(re,"CODE",{});var Fi=a(Vt);ms=l(Fi,".ckpt"),Fi.forEach(t),ps=l(re,` or
`),Bt=n(re,"CODE",{});var Ci=a(Bt);hs=l(Ci,".safetensors"),Ci.forEach(t),us=l(re," format. The pipeline is set in evaluation mode ("),qt=n(re,"CODE",{});var Ji=a(qt);gs=l(Ji,"model.eval()"),Ji.forEach(t),_s=l(re,") by default."),re.forEach(t),vs=m(at),y(Pe.$$.fragment,at),at.forEach(t),Nr.forEach(t),_r=m(o),ve=n(o,"H2",{class:!0});var Zr=a(ve);Re=n(Zr,"A",{id:!0,class:!0,href:!0});var Di=a(Re);Yt=n(Di,"SPAN",{});var Ai=a(Yt);y(Io.$$.fragment,Ai),Ai.forEach(t),Di.forEach(t),xs=m(Zr),zt=n(Zr,"SPAN",{});var Ni=a(zt);bs=l(Ni,"FromOriginalVAEMixin"),Ni.forEach(t),Zr.forEach(t),vr=m(o),xe=n(o,"DIV",{class:!0});var Sr=a(xe);y(Fo.$$.fragment,Sr),ys=m(Sr),R=n(Sr,"DIV",{class:!0});var ze=a(R);y(Co.$$.fragment,ze),ws=m(ze),j=n(ze,"P",{});var ne=a(j);Ms=l(ne,"Instantiate a "),Yo=n(ne,"A",{href:!0});var Zi=a(Yo);$s=l(Zi,"AutoencoderKL"),Zi.forEach(t),Ls=l(ne," from pretrained controlnet weights saved in the original "),Ot=n(ne,"CODE",{});var Si=a(Ot);Ts=l(Si,".ckpt"),Si.forEach(t),ks=l(ne,` or
`),Ht=n(ne,"CODE",{});var Wi=a(Ht);Es=l(Wi,".safetensors"),Wi.forEach(t),Us=l(ne," format. The pipeline is format. The pipeline is set in evaluation mode ("),Xt=n(ne,"CODE",{});var ji=a(Xt);Is=l(ji,"model.eval()"),ji.forEach(t),Fs=l(ne,`) by
default.`),ne.forEach(t),Cs=m(ze),y(Ge.$$.fragment,ze),Js=m(ze),y(Ve.$$.fragment,ze),ze.forEach(t),Sr.forEach(t),this.h()},h(){p(d,"name","hf:doc:metadata"),p(d,"content",JSON.stringify(nl)),p(c,"id","loaders"),p(c,"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"),p(c,"href","#loaders"),p(h,"class","relative group"),p(we,"id","diffusers.loaders.UNet2DConditionLoadersMixin"),p(we,"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"),p(we,"href","#diffusers.loaders.UNet2DConditionLoadersMixin"),p(ie,"class","relative group"),p(Zo,"href","/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel"),p(Qe,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py"),p(Qe,"rel","nofollow"),p(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(So,"href","/docs/diffusers/main/en/api/loaders#diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs"),p($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Le,"id","diffusers.loaders.TextualInversionLoaderMixin"),p(Le,"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"),p(Le,"href","#diffusers.loaders.TextualInversionLoaderMixin"),p(le,"class","relative group"),p(Wo,"href","/docs/diffusers/main/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline"),p(so,"href","https://civitai.com/models/3036?modelVersionId=9857"),p(so,"rel","nofollow"),p(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Ue,"id","diffusers.loaders.LoraLoaderMixin"),p(Ue,"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"),p(Ue,"href","#diffusers.loaders.LoraLoaderMixin"),p(de,"class","relative group"),p(jo,"href","/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel"),p(fo,"href","https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel"),p(fo,"rel","nofollow"),p(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Po,"href","/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraLoaderMixin.lora_state_dict"),p(Ro,"href","/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraLoaderMixin.load_lora_into_unet"),p(Go,"href","/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraLoaderMixin.load_lora_into_text_encoder"),p(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(wo,"href","https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraLoaderMixin.fuse_lora"),p(wo,"rel","nofollow"),p(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Se,"id","diffusers.loaders.FromSingleFileMixin"),p(Se,"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"),p(Se,"href","#diffusers.loaders.FromSingleFileMixin"),p(he,"class","relative group"),p(Vo,"href","/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline"),p(Bo,"href","/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline"),p(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(je,"id","diffusers.loaders.FromOriginalControlnetMixin"),p(je,"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"),p(je,"href","#diffusers.loaders.FromOriginalControlnetMixin"),p(ge,"class","relative group"),p(qo,"href","/docs/diffusers/main/en/api/models/controlnet#diffusers.ControlNetModel"),p(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Re,"id","diffusers.loaders.FromOriginalVAEMixin"),p(Re,"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"),p(Re,"href","#diffusers.loaders.FromOriginalVAEMixin"),p(ve,"class","relative group"),p(Yo,"href","/docs/diffusers/main/en/api/models/autoencoderkl#diffusers.AutoencoderKL"),p(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,g){e(document.head,d),v(o,_,g),v(o,h,g),e(h,c),e(c,x),w(s,x,null),e(h,u),e(h,F),e(F,A),v(o,P,g),v(o,C,g),e(C,N),e(C,T),e(T,ae),e(C,se),v(o,O,g),w(ye,o,g),v(o,ir,g),v(o,ie,g),e(ie,we),e(we,dt),w(Oe,dt,null),e(ie,Wr),e(ie,ct),e(ct,jr),v(o,lr,g),v(o,B,g),w(He,B,null),e(B,Pr),e(B,Me),w(Xe,Me,null),e(Me,Rr),e(Me,q),e(q,Gr),e(q,Zo),e(Zo,Vr),e(q,Br),e(q,Qe),e(Qe,ft),e(ft,qr),e(q,Yr),e(q,mt),e(mt,zr),e(q,Or),e(B,Hr),e(B,$e),w(Ke,$e,null),e($e,Xr),e($e,eo),e(eo,Qr),e(eo,So),e(So,Kr),e(eo,en),v(o,dr,g),v(o,le,g),e(le,Le),e(Le,pt),w(oo,pt,null),e(le,on),e(le,ht),e(ht,tn),v(o,cr,g),v(o,Z,g),w(to,Z,null),e(Z,rn),e(Z,ut),e(ut,nn),e(Z,an),e(Z,J),w(ro,J,null),e(J,sn),e(J,no),e(no,ln),e(no,Wo),e(Wo,dn),e(no,cn),e(J,fn),e(J,gt),e(gt,mn),e(J,pn),w(Te,J,null),e(J,hn),e(J,ao),e(ao,un),e(ao,so),e(so,gn),e(ao,_n),e(J,vn),w(ke,J,null),e(Z,xn),e(Z,Ee),w(io,Ee,null),e(Ee,bn),e(Ee,_t),e(_t,yn),v(o,fr,g),v(o,de,g),e(de,Ue),e(Ue,vt),w(lo,vt,null),e(de,wn),e(de,xt),e(xt,Mn),v(o,mr,g),v(o,k,g),w(co,k,null),e(k,$n),e(k,ce),e(ce,Ln),e(ce,jo),e(jo,Tn),e(ce,kn),e(ce,fo),e(fo,bt),e(bt,En),e(ce,Un),e(k,In),e(k,H),w(mo,H,null),e(H,Fn),e(H,yt),e(yt,Cn),e(H,Jn),w(Ie,H,null),e(k,Dn),e(k,Fe),w(po,Fe,null),e(Fe,An),e(Fe,Ce),e(Ce,Nn),e(Ce,wt),e(wt,Zn),e(Ce,Sn),e(Ce,Mt),e(Mt,Wn),e(k,jn),e(k,Je),w(ho,Je,null),e(Je,Pn),e(Je,fe),e(fe,Rn),e(fe,$t),e($t,Gn),e(fe,Vn),e(fe,Lt),e(Lt,Bn),e(fe,qn),e(k,Yn),e(k,D),w(uo,D,null),e(D,zn),e(D,Y),e(Y,On),e(Y,Tt),e(Tt,Hn),e(Y,Xn),e(Y,kt),e(kt,Qn),e(Y,Kn),e(Y,Et),e(Et,ea),e(Y,oa),e(D,ta),e(D,go),e(go,ra),e(go,Ut),e(Ut,na),e(go,aa),e(D,sa),e(D,_o),e(_o,ia),e(_o,Po),e(Po,la),e(_o,da),e(D,ca),e(D,me),e(me,fa),e(me,Ro),e(Ro,ma),e(me,pa),e(me,It),e(It,ha),e(me,ua),e(D,ga),e(D,pe),e(pe,_a),e(pe,Go),e(Go,va),e(pe,xa),e(pe,Ft),e(Ft,ba),e(pe,ya),e(k,wa),e(k,X),w(vo,X,null),e(X,Ma),e(X,Ct),e(Ct,$a),e(X,La),w(De,X,null),e(k,Ta),e(k,Ae),w(xo,Ae,null),e(Ae,ka),e(Ae,Jt),e(Jt,Ea),e(k,Ua),e(k,Q),w(bo,Q,null),e(Q,Ia),e(Q,yo),e(yo,Fa),e(yo,wo),e(wo,Dt),e(Dt,Ca),e(yo,Ja),e(Q,Da),w(Ne,Q,null),e(k,Aa),e(k,K),w(Mo,K,null),e(K,Na),e(K,At),e(At,Za),e(K,Sa),w(Ze,K,null),v(o,pr,g),v(o,he,g),e(he,Se),e(Se,Nt),w($o,Nt,null),e(he,Wa),e(he,Zt),e(Zt,ja),v(o,hr,g),v(o,z,g),w(Lo,z,null),e(z,Pa),e(z,ue),e(ue,Ra),e(ue,St),e(St,Ga),e(ue,Va),e(ue,Vo),e(Vo,Ba),e(ue,qa),e(z,Ya),e(z,ee),w(To,ee,null),e(ee,za),e(ee,S),e(S,Oa),e(S,Bo),e(Bo,Ha),e(S,Xa),e(S,Wt),e(Wt,Qa),e(S,Ka),e(S,jt),e(jt,es),e(S,os),e(S,Pt),e(Pt,ts),e(S,rs),e(ee,ns),w(We,ee,null),v(o,ur,g),v(o,ge,g),e(ge,je),e(je,Rt),w(ko,Rt,null),e(ge,as),e(ge,Gt),e(Gt,ss),v(o,gr,g),v(o,_e,g),w(Eo,_e,null),e(_e,is),e(_e,oe),w(Uo,oe,null),e(oe,ls),e(oe,W),e(W,ds),e(W,qo),e(qo,cs),e(W,fs),e(W,Vt),e(Vt,ms),e(W,ps),e(W,Bt),e(Bt,hs),e(W,us),e(W,qt),e(qt,gs),e(W,_s),e(oe,vs),w(Pe,oe,null),v(o,_r,g),v(o,ve,g),e(ve,Re),e(Re,Yt),w(Io,Yt,null),e(ve,xs),e(ve,zt),e(zt,bs),v(o,vr,g),v(o,xe,g),w(Fo,xe,null),e(xe,ys),e(xe,R),w(Co,R,null),e(R,ws),e(R,j),e(j,Ms),e(j,Yo),e(Yo,$s),e(j,Ls),e(j,Ot),e(Ot,Ts),e(j,ks),e(j,Ht),e(Ht,Es),e(j,Us),e(j,Xt),e(Xt,Is),e(j,Fs),e(R,Cs),w(Ge,R,null),e(R,Js),w(Ve,R,null),xr=!0},p(o,[g]){const Jo={};g&2&&(Jo.$$scope={dirty:g,ctx:o}),ye.$set(Jo);const Qt={};g&2&&(Qt.$$scope={dirty:g,ctx:o}),Te.$set(Qt);const Kt={};g&2&&(Kt.$$scope={dirty:g,ctx:o}),ke.$set(Kt);const er={};g&2&&(er.$$scope={dirty:g,ctx:o}),Ie.$set(er);const Do={};g&2&&(Do.$$scope={dirty:g,ctx:o}),De.$set(Do);const or={};g&2&&(or.$$scope={dirty:g,ctx:o}),Ne.$set(or);const Ao={};g&2&&(Ao.$$scope={dirty:g,ctx:o}),Ze.$set(Ao);const tr={};g&2&&(tr.$$scope={dirty:g,ctx:o}),We.$set(tr);const rr={};g&2&&(rr.$$scope={dirty:g,ctx:o}),Pe.$set(rr);const nr={};g&2&&(nr.$$scope={dirty:g,ctx:o}),Ge.$set(nr);const be={};g&2&&(be.$$scope={dirty:g,ctx:o}),Ve.$set(be)},i(o){xr||(M(s.$$.fragment,o),M(ye.$$.fragment,o),M(Oe.$$.fragment,o),M(He.$$.fragment,o),M(Xe.$$.fragment,o),M(Ke.$$.fragment,o),M(oo.$$.fragment,o),M(to.$$.fragment,o),M(ro.$$.fragment,o),M(Te.$$.fragment,o),M(ke.$$.fragment,o),M(io.$$.fragment,o),M(lo.$$.fragment,o),M(co.$$.fragment,o),M(mo.$$.fragment,o),M(Ie.$$.fragment,o),M(po.$$.fragment,o),M(ho.$$.fragment,o),M(uo.$$.fragment,o),M(vo.$$.fragment,o),M(De.$$.fragment,o),M(xo.$$.fragment,o),M(bo.$$.fragment,o),M(Ne.$$.fragment,o),M(Mo.$$.fragment,o),M(Ze.$$.fragment,o),M($o.$$.fragment,o),M(Lo.$$.fragment,o),M(To.$$.fragment,o),M(We.$$.fragment,o),M(ko.$$.fragment,o),M(Eo.$$.fragment,o),M(Uo.$$.fragment,o),M(Pe.$$.fragment,o),M(Io.$$.fragment,o),M(Fo.$$.fragment,o),M(Co.$$.fragment,o),M(Ge.$$.fragment,o),M(Ve.$$.fragment,o),xr=!0)},o(o){$(s.$$.fragment,o),$(ye.$$.fragment,o),$(Oe.$$.fragment,o),$(He.$$.fragment,o),$(Xe.$$.fragment,o),$(Ke.$$.fragment,o),$(oo.$$.fragment,o),$(to.$$.fragment,o),$(ro.$$.fragment,o),$(Te.$$.fragment,o),$(ke.$$.fragment,o),$(io.$$.fragment,o),$(lo.$$.fragment,o),$(co.$$.fragment,o),$(mo.$$.fragment,o),$(Ie.$$.fragment,o),$(po.$$.fragment,o),$(ho.$$.fragment,o),$(uo.$$.fragment,o),$(vo.$$.fragment,o),$(De.$$.fragment,o),$(xo.$$.fragment,o),$(bo.$$.fragment,o),$(Ne.$$.fragment,o),$(Mo.$$.fragment,o),$(Ze.$$.fragment,o),$($o.$$.fragment,o),$(Lo.$$.fragment,o),$(To.$$.fragment,o),$(We.$$.fragment,o),$(ko.$$.fragment,o),$(Eo.$$.fragment,o),$(Uo.$$.fragment,o),$(Pe.$$.fragment,o),$(Io.$$.fragment,o),$(Fo.$$.fragment,o),$(Co.$$.fragment,o),$(Ge.$$.fragment,o),$(Ve.$$.fragment,o),xr=!1},d(o){t(d),o&&t(_),o&&t(h),L(s),o&&t(P),o&&t(C),o&&t(O),L(ye,o),o&&t(ir),o&&t(ie),L(Oe),o&&t(lr),o&&t(B),L(He),L(Xe),L(Ke),o&&t(dr),o&&t(le),L(oo),o&&t(cr),o&&t(Z),L(to),L(ro),L(Te),L(ke),L(io),o&&t(fr),o&&t(de),L(lo),o&&t(mr),o&&t(k),L(co),L(mo),L(Ie),L(po),L(ho),L(uo),L(vo),L(De),L(xo),L(bo),L(Ne),L(Mo),L(Ze),o&&t(pr),o&&t(he),L($o),o&&t(hr),o&&t(z),L(Lo),L(To),L(We),o&&t(ur),o&&t(ge),L(ko),o&&t(gr),o&&t(_e),L(Eo),L(Uo),L(Pe),o&&t(_r),o&&t(ve),L(Io),o&&t(vr),o&&t(xe),L(Fo),L(Co),L(Ge),L(Ve)}}}const nl={local:"loaders",sections:[{local:"diffusers.loaders.UNet2DConditionLoadersMixin",title:"UNet2DConditionLoadersMixin"},{local:"diffusers.loaders.TextualInversionLoaderMixin",title:"TextualInversionLoaderMixin"},{local:"diffusers.loaders.LoraLoaderMixin",title:"LoraLoaderMixin"},{local:"diffusers.loaders.FromSingleFileMixin",title:"FromSingleFileMixin"},{local:"diffusers.loaders.FromOriginalControlnetMixin",title:"FromOriginalControlnetMixin"},{local:"diffusers.loaders.FromOriginalVAEMixin",title:"FromOriginalVAEMixin"}],title:"Loaders"};function al(E){return Bi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ml extends Pi{constructor(d){super();Ri(this,d,al,rl,Gi,{})}}export{ml as default,nl as metadata};
