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