import{S as Qt,i as Xt,s as Yt,e as t,k as f,w as E,t as r,M as Zt,c as n,d as o,m as h,a,x as C,h as s,b as g,G as e,g as I,y as D,q as k,o as P,B as S,v as en,L as on}from"../../chunks/vendor-hf-doc-builder.js";import{T as Ht}from"../../chunks/Tip-hf-doc-builder.js";import{D as ye}from"../../chunks/Docstring-hf-doc-builder.js";import{C as tn}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Kt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as nn}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function rn(W){let c,w,d,m,v,l,p,x;return{c(){c=t("p"),w=r("It is required to be logged in ("),d=t("code"),m=r("huggingface-cli login"),v=r(") when you want to use private or "),l=t("a"),p=r(`gated
models`),x=r("."),this.h()},l(T){c=n(T,"P",{});var y=a(c);w=s(y,"It is required to be logged in ("),d=n(y,"CODE",{});var $=a(d);m=s($,"huggingface-cli login"),$.forEach(o),v=s(y,") when you want to use private or "),l=n(y,"A",{href:!0,rel:!0});var de=a(l);p=s(de,`gated
models`),de.forEach(o),x=s(y,"."),y.forEach(o),this.h()},h(){g(l,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),g(l,"rel","nofollow")},m(T,y){I(T,c,y),e(c,w),e(c,d),e(d,m),e(c,v),e(c,l),e(l,p),e(c,x)},d(T){T&&o(c)}}}function sn(W){let c,w,d,m,v;return{c(){c=t("p"),w=r("Activate the special "),d=t("a"),m=r("\u201Coffline-mode\u201D"),v=r(` to
use this method in a firewalled environment.`),this.h()},l(l){c=n(l,"P",{});var p=a(c);w=s(p,"Activate the special "),d=n(p,"A",{href:!0,rel:!0});var x=a(d);m=s(x,"\u201Coffline-mode\u201D"),x.forEach(o),v=s(p,` to
use this method in a firewalled environment.`),p.forEach(o),this.h()},h(){g(d,"href","https://huggingface.co/transformers/installation.html#offline-mode"),g(d,"rel","nofollow")},m(l,p){I(l,c,p),e(c,w),e(c,d),e(d,m),e(c,v)},d(l){l&&o(c)}}}function an(W){let c,w,d,m,v;return m=new tn({props:{code:`from diffusers import DDPMScheduler, DDIMScheduler, PNDMScheduler

# Download scheduler from huggingface.co and cache.
scheduler = DDPMScheduler.from_pretrained("google/ddpm-cifar10-32")

# Instantiate DDIM scheduler class with same config as DDPM
scheduler = DDIMScheduler.from_config(scheduler.config)

# Instantiate PNDM scheduler class with same config as DDPM
scheduler = PNDMScheduler.from_config(scheduler.config)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DDPMScheduler, DDIMScheduler, PNDMScheduler

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download scheduler from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>scheduler = DDPMScheduler.from_pretrained(<span class="hljs-string">&quot;google/ddpm-cifar10-32&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Instantiate DDIM scheduler class with same config as DDPM</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>scheduler = DDIMScheduler.from_config(scheduler.config)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Instantiate PNDM scheduler class with same config as DDPM</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>scheduler = PNDMScheduler.from_config(scheduler.config)`}}),{c(){c=t("p"),w=r("Examples:"),d=f(),E(m.$$.fragment)},l(l){c=n(l,"P",{});var p=a(c);w=s(p,"Examples:"),p.forEach(o),d=h(l),C(m.$$.fragment,l)},m(l,p){I(l,c,p),e(c,w),I(l,d,p),D(m,l,p),v=!0},p:on,i(l){v||(k(m.$$.fragment,l),v=!0)},o(l){P(m.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(d),S(m,l)}}}function ln(W){let c,w,d,m,v,l,p,x,T,y,$,de,fe,to,no,he,ro,so,ge,ao,io,xe,lo,co,He,q,U,Me,Z,fo,Ee,ho,Ke,u,ee,go,F,uo,Ce,mo,po,ue,_o,vo,bo,oe,De,me,$o,wo,ke,pe,yo,xo,Pe,Mo,Eo,A,L,Se,Co,Do,Ie,ko,Po,_e,So,Io,Ao,V,Ae,Lo,No,Le,jo,Oo,To,z,Ne,qo,Fo,je,Jo,Wo,Uo,N,Oe,Vo,zo,Te,Bo,Go,qe,Ro,Ho,Ko,M,te,Qo,Fe,Xo,Yo,B,Zo,G,et,j,ne,ot,Je,tt,nt,R,rt,H,re,st,J,at,We,it,lt,ve,ct,dt,ft,K,se,ht,Ue,gt,ut,Q,ae,mt,Ve,pt,Qe;return l=new Kt({}),Z=new Kt({}),ee=new ye({props:{name:"class diffusers.ConfigMixin",anchor:"diffusers.ConfigMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/configuration_utils.py#L82"}}),te=new ye({props:{name:"load_config",anchor:"diffusers.ConfigMixin.load_config",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"return_unused_kwargs",val:" = False"},{name:"return_commit_hash",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ConfigMixin.load_config.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a 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 <a href="/docs/diffusers/v0.16.0/en/api/configuration#diffusers.ConfigMixin.save_config">save_config()</a>, e.g.,
<code>./my_model_directory/</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.ConfigMixin.load_config.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.ConfigMixin.load_config.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.ConfigMixin.load_config.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.ConfigMixin.load_config.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.ConfigMixin.load_config.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.ConfigMixin.load_config.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.ConfigMixin.load_config.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>transformers-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"use_auth_token"},{anchor:"diffusers.ConfigMixin.load_config.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.ConfigMixin.load_config.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.ConfigMixin.load_config.return_unused_kwargs",description:"<strong>return_unused_kwargs</strong> (<code>bool</code>, <em>optional</em>, defaults to `False) &#x2014;\nWhether unused keyword arguments of the config shall be returned.",name:"return_unused_kwargs"},{anchor:"diffusers.ConfigMixin.load_config.return_commit_hash",description:"<strong>return_commit_hash</strong> (<code>bool</code>, <em>optional</em>, defaults to `False) &#x2014;\nWhether the commit_hash of the loaded configuration shall be returned.",name:"return_commit_hash"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/configuration_utils.py#L252"}}),B=new Ht({props:{$$slots:{default:[rn]},$$scope:{ctx:W}}}),G=new Ht({props:{$$slots:{default:[sn]},$$scope:{ctx:W}}}),ne=new ye({props:{name:"from_config",anchor:"diffusers.ConfigMixin.from_config",parameters:[{name:"config",val:": typing.Union[diffusers.configuration_utils.FrozenDict, typing.Dict[str, typing.Any]] = None"},{name:"return_unused_kwargs",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ConfigMixin.from_config.config",description:`<strong>config</strong> (<code>Dict[str, Any]</code>) &#x2014;
A config dictionary from which the Python class will be instantiated. Make sure to only load
configuration files of compatible classes.`,name:"config"},{anchor:"diffusers.ConfigMixin.from_config.return_unused_kwargs",description:`<strong>return_unused_kwargs</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether kwargs that are not consumed by the Python class should be returned or not.`,name:"return_unused_kwargs"},{anchor:"diffusers.ConfigMixin.from_config.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to update the configuration object (after it being loaded) and initiate the Python class.
<code>**kwargs</code> will be directly passed to the underlying scheduler/model&#x2019;s <code>__init__</code> method and eventually
overwrite same named arguments of <code>config</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/configuration_utils.py#L160"}}),R=new nn({props:{anchor:"diffusers.ConfigMixin.from_config.example",$$slots:{default:[an]},$$scope:{ctx:W}}}),re=new ye({props:{name:"save_config",anchor:"diffusers.ConfigMixin.save_config",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ConfigMixin.save_config.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory where the configuration JSON file will be saved (will be created if it does not exist).`,name:"save_directory"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/configuration_utils.py#L140"}}),se=new ye({props:{name:"to_json_file",anchor:"diffusers.ConfigMixin.to_json_file",parameters:[{name:"json_file_path",val:": typing.Union[str, os.PathLike]"}],parametersDescription:[{anchor:"diffusers.ConfigMixin.to_json_file.json_file_path",description:`<strong>json_file_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Path to the JSON file in which this configuration instance&#x2019;s parameters will be saved.`,name:"json_file_path"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/configuration_utils.py#L559"}}),ae=new ye({props:{name:"to_json_string",anchor:"diffusers.ConfigMixin.to_json_string",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/configuration_utils.py#L535",returnDescription:`
<p>String containing all the attributes that make up this configuration instance in JSON format.</p>
`,returnType:`
<p><code>str</code></p>
`}}),{c(){c=t("meta"),w=f(),d=t("h1"),m=t("a"),v=t("span"),E(l.$$.fragment),p=f(),x=t("span"),T=r("Configuration"),y=f(),$=t("p"),de=r("Schedulers from "),fe=t("a"),to=r("SchedulerMixin"),no=r(" and models from "),he=t("a"),ro=r("ModelMixin"),so=r(" inherit from "),ge=t("a"),ao=r("ConfigMixin"),io=r(` which conveniently takes care of storing all the parameters that are
passed to their respective `),xe=t("code"),lo=r("__init__"),co=r(" methods in a JSON-configuration file."),He=f(),q=t("h2"),U=t("a"),Me=t("span"),E(Z.$$.fragment),fo=f(),Ee=t("span"),ho=r("ConfigMixin"),Ke=f(),u=t("div"),E(ee.$$.fragment),go=f(),F=t("p"),uo=r("Base class for all configuration classes. Stores all configuration parameters under "),Ce=t("code"),mo=r("self.config"),po=r(` Also handles all
methods for loading/downloading/saving classes inheriting from `),ue=t("a"),_o=r("ConfigMixin"),vo=r(" with"),bo=f(),oe=t("ul"),De=t("li"),me=t("a"),$o=r("from_config()"),wo=f(),ke=t("li"),pe=t("a"),yo=r("save_config()"),xo=f(),Pe=t("p"),Mo=r("Class attributes:"),Eo=f(),A=t("ul"),L=t("li"),Se=t("strong"),Co=r("config_name"),Do=r(" ("),Ie=t("code"),ko=r("str"),Po=r(`) \u2014 A filename under which the config should stored when calling
`),_e=t("a"),So=r("save_config()"),Io=r(" (should be overridden by parent class)."),Ao=f(),V=t("li"),Ae=t("strong"),Lo=r("ignore_for_config"),No=r(" ("),Le=t("code"),jo=r("List[str]"),Oo=r(`) \u2014 A list of attributes that should not be saved in the config (should be
overridden by subclass).`),To=f(),z=t("li"),Ne=t("strong"),qo=r("has_compatibles"),Fo=r(" ("),je=t("code"),Jo=r("bool"),Wo=r(") \u2014 Whether the class has compatible classes (should be overridden by subclass)."),Uo=f(),N=t("li"),Oe=t("strong"),Vo=r("_deprecated_kwargs"),zo=r(" ("),Te=t("code"),Bo=r("List[str]"),Go=r(`) \u2014 Keyword arguments that are deprecated. Note that the init function
should only have a `),qe=t("code"),Ro=r("kwargs"),Ho=r(` argument if at least one argument is deprecated (should be overridden by
subclass).`),Ko=f(),M=t("div"),E(te.$$.fragment),Qo=f(),Fe=t("p"),Xo=r("Instantiate a Python class from a config dictionary"),Yo=f(),E(B.$$.fragment),Zo=f(),E(G.$$.fragment),et=f(),j=t("div"),E(ne.$$.fragment),ot=f(),Je=t("p"),tt=r("Instantiate a Python class from a config dictionary"),nt=f(),E(R.$$.fragment),rt=f(),H=t("div"),E(re.$$.fragment),st=f(),J=t("p"),at=r("Save a configuration object to the directory "),We=t("code"),it=r("save_directory"),lt=r(`, so that it can be re-loaded using the
`),ve=t("a"),ct=r("from_config()"),dt=r(" class method."),ft=f(),K=t("div"),E(se.$$.fragment),ht=f(),Ue=t("p"),gt=r("Save this instance to a JSON file."),ut=f(),Q=t("div"),E(ae.$$.fragment),mt=f(),Ve=t("p"),pt=r("Serializes this instance to a JSON string."),this.h()},l(i){const b=Zt('[data-svelte="svelte-1phssyn"]',document.head);c=n(b,"META",{name:!0,content:!0}),b.forEach(o),w=h(i),d=n(i,"H1",{class:!0});var ie=a(d);m=n(ie,"A",{id:!0,class:!0,href:!0});var ze=a(m);v=n(ze,"SPAN",{});var Be=a(v);C(l.$$.fragment,Be),Be.forEach(o),ze.forEach(o),p=h(ie),x=n(ie,"SPAN",{});var _t=a(x);T=s(_t,"Configuration"),_t.forEach(o),ie.forEach(o),y=h(i),$=n(i,"P",{});var O=a($);de=s(O,"Schedulers from "),fe=n(O,"A",{href:!0});var vt=a(fe);to=s(vt,"SchedulerMixin"),vt.forEach(o),no=s(O," and models from "),he=n(O,"A",{href:!0});var bt=a(he);ro=s(bt,"ModelMixin"),bt.forEach(o),so=s(O," inherit from "),ge=n(O,"A",{href:!0});var $t=a(ge);ao=s($t,"ConfigMixin"),$t.forEach(o),io=s(O,` which conveniently takes care of storing all the parameters that are
passed to their respective `),xe=n(O,"CODE",{});var wt=a(xe);lo=s(wt,"__init__"),wt.forEach(o),co=s(O," methods in a JSON-configuration file."),O.forEach(o),He=h(i),q=n(i,"H2",{class:!0});var Xe=a(q);U=n(Xe,"A",{id:!0,class:!0,href:!0});var yt=a(U);Me=n(yt,"SPAN",{});var xt=a(Me);C(Z.$$.fragment,xt),xt.forEach(o),yt.forEach(o),fo=h(Xe),Ee=n(Xe,"SPAN",{});var Mt=a(Ee);ho=s(Mt,"ConfigMixin"),Mt.forEach(o),Xe.forEach(o),Ke=h(i),u=n(i,"DIV",{class:!0});var _=a(u);C(ee.$$.fragment,_),go=h(_),F=n(_,"P",{});var be=a(F);uo=s(be,"Base class for all configuration classes. Stores all configuration parameters under "),Ce=n(be,"CODE",{});var Et=a(Ce);mo=s(Et,"self.config"),Et.forEach(o),po=s(be,` Also handles all
methods for loading/downloading/saving classes inheriting from `),ue=n(be,"A",{href:!0});var Ct=a(ue);_o=s(Ct,"ConfigMixin"),Ct.forEach(o),vo=s(be," with"),be.forEach(o),bo=h(_),oe=n(_,"UL",{});var Ye=a(oe);De=n(Ye,"LI",{});var Dt=a(De);me=n(Dt,"A",{href:!0});var kt=a(me);$o=s(kt,"from_config()"),kt.forEach(o),Dt.forEach(o),wo=h(Ye),ke=n(Ye,"LI",{});var Pt=a(ke);pe=n(Pt,"A",{href:!0});var St=a(pe);yo=s(St,"save_config()"),St.forEach(o),Pt.forEach(o),Ye.forEach(o),xo=h(_),Pe=n(_,"P",{});var It=a(Pe);Mo=s(It,"Class attributes:"),It.forEach(o),Eo=h(_),A=n(_,"UL",{});var X=a(A);L=n(X,"LI",{});var le=a(L);Se=n(le,"STRONG",{});var At=a(Se);Co=s(At,"config_name"),At.forEach(o),Do=s(le," ("),Ie=n(le,"CODE",{});var Lt=a(Ie);ko=s(Lt,"str"),Lt.forEach(o),Po=s(le,`) \u2014 A filename under which the config should stored when calling
`),_e=n(le,"A",{href:!0});var Nt=a(_e);So=s(Nt,"save_config()"),Nt.forEach(o),Io=s(le," (should be overridden by parent class)."),le.forEach(o),Ao=h(X),V=n(X,"LI",{});var Ge=a(V);Ae=n(Ge,"STRONG",{});var jt=a(Ae);Lo=s(jt,"ignore_for_config"),jt.forEach(o),No=s(Ge," ("),Le=n(Ge,"CODE",{});var Ot=a(Le);jo=s(Ot,"List[str]"),Ot.forEach(o),Oo=s(Ge,`) \u2014 A list of attributes that should not be saved in the config (should be
overridden by subclass).`),Ge.forEach(o),To=h(X),z=n(X,"LI",{});var Re=a(z);Ne=n(Re,"STRONG",{});var Tt=a(Ne);qo=s(Tt,"has_compatibles"),Tt.forEach(o),Fo=s(Re," ("),je=n(Re,"CODE",{});var qt=a(je);Jo=s(qt,"bool"),qt.forEach(o),Wo=s(Re,") \u2014 Whether the class has compatible classes (should be overridden by subclass)."),Re.forEach(o),Uo=h(X),N=n(X,"LI",{});var ce=a(N);Oe=n(ce,"STRONG",{});var Ft=a(Oe);Vo=s(Ft,"_deprecated_kwargs"),Ft.forEach(o),zo=s(ce," ("),Te=n(ce,"CODE",{});var Jt=a(Te);Bo=s(Jt,"List[str]"),Jt.forEach(o),Go=s(ce,`) \u2014 Keyword arguments that are deprecated. Note that the init function
should only have a `),qe=n(ce,"CODE",{});var Wt=a(qe);Ro=s(Wt,"kwargs"),Wt.forEach(o),Ho=s(ce,` argument if at least one argument is deprecated (should be overridden by
subclass).`),ce.forEach(o),X.forEach(o),Ko=h(_),M=n(_,"DIV",{class:!0});var Y=a(M);C(te.$$.fragment,Y),Qo=h(Y),Fe=n(Y,"P",{});var Ut=a(Fe);Xo=s(Ut,"Instantiate a Python class from a config dictionary"),Ut.forEach(o),Yo=h(Y),C(B.$$.fragment,Y),Zo=h(Y),C(G.$$.fragment,Y),Y.forEach(o),et=h(_),j=n(_,"DIV",{class:!0});var $e=a(j);C(ne.$$.fragment,$e),ot=h($e),Je=n($e,"P",{});var Vt=a(Je);tt=s(Vt,"Instantiate a Python class from a config dictionary"),Vt.forEach(o),nt=h($e),C(R.$$.fragment,$e),$e.forEach(o),rt=h(_),H=n(_,"DIV",{class:!0});var Ze=a(H);C(re.$$.fragment,Ze),st=h(Ze),J=n(Ze,"P",{});var we=a(J);at=s(we,"Save a configuration object to the directory "),We=n(we,"CODE",{});var zt=a(We);it=s(zt,"save_directory"),zt.forEach(o),lt=s(we,`, so that it can be re-loaded using the
`),ve=n(we,"A",{href:!0});var Bt=a(ve);ct=s(Bt,"from_config()"),Bt.forEach(o),dt=s(we," class method."),we.forEach(o),Ze.forEach(o),ft=h(_),K=n(_,"DIV",{class:!0});var eo=a(K);C(se.$$.fragment,eo),ht=h(eo),Ue=n(eo,"P",{});var Gt=a(Ue);gt=s(Gt,"Save this instance to a JSON file."),Gt.forEach(o),eo.forEach(o),ut=h(_),Q=n(_,"DIV",{class:!0});var oo=a(Q);C(ae.$$.fragment,oo),mt=h(oo),Ve=n(oo,"P",{});var Rt=a(Ve);pt=s(Rt,"Serializes this instance to a JSON string."),Rt.forEach(o),oo.forEach(o),_.forEach(o),this.h()},h(){g(c,"name","hf:doc:metadata"),g(c,"content",JSON.stringify(cn)),g(m,"id","configuration"),g(m,"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"),g(m,"href","#configuration"),g(d,"class","relative group"),g(fe,"href","/docs/diffusers/v0.16.0/en/api/schedulers/overview#diffusers.SchedulerMixin"),g(he,"href","/docs/diffusers/v0.16.0/en/api/models#diffusers.ModelMixin"),g(ge,"href","/docs/diffusers/v0.16.0/en/api/configuration#diffusers.ConfigMixin"),g(U,"id","diffusers.ConfigMixin"),g(U,"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"),g(U,"href","#diffusers.ConfigMixin"),g(q,"class","relative group"),g(ue,"href","/docs/diffusers/v0.16.0/en/api/configuration#diffusers.ConfigMixin"),g(me,"href","/docs/diffusers/v0.16.0/en/api/configuration#diffusers.ConfigMixin.from_config"),g(pe,"href","/docs/diffusers/v0.16.0/en/api/configuration#diffusers.ConfigMixin.save_config"),g(_e,"href","/docs/diffusers/v0.16.0/en/api/configuration#diffusers.ConfigMixin.save_config"),g(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(ve,"href","/docs/diffusers/v0.16.0/en/api/configuration#diffusers.ConfigMixin.from_config"),g(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(u,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(i,b){e(document.head,c),I(i,w,b),I(i,d,b),e(d,m),e(m,v),D(l,v,null),e(d,p),e(d,x),e(x,T),I(i,y,b),I(i,$,b),e($,de),e($,fe),e(fe,to),e($,no),e($,he),e(he,ro),e($,so),e($,ge),e(ge,ao),e($,io),e($,xe),e(xe,lo),e($,co),I(i,He,b),I(i,q,b),e(q,U),e(U,Me),D(Z,Me,null),e(q,fo),e(q,Ee),e(Ee,ho),I(i,Ke,b),I(i,u,b),D(ee,u,null),e(u,go),e(u,F),e(F,uo),e(F,Ce),e(Ce,mo),e(F,po),e(F,ue),e(ue,_o),e(F,vo),e(u,bo),e(u,oe),e(oe,De),e(De,me),e(me,$o),e(oe,wo),e(oe,ke),e(ke,pe),e(pe,yo),e(u,xo),e(u,Pe),e(Pe,Mo),e(u,Eo),e(u,A),e(A,L),e(L,Se),e(Se,Co),e(L,Do),e(L,Ie),e(Ie,ko),e(L,Po),e(L,_e),e(_e,So),e(L,Io),e(A,Ao),e(A,V),e(V,Ae),e(Ae,Lo),e(V,No),e(V,Le),e(Le,jo),e(V,Oo),e(A,To),e(A,z),e(z,Ne),e(Ne,qo),e(z,Fo),e(z,je),e(je,Jo),e(z,Wo),e(A,Uo),e(A,N),e(N,Oe),e(Oe,Vo),e(N,zo),e(N,Te),e(Te,Bo),e(N,Go),e(N,qe),e(qe,Ro),e(N,Ho),e(u,Ko),e(u,M),D(te,M,null),e(M,Qo),e(M,Fe),e(Fe,Xo),e(M,Yo),D(B,M,null),e(M,Zo),D(G,M,null),e(u,et),e(u,j),D(ne,j,null),e(j,ot),e(j,Je),e(Je,tt),e(j,nt),D(R,j,null),e(u,rt),e(u,H),D(re,H,null),e(H,st),e(H,J),e(J,at),e(J,We),e(We,it),e(J,lt),e(J,ve),e(ve,ct),e(J,dt),e(u,ft),e(u,K),D(se,K,null),e(K,ht),e(K,Ue),e(Ue,gt),e(u,ut),e(u,Q),D(ae,Q,null),e(Q,mt),e(Q,Ve),e(Ve,pt),Qe=!0},p(i,[b]){const ie={};b&2&&(ie.$$scope={dirty:b,ctx:i}),B.$set(ie);const ze={};b&2&&(ze.$$scope={dirty:b,ctx:i}),G.$set(ze);const Be={};b&2&&(Be.$$scope={dirty:b,ctx:i}),R.$set(Be)},i(i){Qe||(k(l.$$.fragment,i),k(Z.$$.fragment,i),k(ee.$$.fragment,i),k(te.$$.fragment,i),k(B.$$.fragment,i),k(G.$$.fragment,i),k(ne.$$.fragment,i),k(R.$$.fragment,i),k(re.$$.fragment,i),k(se.$$.fragment,i),k(ae.$$.fragment,i),Qe=!0)},o(i){P(l.$$.fragment,i),P(Z.$$.fragment,i),P(ee.$$.fragment,i),P(te.$$.fragment,i),P(B.$$.fragment,i),P(G.$$.fragment,i),P(ne.$$.fragment,i),P(R.$$.fragment,i),P(re.$$.fragment,i),P(se.$$.fragment,i),P(ae.$$.fragment,i),Qe=!1},d(i){o(c),i&&o(w),i&&o(d),S(l),i&&o(y),i&&o($),i&&o(He),i&&o(q),S(Z),i&&o(Ke),i&&o(u),S(ee),S(te),S(B),S(G),S(ne),S(R),S(re),S(se),S(ae)}}}const cn={local:"configuration",sections:[{local:"diffusers.ConfigMixin",title:"ConfigMixin"}],title:"Configuration"};function dn(W){return en(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _n extends Qt{constructor(c){super();Xt(this,c,dn,ln,Yt,{})}}export{_n as default,cn as metadata};
