import{S as Fn,i as Sn,s as Bn,e as n,k as h,w as $,t as i,M as Gn,c as a,d as t,m,a as s,x as M,h as l,b as p,G as e,g as b,y as k,q as T,o as U,B as L,v as qn,L as Qr}from"../../chunks/vendor-hf-doc-builder.js";import{T as ze}from"../../chunks/Tip-hf-doc-builder.js";import{D as B}from"../../chunks/Docstring-hf-doc-builder.js";import{C as Or}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as so}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as zr}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Rn(E){let r,y;return{c(){r=n("p"),y=i("This function is experimental and might change in the future.")},l(d){r=a(d,"P",{});var f=s(r);y=l(f,"This function is experimental and might change in the future."),f.forEach(t)},m(d,f){b(d,r,f),e(r,y)},d(d){d&&t(r)}}}function Yn(E){let r,y,d,f,x,c,v,w;return{c(){r=n("p"),y=i("It is required to be logged in ("),d=n("code"),f=i("huggingface-cli login"),x=i(") when you want to use private or "),c=n("a"),v=i(`gated
models`),w=i("."),this.h()},l(u){r=a(u,"P",{});var _=s(r);y=l(_,"It is required to be logged in ("),d=a(_,"CODE",{});var C=s(d);f=l(C,"huggingface-cli login"),C.forEach(t),x=l(_,") when you want to use private or "),c=a(_,"A",{href:!0,rel:!0});var Z=s(c);v=l(Z,`gated
models`),Z.forEach(t),w=l(_,"."),_.forEach(t),this.h()},h(){p(c,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),p(c,"rel","nofollow")},m(u,_){b(u,r,_),e(r,y),e(r,d),e(d,f),e(r,x),e(r,c),e(c,v),e(r,w)},d(u){u&&t(r)}}}function Vn(E){let r,y;return{c(){r=n("p"),y=i("This function is experimental and might change in the future.")},l(d){r=a(d,"P",{});var f=s(r);y=l(f,"This function is experimental and might change in the future."),f.forEach(t)},m(d,f){b(d,r,f),e(r,y)},d(d){d&&t(r)}}}function Xn(E){let r,y,d,f,x,c,v,w;return{c(){r=n("p"),y=i("It is required to be logged in ("),d=n("code"),f=i("huggingface-cli login"),x=i(") when you want to use private or "),c=n("a"),v=i(`gated
models`),w=i("."),this.h()},l(u){r=a(u,"P",{});var _=s(r);y=l(_,"It is required to be logged in ("),d=a(_,"CODE",{});var C=s(d);f=l(C,"huggingface-cli login"),C.forEach(t),x=l(_,") when you want to use private or "),c=a(_,"A",{href:!0,rel:!0});var Z=s(c);v=l(Z,`gated
models`),Z.forEach(t),w=l(_,"."),_.forEach(t),this.h()},h(){p(c,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),p(c,"rel","nofollow")},m(u,_){b(u,r,_),e(r,y),e(r,d),e(d,f),e(r,x),e(r,c),e(c,v),e(r,w)},d(u){u&&t(r)}}}function Hn(E){let r,y,d,f,x,c,v,w;return v=new Or({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(){r=n("p"),y=i("To load a textual inversion embedding vector in "),d=n("code"),f=i("diffusers"),x=i(" format:"),c=h(),$(v.$$.fragment)},l(u){r=a(u,"P",{});var _=s(r);y=l(_,"To load a textual inversion embedding vector in "),d=a(_,"CODE",{});var C=s(d);f=l(C,"diffusers"),C.forEach(t),x=l(_," format:"),_.forEach(t),c=m(u),M(v.$$.fragment,u)},m(u,_){b(u,r,_),e(r,y),e(r,d),e(d,f),e(r,x),b(u,c,_),k(v,u,_),w=!0},p:Qr,i(u){w||(T(v.$$.fragment,u),w=!0)},o(u){U(v.$$.fragment,u),w=!1},d(u){u&&t(r),u&&t(c),L(v,u)}}}function zn(E){let r,y,d,f,x,c,v,w;return v=new Or({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(){r=n("p"),y=i("e.g. from "),d=n("a"),f=i("civitAI"),x=i(" and then load the vector locally:"),c=h(),$(v.$$.fragment),this.h()},l(u){r=a(u,"P",{});var _=s(r);y=l(_,"e.g. from "),d=a(_,"A",{href:!0,rel:!0});var C=s(d);f=l(C,"civitAI"),C.forEach(t),x=l(_," and then load the vector locally:"),_.forEach(t),c=m(u),M(v.$$.fragment,u),this.h()},h(){p(d,"href","https://civitai.com/models/3036?modelVersionId=9857"),p(d,"rel","nofollow")},m(u,_){b(u,r,_),e(r,y),e(r,d),e(d,f),e(r,x),b(u,c,_),k(v,u,_),w=!0},p:Qr,i(u){w||(T(v.$$.fragment,u),w=!0)},o(u){U(v.$$.fragment,u),w=!1},d(u){u&&t(r),u&&t(c),L(v,u)}}}function Qn(E){let r,y;return{c(){r=n("p"),y=i("This function is experimental and might change in the future.")},l(d){r=a(d,"P",{});var f=s(r);y=l(f,"This function is experimental and might change in the future."),f.forEach(t)},m(d,f){b(d,r,f),e(r,y)},d(d){d&&t(r)}}}function On(E){let r,y,d,f,x;return{c(){r=n("p"),y=i("We support loading A1111 formatted LoRA checkpoints in a limited capacity."),d=h(),f=n("p"),x=i("This function is experimental and might change in the future.")},l(c){r=a(c,"P",{});var v=s(r);y=l(v,"We support loading A1111 formatted LoRA checkpoints in a limited capacity."),v.forEach(t),d=m(c),f=a(c,"P",{});var w=s(f);x=l(w,"This function is experimental and might change in the future."),w.forEach(t)},m(c,v){b(c,r,v),e(r,y),b(c,d,v),b(c,f,v),e(f,x)},d(c){c&&t(r),c&&t(d),c&&t(f)}}}function Kn(E){let r,y,d,f,x,c,v,w;return{c(){r=n("p"),y=i("It is required to be logged in ("),d=n("code"),f=i("huggingface-cli login"),x=i(") when you want to use private or "),c=n("a"),v=i(`gated
models`),w=i("."),this.h()},l(u){r=a(u,"P",{});var _=s(r);y=l(_,"It is required to be logged in ("),d=a(_,"CODE",{});var C=s(d);f=l(C,"huggingface-cli login"),C.forEach(t),x=l(_,") when you want to use private or "),c=a(_,"A",{href:!0,rel:!0});var Z=s(c);v=l(Z,`gated
models`),Z.forEach(t),w=l(_,"."),_.forEach(t),this.h()},h(){p(c,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),p(c,"rel","nofollow")},m(u,_){b(u,r,_),e(r,y),e(r,d),e(d,f),e(r,x),e(r,c),e(c,v),e(r,w)},d(u){u&&t(r)}}}function ea(E){let r,y,d,f,x;return f=new Or({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQXBpcGVsaW5lJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9ja3B0KCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZXYXJyaW9yTWFtYTc3NyUyRk9yYW5nZU1peHMlMkZibG9iJTJGbWFpbiUyRk1vZGVscyUyRkFieXNzT3JhbmdlTWl4JTJGQWJ5c3NPcmFuZ2VNaXguc2FmZXRlbnNvcnMlMjIlMEEpJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMGZyb20lMjBsb2NhbCUyMGZpbGUlMEElMjMlMjBmaWxlJTIwaXMlMjBkb3dubG9hZGVkJTIwdW5kZXIlMjAuJTJGdjEtNS1wcnVuZWQtZW1hb25seS5ja3B0JTBBcGlwZWxpbmUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25QaXBlbGluZS5mcm9tX2NrcHQoJTIyLiUyRnYxLTUtcHJ1bmVkLWVtYW9ubHklMjIpJTBBJTBBJTIzJTIwRW5hYmxlJTIwZmxvYXQxNiUyMGFuZCUyMG1vdmUlMjB0byUyMEdQVSUwQXBpcGVsaW5lJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9ja3B0KCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRmJsb2IlMkZtYWluJTJGdjEtNS1wcnVuZWQtZW1hb25seS5ja3B0JTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBKSUwQXBpcGVsaW5lLnRvKCUyMmN1ZGElMjIp",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_ckpt(
<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_ckpt(<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_ckpt(
<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(){r=n("p"),y=i("Examples:"),d=h(),$(f.$$.fragment)},l(c){r=a(c,"P",{});var v=s(r);y=l(v,"Examples:"),v.forEach(t),d=m(c),M(f.$$.fragment,c)},m(c,v){b(c,r,v),e(r,y),b(c,d,v),k(f,c,v),x=!0},p:Qr,i(c){x||(T(f.$$.fragment,c),x=!0)},o(c){U(f.$$.fragment,c),x=!1},d(c){c&&t(r),c&&t(d),L(f,c)}}}function oa(E){let r,y,d,f,x,c,v,w,u,_,C,Z,Yo,G,io,Qe,gt,_t,lo,ke,vt,yt,co,Te,bt,Vo,ee,xt,oe,po,wt,$t,Mt,Xo,Ue,fo,kt,Tt,Ho,R,te,ho,Le,Ut,mo,Lt,zo,Y,re,uo,Ee,Et,go,Ct,Qo,j,Ce,It,W,Ie,Jt,F,Nt,_o,Dt,Zt,Je,vo,Wt,At,yo,Pt,jt,Ft,ne,St,ae,Bt,se,Ne,Gt,De,qt,Oe,Rt,Yt,Oo,V,ie,bo,Ze,Vt,xo,Xt,Ko,D,We,Ht,wo,zt,Qt,I,Ae,Ot,X,Kt,$o,er,or,Mo,tr,rr,nr,le,ar,de,sr,ko,ir,lr,ce,dr,To,cr,pr,pe,fr,fe,Pe,hr,Uo,mr,et,H,he,Lo,je,ur,Eo,gr,ot,N,Fe,_r,z,vr,Ke,yr,br,Se,Co,xr,wr,$r,me,Mr,A,Be,kr,Q,Tr,eo,Ur,Lr,Ge,Io,Er,Cr,Ir,ue,Jr,ge,Nr,_e,qe,Dr,Jo,Zr,tt,O,ve,No,Re,Wr,Do,Ar,rt,S,Ye,Pr,Zo,jr,Fr,P,Ve,Sr,Wo,Br,Gr,Xe,qr,Ao,Rr,Yr,Vr,ye,nt;return c=new so({}),Le=new so({}),Ee=new so({}),Ce=new B({props:{name:"class diffusers.loaders.UNet2DConditionLoadersMixin",anchor:"diffusers.loaders.UNet2DConditionLoadersMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L112"}}),Ie=new B({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 <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids should have an organization name, like <code>google/ddpm-celebahq-256</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using <code>~ModelMixin.save_config</code>, e.g.,
<code>./my_model_directory/</code>.</li>
<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 in which a downloaded pretrained model configuration should be cached if the
standard cache should not be 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 delete incompletely received files. Will attempt to resume the download if such a
file exists.`,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, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"diffusers.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>, will use the token generated
when running <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>).`,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, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo (either remote in
huggingface.co or downloaded locally), you can specify the folder name here.`,name:"subfolder"},{anchor:"diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to accelerate downloads in China. If you are from China and have an accessibility
problem, you can set this option to resolve it. Note that we do not guarantee the timeliness or safety.
Please refer to the mirror site for more information.`,name:"mirror"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L116"}}),ne=new ze({props:{warning:!0,$$slots:{default:[Rn]},$$scope:{ctx:E}}}),ae=new ze({props:{$$slots:{default:[Yn]},$$scope:{ctx:E}}}),Ne=new B({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 = False"},{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 which to save. 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 when in distributed training like
TPUs and need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on
the main process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.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 on distributed training like TPUs when one
need to replace <code>torch.save</code> by another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L342"}}),Ze=new so({}),We=new B({props:{name:"class diffusers.loaders.TextualInversionLoaderMixin",anchor:"diffusers.loaders.TextualInversionLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L419"}}),Ae=new B({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[str, typing.List[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:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids should have an organization name, like
<code>&quot;sd-concepts-library/low-poly-hd-logos-icons&quot;</code>.</li>
<li>A path to a <em>directory</em> containing textual inversion weights, e.g.
<code>./my_text_inversion_directory/</code>.</li>
<li>A path to a <em>file</em> containing textual inversion weights, e.g. <code>./my_text_inversions.pt</code>.</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>
<p>Or a list of those elements.`,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 in two cases:</p>
<ul>
<li>The saved textual inversion file is in <code>diffusers</code> 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 &#x201C;Automatic1111&#x201D; form.</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 in which a downloaded pretrained model configuration should be cached if the
standard cache should not be 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 delete incompletely received files. Will attempt to resume the download if such a
file exists.`,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, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"diffusers.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>, will use the token generated
when running <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>).`,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, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo (either remote in
huggingface.co or downloaded locally), you can specify the folder name here.`,name:"subfolder"},{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to accelerate downloads in China. If you are from China and have an accessibility
problem, you can set this option to resolve it. Note that we do not guarantee the timeliness or safety.
Please refer to the mirror site for more information.`,name:"mirror"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L482"}}),le=new ze({props:{warning:!0,$$slots:{default:[Vn]},$$scope:{ctx:E}}}),de=new ze({props:{$$slots:{default:[Xn]},$$scope:{ctx:E}}}),ce=new zr({props:{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.example",$$slots:{default:[Hn]},$$scope:{ctx:E}}}),pe=new zr({props:{anchor:"diffusers.loaders.TextualInversionLoaderMixin.load_textual_inversion.example-2",$$slots:{default:[zn]},$$scope:{ctx:E}}}),Pe=new B({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/v0.17.0/src/diffusers/loaders.py#L424",returnDescription:`
<p>The converted prompt</p>
`,returnType:`
<p><code>str</code> or list of <code>str</code></p>
`}}),je=new so({}),Fe=new B({props:{name:"class diffusers.loaders.LoraLoaderMixin",anchor:"diffusers.loaders.LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L767"}}),me=new ze({props:{warning:!0,$$slots:{default:[Qn]},$$scope:{ctx:E}}}),Be=new B({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;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids should have an organization name, like <code>google/ddpm-celebahq-256</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using <code>~ModelMixin.save_config</code>, e.g.,
<code>./my_model_directory/</code>.</li>
<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.load_lora_weights.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.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.load_lora_weights.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"use_auth_token"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo (either remote in
huggingface.co or downloaded locally), you can specify the folder name here.`,name:"subfolder"},{anchor:"diffusers.loaders.LoraLoaderMixin.load_lora_weights.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to accelerate downloads in China. If you are from China and have an accessibility
problem, you can set this option to resolve it. Note that we do not guarantee the timeliness or safety.
Please refer to the mirror site for more information.`,name:"mirror"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L781"}}),ue=new ze({props:{warning:!0,$$slots:{default:[On]},$$scope:{ctx:E}}}),ge=new ze({props:{$$slots:{default:[Kn]},$$scope:{ctx:E}}}),qe=new B({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 = False"}],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 which to save. 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 UNet. Specifying this helps to make the
serialization process easier and cleaner. Values can be both LoRA torch.nn.Modules layers or torch
weights.`,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] or </code>Dict[str, torch.Tensor]<code>) -- State dict of the LoRA layers corresponding to the </code>text_encoder<code>. Since the </code>text_encoder<code>comes from</code>transformers`, we cannot rejig it. That is why we have to explicitly pass the text encoder LoRA state\ndict. Values can be both LoRA torch.nn.Modules layers or torch weights.",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 when in distributed training like
TPUs and need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on
the main process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.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 on distributed training like TPUs when one
need to replace <code>torch.save</code> by another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L1201"}}),Re=new so({}),Ye=new B({props:{name:"class diffusers.loaders.FromCkptMixin",anchor:"diffusers.loaders.FromCkptMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L1333"}}),Ve=new B({props:{name:"from_ckpt",anchor:"diffusers.loaders.FromCkptMixin.from_ckpt",parameters:[{name:"pretrained_model_link_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.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 .ckpt file on the Hub. Should be in the format
<code>&quot;https://huggingface.co/&lt;repo_id&gt;/blob/main/&lt;path_to_file&gt;&quot;</code></li>
<li>A path to a <em>file</em> containing all pipeline weights.</li>
</ul>`,name:"pretrained_model_link_or_path"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model under this dtype. If <code>&quot;auto&quot;</code> is passed the dtype
will be automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.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.FromCkptMixin.from_ckpt.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"use_auth_token"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.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 pipeline will load the <code>safetensors</code> weights if they&#x2019;re available <strong>and</strong> if the
<code>safetensors</code> library is installed. If set to <code>True</code>, the pipeline will forcibly load the models from
<code>safetensors</code> weights. If set to <code>False</code> the pipeline will <em>not</em> use <code>safetensors</code>.`,name:"use_safetensors"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.extract_ema",description:`<strong>extract_ema</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Only relevant for
checkpoints that have both EMA and non-EMA weights. Whether to extract the EMA weights or not. Defaults
to <code>False</code>. Pass <code>True</code> to extract the EMA weights. EMA weights usually yield higher quality images for
inference. Non-EMA weights are usually better to continue fine-tuning.`,name:"extract_ema"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.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. This is necessary when running stable`,name:"upcast_attention"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The image size that the model was trained on. Use 512 for Stable Diffusion v1.X and Stable Diffusion v2
Base. Use 768 for Stable Diffusion v2.`,name:"image_size"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.prediction_type",description:`<strong>prediction_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The prediction type that the model was trained on. Use <code>&apos;epsilon&apos;</code> for Stable Diffusion v1.X and Stable
Diffusion v2 Base. Use <code>&apos;v_prediction&apos;</code> for Stable Diffusion v2.`,name:"prediction_type"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.num_in_channels",description:`<strong>num_in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
The number of input channels. If <code>None</code>, it will be automatically inferred.`,name:"num_in_channels"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.scheduler_type",description:`<strong>scheduler_type</strong> (<code>str</code>, <em>optional</em>, defaults to &#x2018;pndm&#x2019;) &#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.FromCkptMixin.from_ckpt.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. Defaults to <code>True</code>.`,name:"load_safety_checker"},{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load - and saveable variables - <em>i.e.</em> the pipeline components - of the
specific pipeline class. The overwritten components are then directly passed to the pipelines
<code>__init__</code> method. See example below for more information.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/loaders.py#L1337"}}),ye=new zr({props:{anchor:"diffusers.loaders.FromCkptMixin.from_ckpt.example",$$slots:{default:[ea]},$$scope:{ctx:E}}}),{c(){r=n("meta"),y=h(),d=n("h1"),f=n("a"),x=n("span"),$(c.$$.fragment),v=h(),w=n("span"),u=i("Loaders"),_=h(),C=n("p"),Z=i("There are many ways to train adapter neural networks for diffusion models, such as"),Yo=h(),G=n("ul"),io=n("li"),Qe=n("a"),gt=i("Textual Inversion"),_t=h(),lo=n("li"),ke=n("a"),vt=i("LoRA"),yt=h(),co=n("li"),Te=n("a"),bt=i("Hypernetworks"),Vo=h(),ee=n("p"),xt=i(`Such adapter neural networks often only consist of a fraction of the number of weights compared
to the pretrained model and as such are very portable. The Diffusers library offers an easy-to-use
API to load such adapter neural networks via the `),oe=n("a"),po=n("code"),wt=i("loaders.py"),$t=i(" module"),Mt=i("."),Xo=h(),Ue=n("p"),fo=n("strong"),kt=i("Note"),Tt=i(": This module is still highly experimental and prone to future changes."),Ho=h(),R=n("h2"),te=n("a"),ho=n("span"),$(Le.$$.fragment),Ut=h(),mo=n("span"),Lt=i("LoaderMixins"),zo=h(),Y=n("h3"),re=n("a"),uo=n("span"),$(Ee.$$.fragment),Et=h(),go=n("span"),Ct=i("UNet2DConditionLoadersMixin"),Qo=h(),j=n("div"),$(Ce.$$.fragment),It=h(),W=n("div"),$(Ie.$$.fragment),Jt=h(),F=n("p"),Nt=i("Load pretrained attention processor layers into "),_o=n("code"),Dt=i("UNet2DConditionModel"),Zt=i(`. Attention processor layers have to be
defined in
`),Je=n("a"),vo=n("code"),Wt=i("cross_attention.py"),At=i(`
and be a `),yo=n("code"),Pt=i("torch.nn.Module"),jt=i(" class."),Ft=h(),$(ne.$$.fragment),St=h(),$(ae.$$.fragment),Bt=h(),se=n("div"),$(Ne.$$.fragment),Gt=h(),De=n("p"),qt=i(`Save an attention processor to a directory, so that it can be re-loaded using the
`),Oe=n("a"),Rt=i("load_attn_procs()"),Yt=i(" method."),Oo=h(),V=n("h3"),ie=n("a"),bo=n("span"),$(Ze.$$.fragment),Vt=h(),xo=n("span"),Xt=i("TextualInversionLoaderMixin"),Ko=h(),D=n("div"),$(We.$$.fragment),Ht=h(),wo=n("p"),zt=i("Mixin class for loading textual inversion tokens and embeddings to the tokenizer and text encoder."),Qt=h(),I=n("div"),$(Ae.$$.fragment),Ot=h(),X=n("p"),Kt=i("Load textual inversion embeddings into the text encoder of stable diffusion pipelines. Both "),$o=n("code"),er=i("diffusers"),or=i(` and
`),Mo=n("code"),tr=i("Automatic1111"),rr=i(" formats are supported (see example below)."),nr=h(),$(le.$$.fragment),ar=h(),$(de.$$.fragment),sr=h(),ko=n("p"),ir=i("Example:"),lr=h(),$(ce.$$.fragment),dr=h(),To=n("p"),cr=i("To load a textual inversion embedding vector in Automatic1111 format, make sure to first download the vector,"),pr=h(),$(pe.$$.fragment),fr=h(),fe=n("div"),$(Pe.$$.fragment),hr=h(),Uo=n("p"),mr=i(`Maybe convert a prompt into a \u201Cmulti vector\u201D-compatible prompt. If the prompt includes a token that corresponds
to a multi-vector textual inversion embedding, this function will process the prompt so that the special token
is replaced with multiple special tokens each corresponding to one of the vectors. If the prompt has no textual
inversion token or a textual inversion token that is a single vector, the input prompt is simply returned.`),et=h(),H=n("h3"),he=n("a"),Lo=n("span"),$(je.$$.fragment),ur=h(),Eo=n("span"),gr=i("LoraLoaderMixin"),ot=h(),N=n("div"),$(Fe.$$.fragment),_r=h(),z=n("p"),vr=i("Utility class for handling the loading LoRA layers into UNet (of class "),Ke=n("a"),yr=i("UNet2DConditionModel"),br=i(`) and Text Encoder
(of class `),Se=n("a"),Co=n("code"),xr=i("CLIPTextModel"),wr=i(")."),$r=h(),$(me.$$.fragment),Mr=h(),A=n("div"),$(Be.$$.fragment),kr=h(),Q=n("p"),Tr=i("Load pretrained attention processor layers (such as LoRA) into "),eo=n("a"),Ur=i("UNet2DConditionModel"),Lr=i(` and
`),Ge=n("a"),Io=n("code"),Er=i("CLIPTextModel"),Cr=i(")."),Ir=h(),$(ue.$$.fragment),Jr=h(),$(ge.$$.fragment),Nr=h(),_e=n("div"),$(qe.$$.fragment),Dr=h(),Jo=n("p"),Zr=i("Save the LoRA parameters corresponding to the UNet and the text encoder."),tt=h(),O=n("h3"),ve=n("a"),No=n("span"),$(Re.$$.fragment),Wr=h(),Do=n("span"),Ar=i("FromCkptMixin"),rt=h(),S=n("div"),$(Ye.$$.fragment),Pr=h(),Zo=n("p"),jr=i(`This helper class allows to directly load .ckpt stable diffusion file_extension
into the respective classes.`),Fr=h(),P=n("div"),$(Ve.$$.fragment),Sr=h(),Wo=n("p"),Br=i("Instantiate a PyTorch diffusion pipeline from pre-trained pipeline weights saved in the original .ckpt format."),Gr=h(),Xe=n("p"),qr=i("The pipeline is set in evaluation mode by default using "),Ao=n("code"),Rr=i("model.eval()"),Yr=i(" (Dropout modules are deactivated)."),Vr=h(),$(ye.$$.fragment),this.h()},l(o){const g=Gn('[data-svelte="svelte-1phssyn"]',document.head);r=a(g,"META",{name:!0,content:!0}),g.forEach(t),y=m(o),d=a(o,"H1",{class:!0});var He=s(d);f=a(He,"A",{id:!0,class:!0,href:!0});var Po=s(f);x=a(Po,"SPAN",{});var jo=s(x);M(c.$$.fragment,jo),jo.forEach(t),Po.forEach(t),v=m(He),w=a(He,"SPAN",{});var Fo=s(w);u=l(Fo,"Loaders"),Fo.forEach(t),He.forEach(t),_=m(o),C=a(o,"P",{});var So=s(C);Z=l(So,"There are many ways to train adapter neural networks for diffusion models, such as"),So.forEach(t),Yo=m(o),G=a(o,"UL",{});var K=s(G);io=a(K,"LI",{});var Bo=s(io);Qe=a(Bo,"A",{href:!0});var Go=s(Qe);gt=l(Go,"Textual Inversion"),Go.forEach(t),Bo.forEach(t),_t=m(K),lo=a(K,"LI",{});var qo=s(lo);ke=a(qo,"A",{href:!0,rel:!0});var Ro=s(ke);vt=l(Ro,"LoRA"),Ro.forEach(t),qo.forEach(t),yt=m(K),co=a(K,"LI",{});var Kr=s(co);Te=a(Kr,"A",{href:!0,rel:!0});var en=s(Te);bt=l(en,"Hypernetworks"),en.forEach(t),Kr.forEach(t),K.forEach(t),Vo=m(o),ee=a(o,"P",{});var at=s(ee);xt=l(at,`Such adapter neural networks often only consist of a fraction of the number of weights compared
to the pretrained model and as such are very portable. The Diffusers library offers an easy-to-use
API to load such adapter neural networks via the `),oe=a(at,"A",{href:!0,rel:!0});var Xr=s(oe);po=a(Xr,"CODE",{});var on=s(po);wt=l(on,"loaders.py"),on.forEach(t),$t=l(Xr," module"),Xr.forEach(t),Mt=l(at,"."),at.forEach(t),Xo=m(o),Ue=a(o,"P",{});var Hr=s(Ue);fo=a(Hr,"STRONG",{});var tn=s(fo);kt=l(tn,"Note"),tn.forEach(t),Tt=l(Hr,": This module is still highly experimental and prone to future changes."),Hr.forEach(t),Ho=m(o),R=a(o,"H2",{class:!0});var st=s(R);te=a(st,"A",{id:!0,class:!0,href:!0});var rn=s(te);ho=a(rn,"SPAN",{});var nn=s(ho);M(Le.$$.fragment,nn),nn.forEach(t),rn.forEach(t),Ut=m(st),mo=a(st,"SPAN",{});var an=s(mo);Lt=l(an,"LoaderMixins"),an.forEach(t),st.forEach(t),zo=m(o),Y=a(o,"H3",{class:!0});var it=s(Y);re=a(it,"A",{id:!0,class:!0,href:!0});var sn=s(re);uo=a(sn,"SPAN",{});var ln=s(uo);M(Ee.$$.fragment,ln),ln.forEach(t),sn.forEach(t),Et=m(it),go=a(it,"SPAN",{});var dn=s(go);Ct=l(dn,"UNet2DConditionLoadersMixin"),dn.forEach(t),it.forEach(t),Qo=m(o),j=a(o,"DIV",{class:!0});var oo=s(j);M(Ce.$$.fragment,oo),It=m(oo),W=a(oo,"DIV",{class:!0});var be=s(W);M(Ie.$$.fragment,be),Jt=m(be),F=a(be,"P",{});var xe=s(F);Nt=l(xe,"Load pretrained attention processor layers into "),_o=a(xe,"CODE",{});var cn=s(_o);Dt=l(cn,"UNet2DConditionModel"),cn.forEach(t),Zt=l(xe,`. Attention processor layers have to be
defined in
`),Je=a(xe,"A",{href:!0,rel:!0});var pn=s(Je);vo=a(pn,"CODE",{});var fn=s(vo);Wt=l(fn,"cross_attention.py"),fn.forEach(t),pn.forEach(t),At=l(xe,`
and be a `),yo=a(xe,"CODE",{});var hn=s(yo);Pt=l(hn,"torch.nn.Module"),hn.forEach(t),jt=l(xe," class."),xe.forEach(t),Ft=m(be),M(ne.$$.fragment,be),St=m(be),M(ae.$$.fragment,be),be.forEach(t),Bt=m(oo),se=a(oo,"DIV",{class:!0});var lt=s(se);M(Ne.$$.fragment,lt),Gt=m(lt),De=a(lt,"P",{});var dt=s(De);qt=l(dt,`Save an attention processor to a directory, so that it can be re-loaded using the
`),Oe=a(dt,"A",{href:!0});var mn=s(Oe);Rt=l(mn,"load_attn_procs()"),mn.forEach(t),Yt=l(dt," method."),dt.forEach(t),lt.forEach(t),oo.forEach(t),Oo=m(o),V=a(o,"H3",{class:!0});var ct=s(V);ie=a(ct,"A",{id:!0,class:!0,href:!0});var un=s(ie);bo=a(un,"SPAN",{});var gn=s(bo);M(Ze.$$.fragment,gn),gn.forEach(t),un.forEach(t),Vt=m(ct),xo=a(ct,"SPAN",{});var _n=s(xo);Xt=l(_n,"TextualInversionLoaderMixin"),_n.forEach(t),ct.forEach(t),Ko=m(o),D=a(o,"DIV",{class:!0});var we=s(D);M(We.$$.fragment,we),Ht=m(we),wo=a(we,"P",{});var vn=s(wo);zt=l(vn,"Mixin class for loading textual inversion tokens and embeddings to the tokenizer and text encoder."),vn.forEach(t),Qt=m(we),I=a(we,"DIV",{class:!0});var J=s(I);M(Ae.$$.fragment,J),Ot=m(J),X=a(J,"P",{});var to=s(X);Kt=l(to,"Load textual inversion embeddings into the text encoder of stable diffusion pipelines. Both "),$o=a(to,"CODE",{});var yn=s($o);er=l(yn,"diffusers"),yn.forEach(t),or=l(to,` and
`),Mo=a(to,"CODE",{});var bn=s(Mo);tr=l(bn,"Automatic1111"),bn.forEach(t),rr=l(to," formats are supported (see example below)."),to.forEach(t),nr=m(J),M(le.$$.fragment,J),ar=m(J),M(de.$$.fragment,J),sr=m(J),ko=a(J,"P",{});var xn=s(ko);ir=l(xn,"Example:"),xn.forEach(t),lr=m(J),M(ce.$$.fragment,J),dr=m(J),To=a(J,"P",{});var wn=s(To);cr=l(wn,"To load a textual inversion embedding vector in Automatic1111 format, make sure to first download the vector,"),wn.forEach(t),pr=m(J),M(pe.$$.fragment,J),J.forEach(t),fr=m(we),fe=a(we,"DIV",{class:!0});var pt=s(fe);M(Pe.$$.fragment,pt),hr=m(pt),Uo=a(pt,"P",{});var $n=s(Uo);mr=l($n,`Maybe convert a prompt into a \u201Cmulti vector\u201D-compatible prompt. If the prompt includes a token that corresponds
to a multi-vector textual inversion embedding, this function will process the prompt so that the special token
is replaced with multiple special tokens each corresponding to one of the vectors. If the prompt has no textual
inversion token or a textual inversion token that is a single vector, the input prompt is simply returned.`),$n.forEach(t),pt.forEach(t),we.forEach(t),et=m(o),H=a(o,"H3",{class:!0});var ft=s(H);he=a(ft,"A",{id:!0,class:!0,href:!0});var Mn=s(he);Lo=a(Mn,"SPAN",{});var kn=s(Lo);M(je.$$.fragment,kn),kn.forEach(t),Mn.forEach(t),ur=m(ft),Eo=a(ft,"SPAN",{});var Tn=s(Eo);gr=l(Tn,"LoraLoaderMixin"),Tn.forEach(t),ft.forEach(t),ot=m(o),N=a(o,"DIV",{class:!0});var q=s(N);M(Fe.$$.fragment,q),_r=m(q),z=a(q,"P",{});var ro=s(z);vr=l(ro,"Utility class for handling the loading LoRA layers into UNet (of class "),Ke=a(ro,"A",{href:!0});var Un=s(Ke);yr=l(Un,"UNet2DConditionModel"),Un.forEach(t),br=l(ro,`) and Text Encoder
(of class `),Se=a(ro,"A",{href:!0,rel:!0});var Ln=s(Se);Co=a(Ln,"CODE",{});var En=s(Co);xr=l(En,"CLIPTextModel"),En.forEach(t),Ln.forEach(t),wr=l(ro,")."),ro.forEach(t),$r=m(q),M(me.$$.fragment,q),Mr=m(q),A=a(q,"DIV",{class:!0});var $e=s(A);M(Be.$$.fragment,$e),kr=m($e),Q=a($e,"P",{});var no=s(Q);Tr=l(no,"Load pretrained attention processor layers (such as LoRA) into "),eo=a(no,"A",{href:!0});var Cn=s(eo);Ur=l(Cn,"UNet2DConditionModel"),Cn.forEach(t),Lr=l(no,` and
`),Ge=a(no,"A",{href:!0,rel:!0});var In=s(Ge);Io=a(In,"CODE",{});var Jn=s(Io);Er=l(Jn,"CLIPTextModel"),Jn.forEach(t),In.forEach(t),Cr=l(no,")."),no.forEach(t),Ir=m($e),M(ue.$$.fragment,$e),Jr=m($e),M(ge.$$.fragment,$e),$e.forEach(t),Nr=m(q),_e=a(q,"DIV",{class:!0});var ht=s(_e);M(qe.$$.fragment,ht),Dr=m(ht),Jo=a(ht,"P",{});var Nn=s(Jo);Zr=l(Nn,"Save the LoRA parameters corresponding to the UNet and the text encoder."),Nn.forEach(t),ht.forEach(t),q.forEach(t),tt=m(o),O=a(o,"H3",{class:!0});var mt=s(O);ve=a(mt,"A",{id:!0,class:!0,href:!0});var Dn=s(ve);No=a(Dn,"SPAN",{});var Zn=s(No);M(Re.$$.fragment,Zn),Zn.forEach(t),Dn.forEach(t),Wr=m(mt),Do=a(mt,"SPAN",{});var Wn=s(Do);Ar=l(Wn,"FromCkptMixin"),Wn.forEach(t),mt.forEach(t),rt=m(o),S=a(o,"DIV",{class:!0});var ao=s(S);M(Ye.$$.fragment,ao),Pr=m(ao),Zo=a(ao,"P",{});var An=s(Zo);jr=l(An,`This helper class allows to directly load .ckpt stable diffusion file_extension
into the respective classes.`),An.forEach(t),Fr=m(ao),P=a(ao,"DIV",{class:!0});var Me=s(P);M(Ve.$$.fragment,Me),Sr=m(Me),Wo=a(Me,"P",{});var Pn=s(Wo);Br=l(Pn,"Instantiate a PyTorch diffusion pipeline from pre-trained pipeline weights saved in the original .ckpt format."),Pn.forEach(t),Gr=m(Me),Xe=a(Me,"P",{});var ut=s(Xe);qr=l(ut,"The pipeline is set in evaluation mode by default using "),Ao=a(ut,"CODE",{});var jn=s(Ao);Rr=l(jn,"model.eval()"),jn.forEach(t),Yr=l(ut," (Dropout modules are deactivated)."),ut.forEach(t),Vr=m(Me),M(ye.$$.fragment,Me),Me.forEach(t),ao.forEach(t),this.h()},h(){p(r,"name","hf:doc:metadata"),p(r,"content",JSON.stringify(ta)),p(f,"id","loaders"),p(f,"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(f,"href","#loaders"),p(d,"class","relative group"),p(Qe,"href","./training/text_inversion.mdx"),p(ke,"href","https://github.com/cloneofsimo/lora"),p(ke,"rel","nofollow"),p(Te,"href","https://arxiv.org/abs/1609.09106"),p(Te,"rel","nofollow"),p(oe,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py"),p(oe,"rel","nofollow"),p(te,"id","loadermixins"),p(te,"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(te,"href","#loadermixins"),p(R,"class","relative group"),p(re,"id","diffusers.loaders.UNet2DConditionLoadersMixin"),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.UNet2DConditionLoadersMixin"),p(Y,"class","relative group"),p(Je,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/cross_attention.py"),p(Je,"rel","nofollow"),p(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Oe,"href","/docs/diffusers/v0.17.0/en/api/loaders#diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs"),p(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(ie,"id","diffusers.loaders.TextualInversionLoaderMixin"),p(ie,"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(ie,"href","#diffusers.loaders.TextualInversionLoaderMixin"),p(V,"class","relative group"),p(I,"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(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(he,"id","diffusers.loaders.LoraLoaderMixin"),p(he,"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(he,"href","#diffusers.loaders.LoraLoaderMixin"),p(H,"class","relative group"),p(Ke,"href","/docs/diffusers/v0.17.0/en/api/models#diffusers.UNet2DConditionModel"),p(Se,"href","https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel"),p(Se,"rel","nofollow"),p(eo,"href","/docs/diffusers/v0.17.0/en/api/models#diffusers.UNet2DConditionModel"),p(Ge,"href","https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel"),p(Ge,"rel","nofollow"),p(A,"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(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(ve,"id","diffusers.loaders.FromCkptMixin"),p(ve,"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(ve,"href","#diffusers.loaders.FromCkptMixin"),p(O,"class","relative group"),p(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(S,"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,r),b(o,y,g),b(o,d,g),e(d,f),e(f,x),k(c,x,null),e(d,v),e(d,w),e(w,u),b(o,_,g),b(o,C,g),e(C,Z),b(o,Yo,g),b(o,G,g),e(G,io),e(io,Qe),e(Qe,gt),e(G,_t),e(G,lo),e(lo,ke),e(ke,vt),e(G,yt),e(G,co),e(co,Te),e(Te,bt),b(o,Vo,g),b(o,ee,g),e(ee,xt),e(ee,oe),e(oe,po),e(po,wt),e(oe,$t),e(ee,Mt),b(o,Xo,g),b(o,Ue,g),e(Ue,fo),e(fo,kt),e(Ue,Tt),b(o,Ho,g),b(o,R,g),e(R,te),e(te,ho),k(Le,ho,null),e(R,Ut),e(R,mo),e(mo,Lt),b(o,zo,g),b(o,Y,g),e(Y,re),e(re,uo),k(Ee,uo,null),e(Y,Et),e(Y,go),e(go,Ct),b(o,Qo,g),b(o,j,g),k(Ce,j,null),e(j,It),e(j,W),k(Ie,W,null),e(W,Jt),e(W,F),e(F,Nt),e(F,_o),e(_o,Dt),e(F,Zt),e(F,Je),e(Je,vo),e(vo,Wt),e(F,At),e(F,yo),e(yo,Pt),e(F,jt),e(W,Ft),k(ne,W,null),e(W,St),k(ae,W,null),e(j,Bt),e(j,se),k(Ne,se,null),e(se,Gt),e(se,De),e(De,qt),e(De,Oe),e(Oe,Rt),e(De,Yt),b(o,Oo,g),b(o,V,g),e(V,ie),e(ie,bo),k(Ze,bo,null),e(V,Vt),e(V,xo),e(xo,Xt),b(o,Ko,g),b(o,D,g),k(We,D,null),e(D,Ht),e(D,wo),e(wo,zt),e(D,Qt),e(D,I),k(Ae,I,null),e(I,Ot),e(I,X),e(X,Kt),e(X,$o),e($o,er),e(X,or),e(X,Mo),e(Mo,tr),e(X,rr),e(I,nr),k(le,I,null),e(I,ar),k(de,I,null),e(I,sr),e(I,ko),e(ko,ir),e(I,lr),k(ce,I,null),e(I,dr),e(I,To),e(To,cr),e(I,pr),k(pe,I,null),e(D,fr),e(D,fe),k(Pe,fe,null),e(fe,hr),e(fe,Uo),e(Uo,mr),b(o,et,g),b(o,H,g),e(H,he),e(he,Lo),k(je,Lo,null),e(H,ur),e(H,Eo),e(Eo,gr),b(o,ot,g),b(o,N,g),k(Fe,N,null),e(N,_r),e(N,z),e(z,vr),e(z,Ke),e(Ke,yr),e(z,br),e(z,Se),e(Se,Co),e(Co,xr),e(z,wr),e(N,$r),k(me,N,null),e(N,Mr),e(N,A),k(Be,A,null),e(A,kr),e(A,Q),e(Q,Tr),e(Q,eo),e(eo,Ur),e(Q,Lr),e(Q,Ge),e(Ge,Io),e(Io,Er),e(Q,Cr),e(A,Ir),k(ue,A,null),e(A,Jr),k(ge,A,null),e(N,Nr),e(N,_e),k(qe,_e,null),e(_e,Dr),e(_e,Jo),e(Jo,Zr),b(o,tt,g),b(o,O,g),e(O,ve),e(ve,No),k(Re,No,null),e(O,Wr),e(O,Do),e(Do,Ar),b(o,rt,g),b(o,S,g),k(Ye,S,null),e(S,Pr),e(S,Zo),e(Zo,jr),e(S,Fr),e(S,P),k(Ve,P,null),e(P,Sr),e(P,Wo),e(Wo,Br),e(P,Gr),e(P,Xe),e(Xe,qr),e(Xe,Ao),e(Ao,Rr),e(Xe,Yr),e(P,Vr),k(ye,P,null),nt=!0},p(o,[g]){const He={};g&2&&(He.$$scope={dirty:g,ctx:o}),ne.$set(He);const Po={};g&2&&(Po.$$scope={dirty:g,ctx:o}),ae.$set(Po);const jo={};g&2&&(jo.$$scope={dirty:g,ctx:o}),le.$set(jo);const Fo={};g&2&&(Fo.$$scope={dirty:g,ctx:o}),de.$set(Fo);const So={};g&2&&(So.$$scope={dirty:g,ctx:o}),ce.$set(So);const K={};g&2&&(K.$$scope={dirty:g,ctx:o}),pe.$set(K);const Bo={};g&2&&(Bo.$$scope={dirty:g,ctx:o}),me.$set(Bo);const Go={};g&2&&(Go.$$scope={dirty:g,ctx:o}),ue.$set(Go);const qo={};g&2&&(qo.$$scope={dirty:g,ctx:o}),ge.$set(qo);const Ro={};g&2&&(Ro.$$scope={dirty:g,ctx:o}),ye.$set(Ro)},i(o){nt||(T(c.$$.fragment,o),T(Le.$$.fragment,o),T(Ee.$$.fragment,o),T(Ce.$$.fragment,o),T(Ie.$$.fragment,o),T(ne.$$.fragment,o),T(ae.$$.fragment,o),T(Ne.$$.fragment,o),T(Ze.$$.fragment,o),T(We.$$.fragment,o),T(Ae.$$.fragment,o),T(le.$$.fragment,o),T(de.$$.fragment,o),T(ce.$$.fragment,o),T(pe.$$.fragment,o),T(Pe.$$.fragment,o),T(je.$$.fragment,o),T(Fe.$$.fragment,o),T(me.$$.fragment,o),T(Be.$$.fragment,o),T(ue.$$.fragment,o),T(ge.$$.fragment,o),T(qe.$$.fragment,o),T(Re.$$.fragment,o),T(Ye.$$.fragment,o),T(Ve.$$.fragment,o),T(ye.$$.fragment,o),nt=!0)},o(o){U(c.$$.fragment,o),U(Le.$$.fragment,o),U(Ee.$$.fragment,o),U(Ce.$$.fragment,o),U(Ie.$$.fragment,o),U(ne.$$.fragment,o),U(ae.$$.fragment,o),U(Ne.$$.fragment,o),U(Ze.$$.fragment,o),U(We.$$.fragment,o),U(Ae.$$.fragment,o),U(le.$$.fragment,o),U(de.$$.fragment,o),U(ce.$$.fragment,o),U(pe.$$.fragment,o),U(Pe.$$.fragment,o),U(je.$$.fragment,o),U(Fe.$$.fragment,o),U(me.$$.fragment,o),U(Be.$$.fragment,o),U(ue.$$.fragment,o),U(ge.$$.fragment,o),U(qe.$$.fragment,o),U(Re.$$.fragment,o),U(Ye.$$.fragment,o),U(Ve.$$.fragment,o),U(ye.$$.fragment,o),nt=!1},d(o){t(r),o&&t(y),o&&t(d),L(c),o&&t(_),o&&t(C),o&&t(Yo),o&&t(G),o&&t(Vo),o&&t(ee),o&&t(Xo),o&&t(Ue),o&&t(Ho),o&&t(R),L(Le),o&&t(zo),o&&t(Y),L(Ee),o&&t(Qo),o&&t(j),L(Ce),L(Ie),L(ne),L(ae),L(Ne),o&&t(Oo),o&&t(V),L(Ze),o&&t(Ko),o&&t(D),L(We),L(Ae),L(le),L(de),L(ce),L(pe),L(Pe),o&&t(et),o&&t(H),L(je),o&&t(ot),o&&t(N),L(Fe),L(me),L(Be),L(ue),L(ge),L(qe),o&&t(tt),o&&t(O),L(Re),o&&t(rt),o&&t(S),L(Ye),L(Ve),L(ye)}}}const ta={local:"loaders",sections:[{local:"loadermixins",sections:[{local:"diffusers.loaders.UNet2DConditionLoadersMixin",title:"UNet2DConditionLoadersMixin"},{local:"diffusers.loaders.TextualInversionLoaderMixin",title:"TextualInversionLoaderMixin"},{local:"diffusers.loaders.LoraLoaderMixin",title:"LoraLoaderMixin"},{local:"diffusers.loaders.FromCkptMixin",title:"FromCkptMixin"}],title:"LoaderMixins"}],title:"Loaders"};function ra(E){return qn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ca extends Fn{constructor(r){super();Sn(this,r,ra,oa,Bn,{})}}export{ca as default,ta as metadata};
