import{S as hl,i as ml,s as bl,e as s,k as a,w as h,t as l,M as _l,c as o,d as r,m as d,a as f,x as m,h as i,b as c,G as t,g,y as b,q as _,o as $,B as E,v as $l,L as El}from"../../chunks/vendor-hf-doc-builder.js";import{T as yl}from"../../chunks/Tip-hf-doc-builder.js";import{D as F}from"../../chunks/Docstring-hf-doc-builder.js";import{C as or}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Eo}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as wl}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Dl(nt){let v,C,w,u,D,p,R,Z,Se,H,Y,Le,V,x,ee,te,Fe,P,be,T,Ce,_e,L,$e,y,j,re,se,xe,oe,z,Pe,B,Te;return{c(){v=s("p"),C=l("\u{1F917} Diffusers has following logging levels:"),w=a(),u=s("ul"),D=s("li"),p=l("50: "),R=s("code"),Z=l("diffusers.logging.CRITICAL"),Se=l(" or "),H=s("code"),Y=l("diffusers.logging.FATAL"),Le=a(),V=s("li"),x=l("40: "),ee=s("code"),te=l("diffusers.logging.ERROR"),Fe=a(),P=s("li"),be=l("30: "),T=s("code"),Ce=l("diffusers.logging.WARNING"),_e=l(" or "),L=s("code"),$e=l("diffusers.logging.WARN"),y=a(),j=s("li"),re=l("20: "),se=s("code"),xe=l("diffusers.logging.INFO"),oe=a(),z=s("li"),Pe=l("10: "),B=s("code"),Te=l("diffusers.logging.DEBUG")},l(A){v=o(A,"P",{});var k=f(v);C=i(k,"\u{1F917} Diffusers has following logging levels:"),k.forEach(r),w=d(A),u=o(A,"UL",{});var N=f(u);D=o(N,"LI",{});var le=f(D);p=i(le,"50: "),R=o(le,"CODE",{});var Ee=f(R);Z=i(Ee,"diffusers.logging.CRITICAL"),Ee.forEach(r),Se=i(le," or "),H=o(le,"CODE",{});var gt=f(H);Y=i(gt,"diffusers.logging.FATAL"),gt.forEach(r),le.forEach(r),Le=d(N),V=o(N,"LI",{});var ke=f(V);x=i(ke,"40: "),ee=o(ke,"CODE",{});var ye=f(ee);te=i(ye,"diffusers.logging.ERROR"),ye.forEach(r),ke.forEach(r),Fe=d(N),P=o(N,"LI",{});var ie=f(P);be=i(ie,"30: "),T=o(ie,"CODE",{});var at=f(T);Ce=i(at,"diffusers.logging.WARNING"),at.forEach(r),_e=i(ie," or "),L=o(ie,"CODE",{});var Ge=f(L);$e=i(Ge,"diffusers.logging.WARN"),Ge.forEach(r),ie.forEach(r),y=d(N),j=o(N,"LI",{});var U=f(j);re=i(U,"20: "),se=o(U,"CODE",{});var Ve=f(se);xe=i(Ve,"diffusers.logging.INFO"),Ve.forEach(r),U.forEach(r),oe=d(N),z=o(N,"LI",{});var I=f(z);Pe=i(I,"10: "),B=o(I,"CODE",{});var dt=f(B);Te=i(dt,"diffusers.logging.DEBUG"),dt.forEach(r),I.forEach(r),N.forEach(r)},m(A,k){g(A,v,k),t(v,C),g(A,w,k),g(A,u,k),t(u,D),t(D,p),t(D,R),t(R,Z),t(D,Se),t(D,H),t(H,Y),t(u,Le),t(u,V),t(V,x),t(V,ee),t(ee,te),t(u,Fe),t(u,P),t(P,be),t(P,T),t(T,Ce),t(P,_e),t(P,L),t(L,$e),t(u,y),t(u,j),t(j,re),t(j,se),t(se,xe),t(u,oe),t(u,z),t(z,Pe),t(z,B),t(B,Te)},d(A){A&&r(v),A&&r(w),A&&r(u)}}}function Il(nt){let v,C,w,u,D;return u=new or({props:{code:"    [LEVELNAME|FILENAME|LINE NUMBER] TIME >> MESSAGE",highlighted:'    [LEVELNAME|<span class="hljs-type">FILENAME</span>|<span class="hljs-type">LINE</span> NUMBER] TIME &gt;&gt; MESSAGE'}}),{c(){v=s("p"),C=l("Enable explicit formatting for every HuggingFace Diffusers\u2019 logger. The explicit formatter is as follows:"),w=a(),h(u.$$.fragment)},l(p){v=o(p,"P",{});var R=f(v);C=i(R,"Enable explicit formatting for every HuggingFace Diffusers\u2019 logger. The explicit formatter is as follows:"),R.forEach(r),w=d(p),m(u.$$.fragment,p)},m(p,R){g(p,v,R),t(v,C),g(p,w,R),b(u,p,R),D=!0},p:El,i(p){D||(_(u.$$.fragment,p),D=!0)},o(p){$(u.$$.fragment,p),D=!1},d(p){p&&r(v),p&&r(w),E(u,p)}}}function Rl(nt){let v,C,w,u,D,p,R,Z,Se,H,Y,Le,V,x,ee,te,Fe,P,be,T,Ce,_e,L,$e,y,j,re,se,xe,oe,z,Pe,B,Te,A,k,N,le,Ee,gt,ke,ye,ie,at,Ge,U,Ve,I,dt,Dt,qr,Mr,It,Hr,Yr,Rt,jr,zr,At,Jr,Kr,lr,Be,ir,ut,Qr,fr,Ue,nr,J,Xr,ct,Zr,es,pt,ts,rs,gr,O,we,Nt,ss,os,Ot,ls,is,fs,vt,St,ns,gs,as,De,Lt,ds,us,Ft,cs,ps,vs,ht,Ct,hs,ms,bs,mt,xt,_s,$s,ar,G,Es,Pt,ys,ws,bt,Ds,Is,_t,Rs,As,dr,fe,Ie,Tt,We,Ns,kt,Os,ur,ne,qe,Ss,Me,Ls,Gt,Fs,Cs,cr,ge,He,xs,Ye,Ps,Vt,Ts,ks,pr,ae,je,Gs,ze,Vs,Bt,Bs,Us,vr,de,Je,Ws,Ke,qs,Ut,Ms,Hs,hr,ue,Re,Wt,Qe,Ys,qt,js,mr,W,Xe,zs,Mt,Js,Ks,Ae,br,ce,Ze,Qs,Ht,Xs,_r,q,et,Zs,Yt,eo,to,jt,ro,$r,pe,tt,so,zt,oo,Er,ve,rt,lo,Jt,io,yr,K,st,fo,Ne,no,wr,M,ot,go,Kt,ao,uo,Qt,co,Dr,he,lt,po,Xt,vo,Ir,me,it,ho,Zt,mo,Rr;return p=new Eo({}),L=new or({props:{code:`import diffusers

diffusers.logging.set_verbosity_info()`,highlighted:`<span class="hljs-keyword">import</span> diffusers

diffusers.logging.set_verbosity_info()`}}),U=new or({props:{code:"DIFFUSERS_VERBOSITY=error ./myprogram.py",highlighted:"DIFFUSERS_VERBOSITY=error ./myprogram.py"}}),Be=new or({props:{code:"DIFFUSERS_NO_ADVISORY_WARNINGS=1 ./myprogram.py",highlighted:"DIFFUSERS_NO_ADVISORY_WARNINGS=1 ./myprogram.py"}}),Ue=new or({props:{code:`from diffusers.utils import logging

logging.set_verbosity_info()
logger = logging.get_logger("diffusers")
logger.info("INFO")
logger.warning("WARN")`,highlighted:`<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> logging

logging.set_verbosity_info()
logger = logging.get_logger(<span class="hljs-string">&quot;diffusers&quot;</span>)
logger.info(<span class="hljs-string">&quot;INFO&quot;</span>)
logger.warning(<span class="hljs-string">&quot;WARN&quot;</span>)`}}),We=new Eo({}),qe=new F({props:{name:"diffusers.utils.logging.set_verbosity_error",anchor:"diffusers.utils.logging.set_verbosity_error",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L182"}}),He=new F({props:{name:"diffusers.utils.logging.set_verbosity_warning",anchor:"diffusers.utils.logging.set_verbosity_warning",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L172"}}),je=new F({props:{name:"diffusers.utils.logging.set_verbosity_info",anchor:"diffusers.utils.logging.set_verbosity_info",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L167"}}),Je=new F({props:{name:"diffusers.utils.logging.set_verbosity_debug",anchor:"diffusers.utils.logging.set_verbosity_debug",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L177"}}),Qe=new Eo({}),Xe=new F({props:{name:"diffusers.utils.logging.get_verbosity",anchor:"diffusers.utils.logging.get_verbosity",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L125",returnDescription:`
<p>The logging level.</p>
`,returnType:`
<p><code>int</code></p>
`}}),Ae=new yl({props:{$$slots:{default:[Dl]},$$scope:{ctx:nt}}}),Ze=new F({props:{name:"diffusers.utils.logging.set_verbosity",anchor:"diffusers.utils.logging.set_verbosity",parameters:[{name:"verbosity",val:": int"}],parametersDescription:[{anchor:"diffusers.utils.logging.set_verbosity.verbosity",description:`<strong>verbosity</strong> (<code>int</code>) &#x2014;
Logging level, e.g., one of:</p>
<ul>
<li><code>diffusers.logging.CRITICAL</code> or <code>diffusers.logging.FATAL</code></li>
<li><code>diffusers.logging.ERROR</code></li>
<li><code>diffusers.logging.WARNING</code> or <code>diffusers.logging.WARN</code></li>
<li><code>diffusers.logging.INFO</code></li>
<li><code>diffusers.logging.DEBUG</code></li>
</ul>`,name:"verbosity"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L148"}}),et=new F({props:{name:"diffusers.utils.get_logger",anchor:"diffusers.utils.get_logger",parameters:[{name:"name",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L111"}}),tt=new F({props:{name:"diffusers.utils.logging.enable_default_handler",anchor:"diffusers.utils.logging.enable_default_handler",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L196"}}),rt=new F({props:{name:"diffusers.utils.logging.disable_default_handler",anchor:"diffusers.utils.logging.disable_default_handler",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L187"}}),st=new F({props:{name:"diffusers.utils.logging.enable_explicit_format",anchor:"diffusers.utils.logging.enable_explicit_format",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L242"}}),Ne=new wl({props:{anchor:"diffusers.utils.logging.enable_explicit_format.example",$$slots:{default:[Il]},$$scope:{ctx:nt}}}),ot=new F({props:{name:"diffusers.utils.logging.reset_format",anchor:"diffusers.utils.logging.reset_format",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L257"}}),lt=new F({props:{name:"diffusers.utils.logging.enable_progress_bar",anchor:"diffusers.utils.logging.enable_progress_bar",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L333"}}),it=new F({props:{name:"diffusers.utils.logging.disable_progress_bar",anchor:"diffusers.utils.logging.disable_progress_bar",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/utils/logging.py#L339"}}),{c(){v=s("meta"),C=a(),w=s("h1"),u=s("a"),D=s("span"),h(p.$$.fragment),R=a(),Z=s("span"),Se=l("Logging"),H=a(),Y=s("p"),Le=l("\u{1F9E8} Diffusers has a centralized logging system, so that you can setup the verbosity of the library easily."),V=a(),x=s("p"),ee=l("Currently the default verbosity of the library is "),te=s("code"),Fe=l("WARNING"),P=l("."),be=a(),T=s("p"),Ce=l(`To change the level of verbosity, just use one of the direct setters. For instance, here is how to change the verbosity
to the INFO level.`),_e=a(),h(L.$$.fragment),$e=a(),y=s("p"),j=l("You can also use the environment variable "),re=s("code"),se=l("DIFFUSERS_VERBOSITY"),xe=l(` to override the default verbosity. You can set it
to one of the following: `),oe=s("code"),z=l("debug"),Pe=l(", "),B=s("code"),Te=l("info"),A=l(", "),k=s("code"),N=l("warning"),le=l(", "),Ee=s("code"),gt=l("error"),ke=l(", "),ye=s("code"),ie=l("critical"),at=l(". For example:"),Ge=a(),h(U.$$.fragment),Ve=a(),I=s("p"),dt=l("Additionally, some "),Dt=s("code"),qr=l("warnings"),Mr=l(` can be disabled by setting the environment variable
`),It=s("code"),Hr=l("DIFFUSERS_NO_ADVISORY_WARNINGS"),Yr=l(" to a true value, like "),Rt=s("em"),jr=l("1"),zr=l(`. This will disable any warning that is logged using
`),At=s("code"),Jr=l("logger.warning_advice"),Kr=l(". For example:"),lr=a(),h(Be.$$.fragment),ir=a(),ut=s("p"),Qr=l("Here is an example of how to use the same logger as the library in your own module or script:"),fr=a(),h(Ue.$$.fragment),nr=a(),J=s("p"),Xr=l(`All the methods of this logging module are documented below, the main ones are
`),ct=s("a"),Zr=l("logging.get_verbosity()"),es=l(` to get the current level of verbosity in the logger and
`),pt=s("a"),ts=l("logging.set_verbosity()"),rs=l(` to set the verbosity to the level of your choice. In order (from the least
verbose to the most verbose), those levels (with their corresponding int values in parenthesis) are:`),gr=a(),O=s("ul"),we=s("li"),Nt=s("code"),ss=l("diffusers.logging.CRITICAL"),os=l(" or "),Ot=s("code"),ls=l("diffusers.logging.FATAL"),is=l(` (int value, 50): only report the most
critical errors.`),fs=a(),vt=s("li"),St=s("code"),ns=l("diffusers.logging.ERROR"),gs=l(" (int value, 40): only report errors."),as=a(),De=s("li"),Lt=s("code"),ds=l("diffusers.logging.WARNING"),us=l(" or "),Ft=s("code"),cs=l("diffusers.logging.WARN"),ps=l(` (int value, 30): only reports error and
warnings. This the default level used by the library.`),vs=a(),ht=s("li"),Ct=s("code"),hs=l("diffusers.logging.INFO"),ms=l(" (int value, 20): reports error, warnings and basic information."),bs=a(),mt=s("li"),xt=s("code"),_s=l("diffusers.logging.DEBUG"),$s=l(" (int value, 10): report all information."),ar=a(),G=s("p"),Es=l("By default, "),Pt=s("code"),ys=l("tqdm"),ws=l(" progress bars will be displayed during model download. "),bt=s("a"),Ds=l("logging.disable_progress_bar()"),Is=l(" and "),_t=s("a"),Rs=l("logging.enable_progress_bar()"),As=l(" can be used to suppress or unsuppress this behavior."),dr=a(),fe=s("h2"),Ie=s("a"),Tt=s("span"),h(We.$$.fragment),Ns=a(),kt=s("span"),Os=l("Base setters"),ur=a(),ne=s("div"),h(qe.$$.fragment),Ss=a(),Me=s("p"),Ls=l("Set the verbosity to the "),Gt=s("code"),Fs=l("ERROR"),Cs=l(" level."),cr=a(),ge=s("div"),h(He.$$.fragment),xs=a(),Ye=s("p"),Ps=l("Set the verbosity to the "),Vt=s("code"),Ts=l("WARNING"),ks=l(" level."),pr=a(),ae=s("div"),h(je.$$.fragment),Gs=a(),ze=s("p"),Vs=l("Set the verbosity to the "),Bt=s("code"),Bs=l("INFO"),Us=l(" level."),vr=a(),de=s("div"),h(Je.$$.fragment),Ws=a(),Ke=s("p"),qs=l("Set the verbosity to the "),Ut=s("code"),Ms=l("DEBUG"),Hs=l(" level."),hr=a(),ue=s("h2"),Re=s("a"),Wt=s("span"),h(Qe.$$.fragment),Ys=a(),qt=s("span"),js=l("Other functions"),mr=a(),W=s("div"),h(Xe.$$.fragment),zs=a(),Mt=s("p"),Js=l("Return the current level for the \u{1F917} Diffusers\u2019 root logger as an int."),Ks=a(),h(Ae.$$.fragment),br=a(),ce=s("div"),h(Ze.$$.fragment),Qs=a(),Ht=s("p"),Xs=l("Set the verbosity level for the \u{1F917} Diffusers\u2019 root logger."),_r=a(),q=s("div"),h(et.$$.fragment),Zs=a(),Yt=s("p"),eo=l("Return a logger with the specified name."),to=a(),jt=s("p"),ro=l("This function is not supposed to be directly accessed unless you are writing a custom diffusers module."),$r=a(),pe=s("div"),h(tt.$$.fragment),so=a(),zt=s("p"),oo=l("Enable the default handler of the HuggingFace Diffusers\u2019 root logger."),Er=a(),ve=s("div"),h(rt.$$.fragment),lo=a(),Jt=s("p"),io=l("Disable the default handler of the HuggingFace Diffusers\u2019 root logger."),yr=a(),K=s("div"),h(st.$$.fragment),fo=a(),h(Ne.$$.fragment),no=l(`
All handlers currently bound to the root logger are affected by this method.`),wr=a(),M=s("div"),h(ot.$$.fragment),go=a(),Kt=s("p"),ao=l("Resets the formatting for HuggingFace Diffusers\u2019 loggers."),uo=a(),Qt=s("p"),co=l("All handlers currently bound to the root logger are affected by this method."),Dr=a(),he=s("div"),h(lt.$$.fragment),po=a(),Xt=s("p"),vo=l("Enable tqdm progress bar."),Ir=a(),me=s("div"),h(it.$$.fragment),ho=a(),Zt=s("p"),mo=l("Disable tqdm progress bar."),this.h()},l(e){const n=_l('[data-svelte="svelte-1phssyn"]',document.head);v=o(n,"META",{name:!0,content:!0}),n.forEach(r),C=d(e),w=o(e,"H1",{class:!0});var ft=f(w);u=o(ft,"A",{id:!0,class:!0,href:!0});var er=f(u);D=o(er,"SPAN",{});var yo=f(D);m(p.$$.fragment,yo),yo.forEach(r),er.forEach(r),R=d(ft),Z=o(ft,"SPAN",{});var wo=f(Z);Se=i(wo,"Logging"),wo.forEach(r),ft.forEach(r),H=d(e),Y=o(e,"P",{});var Do=f(Y);Le=i(Do,"\u{1F9E8} Diffusers has a centralized logging system, so that you can setup the verbosity of the library easily."),Do.forEach(r),V=d(e),x=o(e,"P",{});var Ar=f(x);ee=i(Ar,"Currently the default verbosity of the library is "),te=o(Ar,"CODE",{});var Io=f(te);Fe=i(Io,"WARNING"),Io.forEach(r),P=i(Ar,"."),Ar.forEach(r),be=d(e),T=o(e,"P",{});var Ro=f(T);Ce=i(Ro,`To change the level of verbosity, just use one of the direct setters. For instance, here is how to change the verbosity
to the INFO level.`),Ro.forEach(r),_e=d(e),m(L.$$.fragment,e),$e=d(e),y=o(e,"P",{});var S=f(y);j=i(S,"You can also use the environment variable "),re=o(S,"CODE",{});var Ao=f(re);se=i(Ao,"DIFFUSERS_VERBOSITY"),Ao.forEach(r),xe=i(S,` to override the default verbosity. You can set it
to one of the following: `),oe=o(S,"CODE",{});var No=f(oe);z=i(No,"debug"),No.forEach(r),Pe=i(S,", "),B=o(S,"CODE",{});var Oo=f(B);Te=i(Oo,"info"),Oo.forEach(r),A=i(S,", "),k=o(S,"CODE",{});var So=f(k);N=i(So,"warning"),So.forEach(r),le=i(S,", "),Ee=o(S,"CODE",{});var Lo=f(Ee);gt=i(Lo,"error"),Lo.forEach(r),ke=i(S,", "),ye=o(S,"CODE",{});var Fo=f(ye);ie=i(Fo,"critical"),Fo.forEach(r),at=i(S,". For example:"),S.forEach(r),Ge=d(e),m(U.$$.fragment,e),Ve=d(e),I=o(e,"P",{});var Q=f(I);dt=i(Q,"Additionally, some "),Dt=o(Q,"CODE",{});var Co=f(Dt);qr=i(Co,"warnings"),Co.forEach(r),Mr=i(Q,` can be disabled by setting the environment variable
`),It=o(Q,"CODE",{});var xo=f(It);Hr=i(xo,"DIFFUSERS_NO_ADVISORY_WARNINGS"),xo.forEach(r),Yr=i(Q," to a true value, like "),Rt=o(Q,"EM",{});var Po=f(Rt);jr=i(Po,"1"),Po.forEach(r),zr=i(Q,`. This will disable any warning that is logged using
`),At=o(Q,"CODE",{});var To=f(At);Jr=i(To,"logger.warning_advice"),To.forEach(r),Kr=i(Q,". For example:"),Q.forEach(r),lr=d(e),m(Be.$$.fragment,e),ir=d(e),ut=o(e,"P",{});var ko=f(ut);Qr=i(ko,"Here is an example of how to use the same logger as the library in your own module or script:"),ko.forEach(r),fr=d(e),m(Ue.$$.fragment,e),nr=d(e),J=o(e,"P",{});var $t=f(J);Xr=i($t,`All the methods of this logging module are documented below, the main ones are
`),ct=o($t,"A",{href:!0});var Go=f(ct);Zr=i(Go,"logging.get_verbosity()"),Go.forEach(r),es=i($t,` to get the current level of verbosity in the logger and
`),pt=o($t,"A",{href:!0});var Vo=f(pt);ts=i(Vo,"logging.set_verbosity()"),Vo.forEach(r),rs=i($t,` to set the verbosity to the level of your choice. In order (from the least
verbose to the most verbose), those levels (with their corresponding int values in parenthesis) are:`),$t.forEach(r),gr=d(e),O=o(e,"UL",{});var X=f(O);we=o(X,"LI",{});var tr=f(we);Nt=o(tr,"CODE",{});var Bo=f(Nt);ss=i(Bo,"diffusers.logging.CRITICAL"),Bo.forEach(r),os=i(tr," or "),Ot=o(tr,"CODE",{});var Uo=f(Ot);ls=i(Uo,"diffusers.logging.FATAL"),Uo.forEach(r),is=i(tr,` (int value, 50): only report the most
critical errors.`),tr.forEach(r),fs=d(X),vt=o(X,"LI",{});var bo=f(vt);St=o(bo,"CODE",{});var Wo=f(St);ns=i(Wo,"diffusers.logging.ERROR"),Wo.forEach(r),gs=i(bo," (int value, 40): only report errors."),bo.forEach(r),as=d(X),De=o(X,"LI",{});var rr=f(De);Lt=o(rr,"CODE",{});var qo=f(Lt);ds=i(qo,"diffusers.logging.WARNING"),qo.forEach(r),us=i(rr," or "),Ft=o(rr,"CODE",{});var Mo=f(Ft);cs=i(Mo,"diffusers.logging.WARN"),Mo.forEach(r),ps=i(rr,` (int value, 30): only reports error and
warnings. This the default level used by the library.`),rr.forEach(r),vs=d(X),ht=o(X,"LI",{});var _o=f(ht);Ct=o(_o,"CODE",{});var Ho=f(Ct);hs=i(Ho,"diffusers.logging.INFO"),Ho.forEach(r),ms=i(_o," (int value, 20): reports error, warnings and basic information."),_o.forEach(r),bs=d(X),mt=o(X,"LI",{});var $o=f(mt);xt=o($o,"CODE",{});var Yo=f(xt);_s=i(Yo,"diffusers.logging.DEBUG"),Yo.forEach(r),$s=i($o," (int value, 10): report all information."),$o.forEach(r),X.forEach(r),ar=d(e),G=o(e,"P",{});var Oe=f(G);Es=i(Oe,"By default, "),Pt=o(Oe,"CODE",{});var jo=f(Pt);ys=i(jo,"tqdm"),jo.forEach(r),ws=i(Oe," progress bars will be displayed during model download. "),bt=o(Oe,"A",{href:!0});var zo=f(bt);Ds=i(zo,"logging.disable_progress_bar()"),zo.forEach(r),Is=i(Oe," and "),_t=o(Oe,"A",{href:!0});var Jo=f(_t);Rs=i(Jo,"logging.enable_progress_bar()"),Jo.forEach(r),As=i(Oe," can be used to suppress or unsuppress this behavior."),Oe.forEach(r),dr=d(e),fe=o(e,"H2",{class:!0});var Nr=f(fe);Ie=o(Nr,"A",{id:!0,class:!0,href:!0});var Ko=f(Ie);Tt=o(Ko,"SPAN",{});var Qo=f(Tt);m(We.$$.fragment,Qo),Qo.forEach(r),Ko.forEach(r),Ns=d(Nr),kt=o(Nr,"SPAN",{});var Xo=f(kt);Os=i(Xo,"Base setters"),Xo.forEach(r),Nr.forEach(r),ur=d(e),ne=o(e,"DIV",{class:!0});var Or=f(ne);m(qe.$$.fragment,Or),Ss=d(Or),Me=o(Or,"P",{});var Sr=f(Me);Ls=i(Sr,"Set the verbosity to the "),Gt=o(Sr,"CODE",{});var Zo=f(Gt);Fs=i(Zo,"ERROR"),Zo.forEach(r),Cs=i(Sr," level."),Sr.forEach(r),Or.forEach(r),cr=d(e),ge=o(e,"DIV",{class:!0});var Lr=f(ge);m(He.$$.fragment,Lr),xs=d(Lr),Ye=o(Lr,"P",{});var Fr=f(Ye);Ps=i(Fr,"Set the verbosity to the "),Vt=o(Fr,"CODE",{});var el=f(Vt);Ts=i(el,"WARNING"),el.forEach(r),ks=i(Fr," level."),Fr.forEach(r),Lr.forEach(r),pr=d(e),ae=o(e,"DIV",{class:!0});var Cr=f(ae);m(je.$$.fragment,Cr),Gs=d(Cr),ze=o(Cr,"P",{});var xr=f(ze);Vs=i(xr,"Set the verbosity to the "),Bt=o(xr,"CODE",{});var tl=f(Bt);Bs=i(tl,"INFO"),tl.forEach(r),Us=i(xr," level."),xr.forEach(r),Cr.forEach(r),vr=d(e),de=o(e,"DIV",{class:!0});var Pr=f(de);m(Je.$$.fragment,Pr),Ws=d(Pr),Ke=o(Pr,"P",{});var Tr=f(Ke);qs=i(Tr,"Set the verbosity to the "),Ut=o(Tr,"CODE",{});var rl=f(Ut);Ms=i(rl,"DEBUG"),rl.forEach(r),Hs=i(Tr," level."),Tr.forEach(r),Pr.forEach(r),hr=d(e),ue=o(e,"H2",{class:!0});var kr=f(ue);Re=o(kr,"A",{id:!0,class:!0,href:!0});var sl=f(Re);Wt=o(sl,"SPAN",{});var ol=f(Wt);m(Qe.$$.fragment,ol),ol.forEach(r),sl.forEach(r),Ys=d(kr),qt=o(kr,"SPAN",{});var ll=f(qt);js=i(ll,"Other functions"),ll.forEach(r),kr.forEach(r),mr=d(e),W=o(e,"DIV",{class:!0});var Et=f(W);m(Xe.$$.fragment,Et),zs=d(Et),Mt=o(Et,"P",{});var il=f(Mt);Js=i(il,"Return the current level for the \u{1F917} Diffusers\u2019 root logger as an int."),il.forEach(r),Ks=d(Et),m(Ae.$$.fragment,Et),Et.forEach(r),br=d(e),ce=o(e,"DIV",{class:!0});var Gr=f(ce);m(Ze.$$.fragment,Gr),Qs=d(Gr),Ht=o(Gr,"P",{});var fl=f(Ht);Xs=i(fl,"Set the verbosity level for the \u{1F917} Diffusers\u2019 root logger."),fl.forEach(r),Gr.forEach(r),_r=d(e),q=o(e,"DIV",{class:!0});var yt=f(q);m(et.$$.fragment,yt),Zs=d(yt),Yt=o(yt,"P",{});var nl=f(Yt);eo=i(nl,"Return a logger with the specified name."),nl.forEach(r),to=d(yt),jt=o(yt,"P",{});var gl=f(jt);ro=i(gl,"This function is not supposed to be directly accessed unless you are writing a custom diffusers module."),gl.forEach(r),yt.forEach(r),$r=d(e),pe=o(e,"DIV",{class:!0});var Vr=f(pe);m(tt.$$.fragment,Vr),so=d(Vr),zt=o(Vr,"P",{});var al=f(zt);oo=i(al,"Enable the default handler of the HuggingFace Diffusers\u2019 root logger."),al.forEach(r),Vr.forEach(r),Er=d(e),ve=o(e,"DIV",{class:!0});var Br=f(ve);m(rt.$$.fragment,Br),lo=d(Br),Jt=o(Br,"P",{});var dl=f(Jt);io=i(dl,"Disable the default handler of the HuggingFace Diffusers\u2019 root logger."),dl.forEach(r),Br.forEach(r),yr=d(e),K=o(e,"DIV",{class:!0});var sr=f(K);m(st.$$.fragment,sr),fo=d(sr),m(Ne.$$.fragment,sr),no=i(sr,`
All handlers currently bound to the root logger are affected by this method.`),sr.forEach(r),wr=d(e),M=o(e,"DIV",{class:!0});var wt=f(M);m(ot.$$.fragment,wt),go=d(wt),Kt=o(wt,"P",{});var ul=f(Kt);ao=i(ul,"Resets the formatting for HuggingFace Diffusers\u2019 loggers."),ul.forEach(r),uo=d(wt),Qt=o(wt,"P",{});var cl=f(Qt);co=i(cl,"All handlers currently bound to the root logger are affected by this method."),cl.forEach(r),wt.forEach(r),Dr=d(e),he=o(e,"DIV",{class:!0});var Ur=f(he);m(lt.$$.fragment,Ur),po=d(Ur),Xt=o(Ur,"P",{});var pl=f(Xt);vo=i(pl,"Enable tqdm progress bar."),pl.forEach(r),Ur.forEach(r),Ir=d(e),me=o(e,"DIV",{class:!0});var Wr=f(me);m(it.$$.fragment,Wr),ho=d(Wr),Zt=o(Wr,"P",{});var vl=f(Zt);mo=i(vl,"Disable tqdm progress bar."),vl.forEach(r),Wr.forEach(r),this.h()},h(){c(v,"name","hf:doc:metadata"),c(v,"content",JSON.stringify(Al)),c(u,"id","logging"),c(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"),c(u,"href","#logging"),c(w,"class","relative group"),c(ct,"href","/docs/diffusers/v0.16.0/en/api/logging#diffusers.utils.logging.get_verbosity"),c(pt,"href","/docs/diffusers/v0.16.0/en/api/logging#diffusers.utils.logging.set_verbosity"),c(bt,"href","/docs/diffusers/v0.16.0/en/api/logging#diffusers.utils.logging.disable_progress_bar"),c(_t,"href","/docs/diffusers/v0.16.0/en/api/logging#diffusers.utils.logging.enable_progress_bar"),c(Ie,"id","diffusers.utils.logging.set_verbosity_error"),c(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"),c(Ie,"href","#diffusers.utils.logging.set_verbosity_error"),c(fe,"class","relative group"),c(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Re,"id","diffusers.utils.logging.get_verbosity"),c(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"),c(Re,"href","#diffusers.utils.logging.get_verbosity"),c(ue,"class","relative group"),c(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ce,"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(pe,"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,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,n){t(document.head,v),g(e,C,n),g(e,w,n),t(w,u),t(u,D),b(p,D,null),t(w,R),t(w,Z),t(Z,Se),g(e,H,n),g(e,Y,n),t(Y,Le),g(e,V,n),g(e,x,n),t(x,ee),t(x,te),t(te,Fe),t(x,P),g(e,be,n),g(e,T,n),t(T,Ce),g(e,_e,n),b(L,e,n),g(e,$e,n),g(e,y,n),t(y,j),t(y,re),t(re,se),t(y,xe),t(y,oe),t(oe,z),t(y,Pe),t(y,B),t(B,Te),t(y,A),t(y,k),t(k,N),t(y,le),t(y,Ee),t(Ee,gt),t(y,ke),t(y,ye),t(ye,ie),t(y,at),g(e,Ge,n),b(U,e,n),g(e,Ve,n),g(e,I,n),t(I,dt),t(I,Dt),t(Dt,qr),t(I,Mr),t(I,It),t(It,Hr),t(I,Yr),t(I,Rt),t(Rt,jr),t(I,zr),t(I,At),t(At,Jr),t(I,Kr),g(e,lr,n),b(Be,e,n),g(e,ir,n),g(e,ut,n),t(ut,Qr),g(e,fr,n),b(Ue,e,n),g(e,nr,n),g(e,J,n),t(J,Xr),t(J,ct),t(ct,Zr),t(J,es),t(J,pt),t(pt,ts),t(J,rs),g(e,gr,n),g(e,O,n),t(O,we),t(we,Nt),t(Nt,ss),t(we,os),t(we,Ot),t(Ot,ls),t(we,is),t(O,fs),t(O,vt),t(vt,St),t(St,ns),t(vt,gs),t(O,as),t(O,De),t(De,Lt),t(Lt,ds),t(De,us),t(De,Ft),t(Ft,cs),t(De,ps),t(O,vs),t(O,ht),t(ht,Ct),t(Ct,hs),t(ht,ms),t(O,bs),t(O,mt),t(mt,xt),t(xt,_s),t(mt,$s),g(e,ar,n),g(e,G,n),t(G,Es),t(G,Pt),t(Pt,ys),t(G,ws),t(G,bt),t(bt,Ds),t(G,Is),t(G,_t),t(_t,Rs),t(G,As),g(e,dr,n),g(e,fe,n),t(fe,Ie),t(Ie,Tt),b(We,Tt,null),t(fe,Ns),t(fe,kt),t(kt,Os),g(e,ur,n),g(e,ne,n),b(qe,ne,null),t(ne,Ss),t(ne,Me),t(Me,Ls),t(Me,Gt),t(Gt,Fs),t(Me,Cs),g(e,cr,n),g(e,ge,n),b(He,ge,null),t(ge,xs),t(ge,Ye),t(Ye,Ps),t(Ye,Vt),t(Vt,Ts),t(Ye,ks),g(e,pr,n),g(e,ae,n),b(je,ae,null),t(ae,Gs),t(ae,ze),t(ze,Vs),t(ze,Bt),t(Bt,Bs),t(ze,Us),g(e,vr,n),g(e,de,n),b(Je,de,null),t(de,Ws),t(de,Ke),t(Ke,qs),t(Ke,Ut),t(Ut,Ms),t(Ke,Hs),g(e,hr,n),g(e,ue,n),t(ue,Re),t(Re,Wt),b(Qe,Wt,null),t(ue,Ys),t(ue,qt),t(qt,js),g(e,mr,n),g(e,W,n),b(Xe,W,null),t(W,zs),t(W,Mt),t(Mt,Js),t(W,Ks),b(Ae,W,null),g(e,br,n),g(e,ce,n),b(Ze,ce,null),t(ce,Qs),t(ce,Ht),t(Ht,Xs),g(e,_r,n),g(e,q,n),b(et,q,null),t(q,Zs),t(q,Yt),t(Yt,eo),t(q,to),t(q,jt),t(jt,ro),g(e,$r,n),g(e,pe,n),b(tt,pe,null),t(pe,so),t(pe,zt),t(zt,oo),g(e,Er,n),g(e,ve,n),b(rt,ve,null),t(ve,lo),t(ve,Jt),t(Jt,io),g(e,yr,n),g(e,K,n),b(st,K,null),t(K,fo),b(Ne,K,null),t(K,no),g(e,wr,n),g(e,M,n),b(ot,M,null),t(M,go),t(M,Kt),t(Kt,ao),t(M,uo),t(M,Qt),t(Qt,co),g(e,Dr,n),g(e,he,n),b(lt,he,null),t(he,po),t(he,Xt),t(Xt,vo),g(e,Ir,n),g(e,me,n),b(it,me,null),t(me,ho),t(me,Zt),t(Zt,mo),Rr=!0},p(e,[n]){const ft={};n&2&&(ft.$$scope={dirty:n,ctx:e}),Ae.$set(ft);const er={};n&2&&(er.$$scope={dirty:n,ctx:e}),Ne.$set(er)},i(e){Rr||(_(p.$$.fragment,e),_(L.$$.fragment,e),_(U.$$.fragment,e),_(Be.$$.fragment,e),_(Ue.$$.fragment,e),_(We.$$.fragment,e),_(qe.$$.fragment,e),_(He.$$.fragment,e),_(je.$$.fragment,e),_(Je.$$.fragment,e),_(Qe.$$.fragment,e),_(Xe.$$.fragment,e),_(Ae.$$.fragment,e),_(Ze.$$.fragment,e),_(et.$$.fragment,e),_(tt.$$.fragment,e),_(rt.$$.fragment,e),_(st.$$.fragment,e),_(Ne.$$.fragment,e),_(ot.$$.fragment,e),_(lt.$$.fragment,e),_(it.$$.fragment,e),Rr=!0)},o(e){$(p.$$.fragment,e),$(L.$$.fragment,e),$(U.$$.fragment,e),$(Be.$$.fragment,e),$(Ue.$$.fragment,e),$(We.$$.fragment,e),$(qe.$$.fragment,e),$(He.$$.fragment,e),$(je.$$.fragment,e),$(Je.$$.fragment,e),$(Qe.$$.fragment,e),$(Xe.$$.fragment,e),$(Ae.$$.fragment,e),$(Ze.$$.fragment,e),$(et.$$.fragment,e),$(tt.$$.fragment,e),$(rt.$$.fragment,e),$(st.$$.fragment,e),$(Ne.$$.fragment,e),$(ot.$$.fragment,e),$(lt.$$.fragment,e),$(it.$$.fragment,e),Rr=!1},d(e){r(v),e&&r(C),e&&r(w),E(p),e&&r(H),e&&r(Y),e&&r(V),e&&r(x),e&&r(be),e&&r(T),e&&r(_e),E(L,e),e&&r($e),e&&r(y),e&&r(Ge),E(U,e),e&&r(Ve),e&&r(I),e&&r(lr),E(Be,e),e&&r(ir),e&&r(ut),e&&r(fr),E(Ue,e),e&&r(nr),e&&r(J),e&&r(gr),e&&r(O),e&&r(ar),e&&r(G),e&&r(dr),e&&r(fe),E(We),e&&r(ur),e&&r(ne),E(qe),e&&r(cr),e&&r(ge),E(He),e&&r(pr),e&&r(ae),E(je),e&&r(vr),e&&r(de),E(Je),e&&r(hr),e&&r(ue),E(Qe),e&&r(mr),e&&r(W),E(Xe),E(Ae),e&&r(br),e&&r(ce),E(Ze),e&&r(_r),e&&r(q),E(et),e&&r($r),e&&r(pe),E(tt),e&&r(Er),e&&r(ve),E(rt),e&&r(yr),e&&r(K),E(st),E(Ne),e&&r(wr),e&&r(M),E(ot),e&&r(Dr),e&&r(he),E(lt),e&&r(Ir),e&&r(me),E(it)}}}const Al={local:"logging",sections:[{local:"diffusers.utils.logging.set_verbosity_error",title:"Base setters"},{local:"diffusers.utils.logging.get_verbosity",title:"Other functions"}],title:"Logging"};function Nl(nt){return $l(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pl extends hl{constructor(v){super();ml(this,v,Nl,Rl,bl,{})}}export{Pl as default,Al as metadata};
