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

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