import{S as Yt,i as Ht,s as qt,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 as s,x as C,h as a,b as c,G as e,g as N,y as k,q as S,o as T,B as D,v as Qt,L as Xt}from"../../chunks/vendor-hf-doc-builder.js";import{T as Kt}from"../../chunks/Tip-hf-doc-builder.js";import{D as $e}from"../../chunks/Docstring-hf-doc-builder.js";import{C as en}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Bt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as on}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function tn(ce){let l,x,g,m,y,d,w,L,$,O,_;return{c(){l=t("p"),x=r("To use private or "),g=t("a"),m=r("gated models"),y=r(`, log-in with
`),d=t("code"),w=r("huggingface-cli login"),L=r(`. You can also activate the special
`),$=t("a"),O=r("\u201Coffline-mode\u201D"),_=r(` to use this method in a
firewalled environment.`),this.h()},l(A){l=n(A,"P",{});var v=s(l);x=a(v,"To use private or "),g=n(v,"A",{href:!0,rel:!0});var fe=s(g);m=a(fe,"gated models"),fe.forEach(o),y=a(v,`, log-in with
`),d=n(v,"CODE",{});var he=s(d);w=a(he,"huggingface-cli login"),he.forEach(o),L=a(v,`. You can also activate the special
`),$=n(v,"A",{href:!0,rel:!0});var R=s($);O=a(R,"\u201Coffline-mode\u201D"),R.forEach(o),_=a(v,` to use this method in a
firewalled environment.`),v.forEach(o),this.h()},h(){c(g,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),c(g,"rel","nofollow"),c($,"href","https://huggingface.co/transformers/installation.html#offline-mode"),c($,"rel","nofollow")},m(A,v){N(A,l,v),e(l,x),e(l,g),e(g,m),e(l,y),e(l,d),e(d,w),e(l,L),e(l,$),e($,O),e(l,_)},d(A){A&&o(l)}}}function nn(ce){let l,x,g,m,y;return m=new en({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEREUE1TY2hlZHVsZXIlMkMlMjBERElNU2NoZWR1bGVyJTJDJTIwUE5ETVNjaGVkdWxlciUwQSUwQSUyMyUyMERvd25sb2FkJTIwc2NoZWR1bGVyJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTIwYW5kJTIwY2FjaGUuJTBBc2NoZWR1bGVyJTIwJTNEJTIwRERQTVNjaGVkdWxlci5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlJTJGZGRwbS1jaWZhcjEwLTMyJTIyKSUwQSUwQSUyMyUyMEluc3RhbnRpYXRlJTIwRERJTSUyMHNjaGVkdWxlciUyMGNsYXNzJTIwd2l0aCUyMHNhbWUlMjBjb25maWclMjBhcyUyMEREUE0lMEFzY2hlZHVsZXIlMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fY29uZmlnKHNjaGVkdWxlci5jb25maWcpJTBBJTBBJTIzJTIwSW5zdGFudGlhdGUlMjBQTkRNJTIwc2NoZWR1bGVyJTIwY2xhc3MlMjB3aXRoJTIwc2FtZSUyMGNvbmZpZyUyMGFzJTIwRERQTSUwQXNjaGVkdWxlciUyMCUzRCUyMFBORE1TY2hlZHVsZXIuZnJvbV9jb25maWcoc2NoZWR1bGVyLmNvbmZpZyk=",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(){l=t("p"),x=r("Examples:"),g=f(),E(m.$$.fragment)},l(d){l=n(d,"P",{});var w=s(l);x=a(w,"Examples:"),w.forEach(o),g=h(d),C(m.$$.fragment,d)},m(d,w){N(d,l,w),e(l,x),N(d,g,w),k(m,d,w),y=!0},p:Xt,i(d){y||(S(m.$$.fragment,d),y=!0)},o(d){T(m.$$.fragment,d),y=!1},d(d){d&&o(l),d&&o(g),D(m,d)}}}function rn(ce){let l,x,g,m,y,d,w,L,$,O,_,A,v,fe,he,R,to,no,ue,ro,ao,Me,so,io,He,Z,V,Ee,K,lo,Ce,co,qe,u,ee,fo,G,ho,ke,uo,go,ge,mo,po,_o,oe,Se,me,vo,bo,Te,pe,yo,wo,De,xo,$o,M,I,Ne,Mo,Eo,Ie,Co,ko,_e,So,To,Do,F,je,No,Io,Je,jo,Jo,Po,B,Pe,Uo,Lo,Ue,Ao,Ro,Zo,j,Le,Go,Wo,Ae,Oo,Vo,Re,Fo,Bo,Yo,J,te,Ho,Ze,qo,zo,Y,Qo,P,ne,Xo,Ge,Ko,et,H,ot,q,re,tt,W,nt,We,rt,at,ve,st,it,lt,z,ae,dt,Oe,ct,ft,Q,se,ht,Ve,ut,ze;return d=new Bt({}),K=new Bt({}),ee=new $e({props:{name:"class diffusers.ConfigMixin",anchor:"diffusers.ConfigMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/configuration_utils.py#L82"}}),te=new $e({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> (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 model weights saved with
<a href="/docs/diffusers/v0.17.1/en/api/configuration#diffusers.ConfigMixin.save_config">save_config()</a>.</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 where a downloaded pretrained model configuration is cached if the standard cache
is not 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 resume downloading the model weights and configuration files. If set to False, any
incompletely downloaded files are deleted.`,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, 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.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 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(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>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,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, a commit id, or 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;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,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 are 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 <code>False) -- Whether the </code>commit_hash` of the loaded configuration are returned.",name:"return_commit_hash"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/configuration_utils.py#L256",returnDescription:`
<p>A dictionary of all the parameters stored in a JSON configuration file.</p>
`,returnType:`
<p><code>dict</code></p>
`}}),Y=new Kt({props:{$$slots:{default:[tn]},$$scope:{ctx:ce}}}),ne=new $e({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 is loaded) and initiate the Python class.
<code>**kwargs</code> are directly passed to the underlying scheduler/model&#x2019;s <code>__init__</code> method and eventually
overwrite same named arguments in <code>config</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/configuration_utils.py#L160",returnDescription:`
<p>A model or scheduler object instantiated from a config dictionary.</p>
`,returnType:`
<p><a href="/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin">ModelMixin</a> or <a
  href="/docs/diffusers/v0.17.1/en/api/schedulers/overview#diffusers.SchedulerMixin"
>SchedulerMixin</a></p>
`}}),H=new on({props:{anchor:"diffusers.ConfigMixin.from_config.example",$$slots:{default:[nn]},$$scope:{ctx:ce}}}),re=new $e({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.17.1/src/diffusers/configuration_utils.py#L140"}}),ae=new $e({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.17.1/src/diffusers/configuration_utils.py#L561"}}),se=new $e({props:{name:"to_json_string",anchor:"diffusers.ConfigMixin.to_json_string",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/configuration_utils.py#L537",returnDescription:`
<p>String containing all the attributes that make up this configuration instance in JSON format.</p>
`,returnType:`
<p><code>str</code></p>
`}}),{c(){l=t("meta"),x=f(),g=t("h1"),m=t("a"),y=t("span"),E(d.$$.fragment),w=f(),L=t("span"),$=r("Configuration"),O=f(),_=t("p"),A=r("Schedulers from "),v=t("a"),fe=r("SchedulerMixin"),he=r(" and models from "),R=t("a"),to=r("ModelMixin"),no=r(" inherit from "),ue=t("a"),ro=r("ConfigMixin"),ao=r(` which conveniently takes care of storing all the parameters that are
passed to their respective `),Me=t("code"),so=r("__init__"),io=r(" methods in a JSON-configuration file."),He=f(),Z=t("h2"),V=t("a"),Ee=t("span"),E(K.$$.fragment),lo=f(),Ce=t("span"),co=r("ConfigMixin"),qe=f(),u=t("div"),E(ee.$$.fragment),fo=f(),G=t("p"),ho=r("Base class for all configuration classes. Stores all configuration parameters under "),ke=t("code"),uo=r("self.config"),go=r(` Also handles all
methods for loading/downloading/saving classes inheriting from `),ge=t("a"),mo=r("ConfigMixin"),po=r(" with"),_o=f(),oe=t("ul"),Se=t("li"),me=t("a"),vo=r("from_config()"),bo=f(),Te=t("li"),pe=t("a"),yo=r("save_config()"),wo=f(),De=t("p"),xo=r("Class attributes:"),$o=f(),M=t("ul"),I=t("li"),Ne=t("strong"),Mo=r("config_name"),Eo=r(" ("),Ie=t("code"),Co=r("str"),ko=r(`) \u2014 A filename under which the config should stored when calling
`),_e=t("a"),So=r("save_config()"),To=r(" (should be overridden by parent class)."),Do=f(),F=t("li"),je=t("strong"),No=r("ignore_for_config"),Io=r(" ("),Je=t("code"),jo=r("List[str]"),Jo=r(`) \u2014 A list of attributes that should not be saved in the config (should be
overridden by subclass).`),Po=f(),B=t("li"),Pe=t("strong"),Uo=r("has_compatibles"),Lo=r(" ("),Ue=t("code"),Ao=r("bool"),Ro=r(") \u2014 Whether the class has compatible classes (should be overridden by subclass)."),Zo=f(),j=t("li"),Le=t("strong"),Go=r("_deprecated_kwargs"),Wo=r(" ("),Ae=t("code"),Oo=r("List[str]"),Vo=r(`) \u2014 Keyword arguments that are deprecated. Note that the init function
should only have a `),Re=t("code"),Fo=r("kwargs"),Bo=r(` argument if at least one argument is deprecated (should be overridden by
subclass).`),Yo=f(),J=t("div"),E(te.$$.fragment),Ho=f(),Ze=t("p"),qo=r("Load a model or scheduler configuration."),zo=f(),E(Y.$$.fragment),Qo=f(),P=t("div"),E(ne.$$.fragment),Xo=f(),Ge=t("p"),Ko=r("Instantiate a Python class from a config dictionary."),et=f(),E(H.$$.fragment),ot=f(),q=t("div"),E(re.$$.fragment),tt=f(),W=t("p"),nt=r("Save a configuration object to the directory "),We=t("code"),rt=r("save_directory"),at=r(`, so that it can be re-loaded using the
`),ve=t("a"),st=r("from_config()"),it=r(" class method."),lt=f(),z=t("div"),E(ae.$$.fragment),dt=f(),Oe=t("p"),ct=r("Save this instance to a JSON file."),ft=f(),Q=t("div"),E(se.$$.fragment),ht=f(),Ve=t("p"),ut=r("Serializes this instance to a JSON string."),this.h()},l(i){const b=zt('[data-svelte="svelte-1phssyn"]',document.head);l=n(b,"META",{name:!0,content:!0}),b.forEach(o),x=h(i),g=n(i,"H1",{class:!0});var ie=s(g);m=n(ie,"A",{id:!0,class:!0,href:!0});var Fe=s(m);y=n(Fe,"SPAN",{});var gt=s(y);C(d.$$.fragment,gt),gt.forEach(o),Fe.forEach(o),w=h(ie),L=n(ie,"SPAN",{});var mt=s(L);$=a(mt,"Configuration"),mt.forEach(o),ie.forEach(o),O=h(i),_=n(i,"P",{});var U=s(_);A=a(U,"Schedulers from "),v=n(U,"A",{href:!0});var pt=s(v);fe=a(pt,"SchedulerMixin"),pt.forEach(o),he=a(U," and models from "),R=n(U,"A",{href:!0});var _t=s(R);to=a(_t,"ModelMixin"),_t.forEach(o),no=a(U," inherit from "),ue=n(U,"A",{href:!0});var vt=s(ue);ro=a(vt,"ConfigMixin"),vt.forEach(o),ao=a(U,` which conveniently takes care of storing all the parameters that are
passed to their respective `),Me=n(U,"CODE",{});var bt=s(Me);so=a(bt,"__init__"),bt.forEach(o),io=a(U," methods in a JSON-configuration file."),U.forEach(o),He=h(i),Z=n(i,"H2",{class:!0});var Qe=s(Z);V=n(Qe,"A",{id:!0,class:!0,href:!0});var yt=s(V);Ee=n(yt,"SPAN",{});var wt=s(Ee);C(K.$$.fragment,wt),wt.forEach(o),yt.forEach(o),lo=h(Qe),Ce=n(Qe,"SPAN",{});var xt=s(Ce);co=a(xt,"ConfigMixin"),xt.forEach(o),Qe.forEach(o),qe=h(i),u=n(i,"DIV",{class:!0});var p=s(u);C(ee.$$.fragment,p),fo=h(p),G=n(p,"P",{});var be=s(G);ho=a(be,"Base class for all configuration classes. Stores all configuration parameters under "),ke=n(be,"CODE",{});var $t=s(ke);uo=a($t,"self.config"),$t.forEach(o),go=a(be,` Also handles all
methods for loading/downloading/saving classes inheriting from `),ge=n(be,"A",{href:!0});var Mt=s(ge);mo=a(Mt,"ConfigMixin"),Mt.forEach(o),po=a(be," with"),be.forEach(o),_o=h(p),oe=n(p,"UL",{});var Xe=s(oe);Se=n(Xe,"LI",{});var Et=s(Se);me=n(Et,"A",{href:!0});var Ct=s(me);vo=a(Ct,"from_config()"),Ct.forEach(o),Et.forEach(o),bo=h(Xe),Te=n(Xe,"LI",{});var kt=s(Te);pe=n(kt,"A",{href:!0});var St=s(pe);yo=a(St,"save_config()"),St.forEach(o),kt.forEach(o),Xe.forEach(o),wo=h(p),De=n(p,"P",{});var Tt=s(De);xo=a(Tt,"Class attributes:"),Tt.forEach(o),$o=h(p),M=n(p,"UL",{});var X=s(M);I=n(X,"LI",{});var le=s(I);Ne=n(le,"STRONG",{});var Dt=s(Ne);Mo=a(Dt,"config_name"),Dt.forEach(o),Eo=a(le," ("),Ie=n(le,"CODE",{});var Nt=s(Ie);Co=a(Nt,"str"),Nt.forEach(o),ko=a(le,`) \u2014 A filename under which the config should stored when calling
`),_e=n(le,"A",{href:!0});var It=s(_e);So=a(It,"save_config()"),It.forEach(o),To=a(le," (should be overridden by parent class)."),le.forEach(o),Do=h(X),F=n(X,"LI",{});var Be=s(F);je=n(Be,"STRONG",{});var jt=s(je);No=a(jt,"ignore_for_config"),jt.forEach(o),Io=a(Be," ("),Je=n(Be,"CODE",{});var Jt=s(Je);jo=a(Jt,"List[str]"),Jt.forEach(o),Jo=a(Be,`) \u2014 A list of attributes that should not be saved in the config (should be
overridden by subclass).`),Be.forEach(o),Po=h(X),B=n(X,"LI",{});var Ye=s(B);Pe=n(Ye,"STRONG",{});var Pt=s(Pe);Uo=a(Pt,"has_compatibles"),Pt.forEach(o),Lo=a(Ye," ("),Ue=n(Ye,"CODE",{});var Ut=s(Ue);Ao=a(Ut,"bool"),Ut.forEach(o),Ro=a(Ye,") \u2014 Whether the class has compatible classes (should be overridden by subclass)."),Ye.forEach(o),Zo=h(X),j=n(X,"LI",{});var de=s(j);Le=n(de,"STRONG",{});var Lt=s(Le);Go=a(Lt,"_deprecated_kwargs"),Lt.forEach(o),Wo=a(de," ("),Ae=n(de,"CODE",{});var At=s(Ae);Oo=a(At,"List[str]"),At.forEach(o),Vo=a(de,`) \u2014 Keyword arguments that are deprecated. Note that the init function
should only have a `),Re=n(de,"CODE",{});var Rt=s(Re);Fo=a(Rt,"kwargs"),Rt.forEach(o),Bo=a(de,` argument if at least one argument is deprecated (should be overridden by
subclass).`),de.forEach(o),X.forEach(o),Yo=h(p),J=n(p,"DIV",{class:!0});var ye=s(J);C(te.$$.fragment,ye),Ho=h(ye),Ze=n(ye,"P",{});var Zt=s(Ze);qo=a(Zt,"Load a model or scheduler configuration."),Zt.forEach(o),zo=h(ye),C(Y.$$.fragment,ye),ye.forEach(o),Qo=h(p),P=n(p,"DIV",{class:!0});var we=s(P);C(ne.$$.fragment,we),Xo=h(we),Ge=n(we,"P",{});var Gt=s(Ge);Ko=a(Gt,"Instantiate a Python class from a config dictionary."),Gt.forEach(o),et=h(we),C(H.$$.fragment,we),we.forEach(o),ot=h(p),q=n(p,"DIV",{class:!0});var Ke=s(q);C(re.$$.fragment,Ke),tt=h(Ke),W=n(Ke,"P",{});var xe=s(W);nt=a(xe,"Save a configuration object to the directory "),We=n(xe,"CODE",{});var Wt=s(We);rt=a(Wt,"save_directory"),Wt.forEach(o),at=a(xe,`, so that it can be re-loaded using the
`),ve=n(xe,"A",{href:!0});var Ot=s(ve);st=a(Ot,"from_config()"),Ot.forEach(o),it=a(xe," class method."),xe.forEach(o),Ke.forEach(o),lt=h(p),z=n(p,"DIV",{class:!0});var eo=s(z);C(ae.$$.fragment,eo),dt=h(eo),Oe=n(eo,"P",{});var Vt=s(Oe);ct=a(Vt,"Save this instance to a JSON file."),Vt.forEach(o),eo.forEach(o),ft=h(p),Q=n(p,"DIV",{class:!0});var oo=s(Q);C(se.$$.fragment,oo),ht=h(oo),Ve=n(oo,"P",{});var Ft=s(Ve);ut=a(Ft,"Serializes this instance to a JSON string."),Ft.forEach(o),oo.forEach(o),p.forEach(o),this.h()},h(){c(l,"name","hf:doc:metadata"),c(l,"content",JSON.stringify(an)),c(m,"id","configuration"),c(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"),c(m,"href","#configuration"),c(g,"class","relative group"),c(v,"href","/docs/diffusers/v0.17.1/en/api/schedulers/overview#diffusers.SchedulerMixin"),c(R,"href","/docs/diffusers/v0.17.1/en/api/models#diffusers.ModelMixin"),c(ue,"href","/docs/diffusers/v0.17.1/en/api/configuration#diffusers.ConfigMixin"),c(V,"id","diffusers.ConfigMixin"),c(V,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(V,"href","#diffusers.ConfigMixin"),c(Z,"class","relative group"),c(ge,"href","/docs/diffusers/v0.17.1/en/api/configuration#diffusers.ConfigMixin"),c(me,"href","/docs/diffusers/v0.17.1/en/api/configuration#diffusers.ConfigMixin.from_config"),c(pe,"href","/docs/diffusers/v0.17.1/en/api/configuration#diffusers.ConfigMixin.save_config"),c(_e,"href","/docs/diffusers/v0.17.1/en/api/configuration#diffusers.ConfigMixin.save_config"),c(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ve,"href","/docs/diffusers/v0.17.1/en/api/configuration#diffusers.ConfigMixin.from_config"),c(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(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,l),N(i,x,b),N(i,g,b),e(g,m),e(m,y),k(d,y,null),e(g,w),e(g,L),e(L,$),N(i,O,b),N(i,_,b),e(_,A),e(_,v),e(v,fe),e(_,he),e(_,R),e(R,to),e(_,no),e(_,ue),e(ue,ro),e(_,ao),e(_,Me),e(Me,so),e(_,io),N(i,He,b),N(i,Z,b),e(Z,V),e(V,Ee),k(K,Ee,null),e(Z,lo),e(Z,Ce),e(Ce,co),N(i,qe,b),N(i,u,b),k(ee,u,null),e(u,fo),e(u,G),e(G,ho),e(G,ke),e(ke,uo),e(G,go),e(G,ge),e(ge,mo),e(G,po),e(u,_o),e(u,oe),e(oe,Se),e(Se,me),e(me,vo),e(oe,bo),e(oe,Te),e(Te,pe),e(pe,yo),e(u,wo),e(u,De),e(De,xo),e(u,$o),e(u,M),e(M,I),e(I,Ne),e(Ne,Mo),e(I,Eo),e(I,Ie),e(Ie,Co),e(I,ko),e(I,_e),e(_e,So),e(I,To),e(M,Do),e(M,F),e(F,je),e(je,No),e(F,Io),e(F,Je),e(Je,jo),e(F,Jo),e(M,Po),e(M,B),e(B,Pe),e(Pe,Uo),e(B,Lo),e(B,Ue),e(Ue,Ao),e(B,Ro),e(M,Zo),e(M,j),e(j,Le),e(Le,Go),e(j,Wo),e(j,Ae),e(Ae,Oo),e(j,Vo),e(j,Re),e(Re,Fo),e(j,Bo),e(u,Yo),e(u,J),k(te,J,null),e(J,Ho),e(J,Ze),e(Ze,qo),e(J,zo),k(Y,J,null),e(u,Qo),e(u,P),k(ne,P,null),e(P,Xo),e(P,Ge),e(Ge,Ko),e(P,et),k(H,P,null),e(u,ot),e(u,q),k(re,q,null),e(q,tt),e(q,W),e(W,nt),e(W,We),e(We,rt),e(W,at),e(W,ve),e(ve,st),e(W,it),e(u,lt),e(u,z),k(ae,z,null),e(z,dt),e(z,Oe),e(Oe,ct),e(u,ft),e(u,Q),k(se,Q,null),e(Q,ht),e(Q,Ve),e(Ve,ut),ze=!0},p(i,[b]){const ie={};b&2&&(ie.$$scope={dirty:b,ctx:i}),Y.$set(ie);const Fe={};b&2&&(Fe.$$scope={dirty:b,ctx:i}),H.$set(Fe)},i(i){ze||(S(d.$$.fragment,i),S(K.$$.fragment,i),S(ee.$$.fragment,i),S(te.$$.fragment,i),S(Y.$$.fragment,i),S(ne.$$.fragment,i),S(H.$$.fragment,i),S(re.$$.fragment,i),S(ae.$$.fragment,i),S(se.$$.fragment,i),ze=!0)},o(i){T(d.$$.fragment,i),T(K.$$.fragment,i),T(ee.$$.fragment,i),T(te.$$.fragment,i),T(Y.$$.fragment,i),T(ne.$$.fragment,i),T(H.$$.fragment,i),T(re.$$.fragment,i),T(ae.$$.fragment,i),T(se.$$.fragment,i),ze=!1},d(i){o(l),i&&o(x),i&&o(g),D(d),i&&o(O),i&&o(_),i&&o(He),i&&o(Z),D(K),i&&o(qe),i&&o(u),D(ee),D(te),D(Y),D(ne),D(H),D(re),D(ae),D(se)}}}const an={local:"configuration",sections:[{local:"diffusers.ConfigMixin",title:"ConfigMixin"}],title:"Configuration"};function sn(ce){return Qt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gn extends Yt{constructor(l){super();Ht(this,l,sn,rn,qt,{})}}export{gn as default,an as metadata};
