import{S as vl,i as ml,s as bl,e as s,k as a,w as v,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 p,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 h,C,w,u,D,c,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(){h=s("p"),C=l("\u{1F917} Diffusers has following logging levels:"),w=a(),u=s("ul"),D=s("li"),c=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){h=o(A,"P",{});var k=f(h);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);c=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,h,k),t(h,C),g(A,w,k),g(A,u,k),t(u,D),t(D,c),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(h),A&&r(w),A&&r(u)}}}function Il(nt){let h,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(){h=s("p"),C=l("Enable explicit formatting for every HuggingFace Diffusers\u2019 logger. The explicit formatter is as follows:"),w=a(),v(u.$$.fragment)},l(c){h=o(c,"P",{});var R=f(h);C=i(R,"Enable explicit formatting for every HuggingFace Diffusers\u2019 logger. The explicit formatter is as follows:"),R.forEach(r),w=d(c),m(u.$$.fragment,c)},m(c,R){g(c,h,R),t(h,C),g(c,w,R),b(u,c,R),D=!0},p:El,i(c){D||(_(u.$$.fragment,c),D=!0)},o(c){$(u.$$.fragment,c),D=!1},d(c){c&&r(h),c&&r(w),E(u,c)}}}function Rl(nt){let h,C,w,u,D,c,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,pt,Zr,es,ct,ts,rs,gr,O,we,Nt,ss,os,Ot,ls,is,fs,ht,St,ns,gs,as,De,Lt,ds,us,Ft,ps,cs,hs,vt,Ct,vs,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,pr,ge,He,xs,Ye,Ps,Vt,Ts,ks,cr,ae,je,Gs,ze,Vs,Bt,Bs,Us,hr,de,Je,Ws,Ke,qs,Ut,Ms,Hs,vr,ue,Re,Wt,Qe,Ys,qt,js,mr,W,Xe,zs,Mt,Js,Ks,Ae,br,pe,Ze,Qs,Ht,Xs,_r,q,et,Zs,Yt,eo,to,jt,ro,$r,ce,tt,so,zt,oo,Er,he,rt,lo,Jt,io,yr,K,st,fo,Ne,no,wr,M,ot,go,Kt,ao,uo,Qt,po,Dr,ve,lt,co,Xt,ho,Ir,me,it,vo,Zt,mo,Rr;return c=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/vr_1041/src/diffusers/utils/logging.py#L180"}}),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/vr_1041/src/diffusers/utils/logging.py#L170"}}),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/vr_1041/src/diffusers/utils/logging.py#L165"}}),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/vr_1041/src/diffusers/utils/logging.py#L175"}}),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/vr_1041/src/diffusers/utils/logging.py#L123",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/vr_1041/src/diffusers/utils/logging.py#L146"}}),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/vr_1041/src/diffusers/utils/logging.py#L109"}}),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/vr_1041/src/diffusers/utils/logging.py#L194"}}),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/vr_1041/src/diffusers/utils/logging.py#L185"}}),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/vr_1041/src/diffusers/utils/logging.py#L240"}}),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/vr_1041/src/diffusers/utils/logging.py#L255"}}),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/vr_1041/src/diffusers/utils/logging.py#L331"}}),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/vr_1041/src/diffusers/utils/logging.py#L337"}}),{c(){h=s("meta"),C=a(),w=s("h1"),u=s("a"),D=s("span"),v(c.$$.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(),v(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(),v(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(),v(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(),v(Ue.$$.fragment),nr=a(),J=s("p"),Xr=l(`All the methods of this logging module are documented below, the main ones are
`),pt=s("a"),Zr=l("logging.get_verbosity()"),es=l(` to get the current level of verbosity in the logger and
`),ct=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(),ht=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"),ps=l("diffusers.logging.WARN"),cs=l(` (int value, 30): only reports error and
warnings. This the default level used by the library.`),hs=a(),vt=s("li"),Ct=s("code"),vs=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"),v(We.$$.fragment),Ns=a(),kt=s("span"),Os=l("Base setters"),ur=a(),ne=s("div"),v(qe.$$.fragment),Ss=a(),Me=s("p"),Ls=l("Set the verbosity to the "),Gt=s("code"),Fs=l("ERROR"),Cs=l(" level."),pr=a(),ge=s("div"),v(He.$$.fragment),xs=a(),Ye=s("p"),Ps=l("Set the verbosity to the "),Vt=s("code"),Ts=l("WARNING"),ks=l(" level."),cr=a(),ae=s("div"),v(je.$$.fragment),Gs=a(),ze=s("p"),Vs=l("Set the verbosity to the "),Bt=s("code"),Bs=l("INFO"),Us=l(" level."),hr=a(),de=s("div"),v(Je.$$.fragment),Ws=a(),Ke=s("p"),qs=l("Set the verbosity to the "),Ut=s("code"),Ms=l("DEBUG"),Hs=l(" level."),vr=a(),ue=s("h2"),Re=s("a"),Wt=s("span"),v(Qe.$$.fragment),Ys=a(),qt=s("span"),js=l("Other functions"),mr=a(),W=s("div"),v(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(),v(Ae.$$.fragment),br=a(),pe=s("div"),v(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"),v(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(),ce=s("div"),v(tt.$$.fragment),so=a(),zt=s("p"),oo=l("Enable the default handler of the HuggingFace Diffusers\u2019 root logger."),Er=a(),he=s("div"),v(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"),v(st.$$.fragment),fo=a(),v(Ne.$$.fragment),no=l(`
All handlers currently bound to the root logger are affected by this method.`),wr=a(),M=s("div"),v(ot.$$.fragment),go=a(),Kt=s("p"),ao=l("Resets the formatting for HuggingFace Diffusers\u2019 loggers."),uo=a(),Qt=s("p"),po=l("All handlers currently bound to the root logger are affected by this method."),Dr=a(),ve=s("div"),v(lt.$$.fragment),co=a(),Xt=s("p"),ho=l("Enable tqdm progress bar."),Ir=a(),me=s("div"),v(it.$$.fragment),vo=a(),Zt=s("p"),mo=l("Disable tqdm progress bar."),this.h()},l(e){const n=_l('[data-svelte="svelte-1phssyn"]',document.head);h=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(c.$$.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
`),pt=o($t,"A",{href:!0});var Go=f(pt);Zr=i(Go,"logging.get_verbosity()"),Go.forEach(r),es=i($t,` to get the current level of verbosity in the logger and
`),ct=o($t,"A",{href:!0});var Vo=f(ct);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),ht=o(X,"LI",{});var bo=f(ht);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);ps=i(Mo,"diffusers.logging.WARN"),Mo.forEach(r),cs=i(rr,` (int value, 30): only reports error and
warnings. This the default level used by the library.`),rr.forEach(r),hs=d(X),vt=o(X,"LI",{});var _o=f(vt);Ct=o(_o,"CODE",{});var Ho=f(Ct);vs=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),pr=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),cr=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),hr=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),vr=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),pe=o(e,"DIV",{class:!0});var Gr=f(pe);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),ce=o(e,"DIV",{class:!0});var Vr=f(ce);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),he=o(e,"DIV",{class:!0});var Br=f(he);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 pl=f(Qt);po=i(pl,"All handlers currently bound to the root logger are affected by this method."),pl.forEach(r),wt.forEach(r),Dr=d(e),ve=o(e,"DIV",{class:!0});var Ur=f(ve);m(lt.$$.fragment,Ur),co=d(Ur),Xt=o(Ur,"P",{});var cl=f(Xt);ho=i(cl,"Enable tqdm progress bar."),cl.forEach(r),Ur.forEach(r),Ir=d(e),me=o(e,"DIV",{class:!0});var Wr=f(me);m(it.$$.fragment,Wr),vo=d(Wr),Zt=o(Wr,"P",{});var hl=f(Zt);mo=i(hl,"Disable tqdm progress bar."),hl.forEach(r),Wr.forEach(r),this.h()},h(){p(h,"name","hf:doc:metadata"),p(h,"content",JSON.stringify(Al)),p(u,"id","logging"),p(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"),p(u,"href","#logging"),p(w,"class","relative group"),p(pt,"href","/docs/diffusers/pr_1041/en/api/logging#diffusers.utils.logging.get_verbosity"),p(ct,"href","/docs/diffusers/pr_1041/en/api/logging#diffusers.utils.logging.set_verbosity"),p(bt,"href","/docs/diffusers/pr_1041/en/api/logging#diffusers.utils.logging.disable_progress_bar"),p(_t,"href","/docs/diffusers/pr_1041/en/api/logging#diffusers.utils.logging.enable_progress_bar"),p(Ie,"id","diffusers.utils.logging.set_verbosity_error"),p(Ie,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(Ie,"href","#diffusers.utils.logging.set_verbosity_error"),p(fe,"class","relative group"),p(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Re,"id","diffusers.utils.logging.get_verbosity"),p(Re,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(Re,"href","#diffusers.utils.logging.get_verbosity"),p(ue,"class","relative group"),p(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(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,h),g(e,C,n),g(e,w,n),t(w,u),t(u,D),b(c,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,pt),t(pt,Zr),t(J,es),t(J,ct),t(ct,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,ht),t(ht,St),t(St,ns),t(ht,gs),t(O,as),t(O,De),t(De,Lt),t(Lt,ds),t(De,us),t(De,Ft),t(Ft,ps),t(De,cs),t(O,hs),t(O,vt),t(vt,Ct),t(Ct,vs),t(vt,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,pr,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,cr,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,hr,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,vr,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,pe,n),b(Ze,pe,null),t(pe,Qs),t(pe,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,ce,n),b(tt,ce,null),t(ce,so),t(ce,zt),t(zt,oo),g(e,Er,n),g(e,he,n),b(rt,he,null),t(he,lo),t(he,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,po),g(e,Dr,n),g(e,ve,n),b(lt,ve,null),t(ve,co),t(ve,Xt),t(Xt,ho),g(e,Ir,n),g(e,me,n),b(it,me,null),t(me,vo),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||(_(c.$$.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){$(c.$$.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(h),e&&r(C),e&&r(w),E(c),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(pr),e&&r(ge),E(He),e&&r(cr),e&&r(ae),E(je),e&&r(hr),e&&r(de),E(Je),e&&r(vr),e&&r(ue),E(Qe),e&&r(mr),e&&r(W),E(Xe),E(Ae),e&&r(br),e&&r(pe),E(Ze),e&&r(_r),e&&r(q),E(et),e&&r($r),e&&r(ce),E(tt),e&&r(Er),e&&r(he),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(ve),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 vl{constructor(h){super();ml(this,h,Nl,Rl,bl,{})}}export{Pl as default,Al as metadata};
