Buckets:
| import{S as Si,i as Ci,s as xi,e as o,k as a,w as p,t as i,M as Ui,c as l,d as r,m as f,a as s,x as h,h as n,b as u,G as t,g as d,y as m,q as v,o as b,B as _,v as Fi,L as Vi}from"../../chunks/vendor-hf-doc-builder.js";import{D as I}from"../../chunks/Docstring-hf-doc-builder.js";import{C as er}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as bs}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Li}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function ki(tr){let $,te,D,y,S;return y=new er({props:{code:"JTVCTEVWRUxOQU1FJTdDRklMRU5BTUUlN0NMSU5FJTIwTlVNQkVSJTVEJTIwVElNRSUyMCUzRSUzRSUyME1FU1NBR0U=",highlighted:'[LEVELNAME|<span class="hljs-type">FILENAME</span>|<span class="hljs-type">LINE</span> NUMBER] TIME >> MESSAGE'}}),{c(){$=o("p"),te=i("Enable explicit formatting for every \u{1F917} Diffusers\u2019 logger. The explicit formatter is as follows:"),D=a(),p(y.$$.fragment)},l(c){$=l(c,"P",{});var C=s($);te=n(C,"Enable explicit formatting for every \u{1F917} Diffusers\u2019 logger. The explicit formatter is as follows:"),C.forEach(r),D=f(c),h(y.$$.fragment,c)},m(c,C){d(c,$,C),t($,te),d(c,D,C),m(y,c,C),S=!0},p:Vi,i(c){S||(v(y.$$.fragment,c),S=!0)},o(c){b(y.$$.fragment,c),S=!1},d(c){c&&r($),c&&r(D),_(y,c)}}}function Pi(tr){let $,te,D,y,S,c,C,ct,Qr,rr,re,eo,pt,to,ro,or,oe,oo,ht,lo,so,lr,de,sr,E,io,mt,no,ao,vt,fo,go,bt,uo,co,_t,po,ho,Et,mo,vo,$t,bo,_o,ir,ue,nr,w,Eo,yt,$o,yo,Dt,Do,wo,wt,Ro,To,Rt,Io,No,ar,ce,fr,Ve,Ao,gr,pe,dr,x,Oo,Le,So,Co,ke,xo,Uo,ur,Pe,Fo,cr,le,Tt,L,Ge,Vo,Lo,Je,ko,Po,Be,Go,Jo,T,k,se,It,Bo,Mo,Nt,Zo,Wo,Me,qo,Yo,Ze,Ho,Xo,P,We,At,jo,zo,qe,Ko,Qo,Ye,el,tl,G,ie,Ot,rl,ol,St,ll,sl,He,il,nl,Xe,al,fl,J,je,Ct,gl,dl,ze,ul,cl,Ke,pl,hl,B,Qe,xt,ml,vl,et,bl,_l,tt,El,pr,N,$l,Ut,yl,Dl,rt,wl,Rl,ot,Tl,Il,hr,M,ne,Ft,he,Nl,Vt,Al,mr,Z,me,Ol,ve,Sl,Lt,Cl,xl,vr,W,be,Ul,_e,Fl,kt,Vl,Ll,br,q,Ee,kl,$e,Pl,Pt,Gl,Jl,_r,Y,ye,Bl,De,Ml,Gt,Zl,Wl,Er,H,ae,Jt,we,ql,Bt,Yl,$r,X,Re,Hl,Te,Xl,Mt,jl,zl,yr,j,Ie,Kl,Zt,Ql,Dr,A,Ne,es,Wt,ts,rs,qt,os,wr,z,Ae,ls,Yt,ss,Rr,K,Oe,is,Ht,ns,Tr,U,Se,as,fe,fs,Ir,O,Ce,gs,Xt,ds,us,jt,cs,Nr,Q,xe,ps,zt,hs,Ar,ee,Ue,ms,Kt,vs,Or;return c=new bs({}),de=new er({props:{code:"aW1wb3J0JTIwZGlmZnVzZXJzJTBBJTBBZGlmZnVzZXJzLmxvZ2dpbmcuc2V0X3ZlcmJvc2l0eV9pbmZvKCk=",highlighted:`<span class="hljs-keyword">import</span> diffusers | |
| diffusers.logging.set_verbosity_info()`}}),ue=new er({props:{code:"RElGRlVTRVJTX1ZFUkJPU0lUWSUzRGVycm9yJTIwLiUyRm15cHJvZ3JhbS5weQ==",highlighted:"DIFFUSERS_VERBOSITY=error ./myprogram.py"}}),ce=new er({props:{code:"RElGRlVTRVJTX05PX0FEVklTT1JZX1dBUk5JTkdTJTNEMSUyMC4lMkZteXByb2dyYW0ucHk=",highlighted:"DIFFUSERS_NO_ADVISORY_WARNINGS=1 ./myprogram.py"}}),pe=new er({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">"diffusers"</span>) | |
| logger.info(<span class="hljs-string">"INFO"</span>) | |
| logger.warning(<span class="hljs-string">"WARN"</span>)`}}),he=new bs({}),me=new I({props:{name:"diffusers.utils.logging.set_verbosity_error",anchor:"diffusers.utils.logging.set_verbosity_error",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L179"}}),be=new I({props:{name:"diffusers.utils.logging.set_verbosity_warning",anchor:"diffusers.utils.logging.set_verbosity_warning",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L169"}}),Ee=new I({props:{name:"diffusers.utils.logging.set_verbosity_info",anchor:"diffusers.utils.logging.set_verbosity_info",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L164"}}),ye=new I({props:{name:"diffusers.utils.logging.set_verbosity_debug",anchor:"diffusers.utils.logging.set_verbosity_debug",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L174"}}),we=new bs({}),Re=new I({props:{name:"diffusers.utils.logging.get_verbosity",anchor:"diffusers.utils.logging.get_verbosity",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L125",returnDescription:` | |
| <p>Logging level integers which can be one of:</p> | |
| <ul> | |
| <li><code>50</code>: <code>diffusers.logging.CRITICAL</code> or <code>diffusers.logging.FATAL</code></li> | |
| <li><code>40</code>: <code>diffusers.logging.ERROR</code></li> | |
| <li><code>30</code>: <code>diffusers.logging.WARNING</code> or <code>diffusers.logging.WARN</code></li> | |
| <li><code>20</code>: <code>diffusers.logging.INFO</code></li> | |
| <li><code>10</code>: <code>diffusers.logging.DEBUG</code></li> | |
| </ul> | |
| `,returnType:` | |
| <p><code>int</code></p> | |
| `}}),Ie=new I({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>) — | |
| Logging level which can be 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/main/src/diffusers/utils/logging.py#L145"}}),Ne=new I({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/main/src/diffusers/utils/logging.py#L111"}}),Ae=new I({props:{name:"diffusers.utils.logging.enable_default_handler",anchor:"diffusers.utils.logging.enable_default_handler",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L193"}}),Oe=new I({props:{name:"diffusers.utils.logging.disable_default_handler",anchor:"diffusers.utils.logging.disable_default_handler",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L184"}}),Se=new I({props:{name:"diffusers.utils.logging.enable_explicit_format",anchor:"diffusers.utils.logging.enable_explicit_format",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L239"}}),fe=new Li({props:{anchor:"diffusers.utils.logging.enable_explicit_format.example",$$slots:{default:[ki]},$$scope:{ctx:tr}}}),Ce=new I({props:{name:"diffusers.utils.logging.reset_format",anchor:"diffusers.utils.logging.reset_format",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L254"}}),xe=new I({props:{name:"diffusers.utils.logging.enable_progress_bar",anchor:"diffusers.utils.logging.enable_progress_bar",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L330"}}),Ue=new I({props:{name:"diffusers.utils.logging.disable_progress_bar",anchor:"diffusers.utils.logging.disable_progress_bar",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/logging.py#L336"}}),{c(){$=o("meta"),te=a(),D=o("h1"),y=o("a"),S=o("span"),p(c.$$.fragment),C=a(),ct=o("span"),Qr=i("Logging"),rr=a(),re=o("p"),eo=i("\u{1F917} Diffusers has a centralized logging system to easily manage the verbosity of the library. The default verbosity is set to "),pt=o("code"),to=i("WARNING"),ro=i("."),or=a(),oe=o("p"),oo=i("To change the verbosity level, use one of the direct setters. For instance, to change the verbosity to the "),ht=o("code"),lo=i("INFO"),so=i(" level."),lr=a(),p(de.$$.fragment),sr=a(),E=o("p"),io=i("You can also use the environment variable "),mt=o("code"),no=i("DIFFUSERS_VERBOSITY"),ao=i(` to override the default verbosity. You can set it | |
| to one of the following: `),vt=o("code"),fo=i("debug"),go=i(", "),bt=o("code"),uo=i("info"),co=i(", "),_t=o("code"),po=i("warning"),ho=i(", "),Et=o("code"),mo=i("error"),vo=i(", "),$t=o("code"),bo=i("critical"),_o=i(". For example:"),ir=a(),p(ue.$$.fragment),nr=a(),w=o("p"),Eo=i("Additionally, some "),yt=o("code"),$o=i("warnings"),yo=i(` can be disabled by setting the environment variable | |
| `),Dt=o("code"),Do=i("DIFFUSERS_NO_ADVISORY_WARNINGS"),wo=i(" to a true value, like "),wt=o("code"),Ro=i("1"),To=i(`. This disables any warning logged by | |
| `),Rt=o("code"),Io=i("logger.warning_advice"),No=i(". For example:"),ar=a(),p(ce.$$.fragment),fr=a(),Ve=o("p"),Ao=i("Here is an example of how to use the same logger as the library in your own module or script:"),gr=a(),p(pe.$$.fragment),dr=a(),x=o("p"),Oo=i(`All methods of the logging module are documented below. The main methods are | |
| `),Le=o("a"),So=i("logging.get_verbosity()"),Co=i(` to get the current level of verbosity in the logger and | |
| `),ke=o("a"),xo=i("logging.set_verbosity()"),Uo=i(" to set the verbosity to the level of your choice."),ur=a(),Pe=o("p"),Fo=i("In order from the least verbose to the most verbose:"),cr=a(),le=o("table"),Tt=o("thead"),L=o("tr"),Ge=o("th"),Vo=i("Method"),Lo=a(),Je=o("th"),ko=i("Integer value"),Po=a(),Be=o("th"),Go=i("Description"),Jo=a(),T=o("tbody"),k=o("tr"),se=o("td"),It=o("code"),Bo=i("diffusers.logging.CRITICAL"),Mo=i(" or "),Nt=o("code"),Zo=i("diffusers.logging.FATAL"),Wo=a(),Me=o("td"),qo=i("50"),Yo=a(),Ze=o("td"),Ho=i("only report the most critical errors"),Xo=a(),P=o("tr"),We=o("td"),At=o("code"),jo=i("diffusers.logging.ERROR"),zo=a(),qe=o("td"),Ko=i("40"),Qo=a(),Ye=o("td"),el=i("only report errors"),tl=a(),G=o("tr"),ie=o("td"),Ot=o("code"),rl=i("diffusers.logging.WARNING"),ol=i(" or "),St=o("code"),ll=i("diffusers.logging.WARN"),sl=a(),He=o("td"),il=i("30"),nl=a(),Xe=o("td"),al=i("only report errors and warnings (default)"),fl=a(),J=o("tr"),je=o("td"),Ct=o("code"),gl=i("diffusers.logging.INFO"),dl=a(),ze=o("td"),ul=i("20"),cl=a(),Ke=o("td"),pl=i("only report errors, warnings, and basic information"),hl=a(),B=o("tr"),Qe=o("td"),xt=o("code"),ml=i("diffusers.logging.DEBUG"),vl=a(),et=o("td"),bl=i("10"),_l=a(),tt=o("td"),El=i("report all information"),pr=a(),N=o("p"),$l=i("By default, "),Ut=o("code"),yl=i("tqdm"),Dl=i(" progress bars are displayed during model download. "),rt=o("a"),wl=i("logging.disable_progress_bar()"),Rl=i(" and "),ot=o("a"),Tl=i("logging.enable_progress_bar()"),Il=i(" are used to enable or disable this behavior."),hr=a(),M=o("h2"),ne=o("a"),Ft=o("span"),p(he.$$.fragment),Nl=a(),Vt=o("span"),Al=i("Base setters"),mr=a(),Z=o("div"),p(me.$$.fragment),Ol=a(),ve=o("p"),Sl=i("Set the verbosity to the "),Lt=o("code"),Cl=i("ERROR"),xl=i(" level."),vr=a(),W=o("div"),p(be.$$.fragment),Ul=a(),_e=o("p"),Fl=i("Set the verbosity to the "),kt=o("code"),Vl=i("WARNING"),Ll=i(" level."),br=a(),q=o("div"),p(Ee.$$.fragment),kl=a(),$e=o("p"),Pl=i("Set the verbosity to the "),Pt=o("code"),Gl=i("INFO"),Jl=i(" level."),_r=a(),Y=o("div"),p(ye.$$.fragment),Bl=a(),De=o("p"),Ml=i("Set the verbosity to the "),Gt=o("code"),Zl=i("DEBUG"),Wl=i(" level."),Er=a(),H=o("h2"),ae=o("a"),Jt=o("span"),p(we.$$.fragment),ql=a(),Bt=o("span"),Yl=i("Other functions"),$r=a(),X=o("div"),p(Re.$$.fragment),Hl=a(),Te=o("p"),Xl=i("Return the current level for the \u{1F917} Diffusers\u2019 root logger as an "),Mt=o("code"),jl=i("int"),zl=i("."),yr=a(),j=o("div"),p(Ie.$$.fragment),Kl=a(),Zt=o("p"),Ql=i("Set the verbosity level for the \u{1F917} Diffusers\u2019 root logger."),Dr=a(),A=o("div"),p(Ne.$$.fragment),es=a(),Wt=o("p"),ts=i("Return a logger with the specified name."),rs=a(),qt=o("p"),os=i("This function is not supposed to be directly accessed unless you are writing a custom diffusers module."),wr=a(),z=o("div"),p(Ae.$$.fragment),ls=a(),Yt=o("p"),ss=i("Enable the default handler of the \u{1F917} Diffusers\u2019 root logger."),Rr=a(),K=o("div"),p(Oe.$$.fragment),is=a(),Ht=o("p"),ns=i("Disable the default handler of the \u{1F917} Diffusers\u2019 root logger."),Tr=a(),U=o("div"),p(Se.$$.fragment),as=a(),p(fe.$$.fragment),fs=i(` | |
| All handlers currently bound to the root logger are affected by this method.`),Ir=a(),O=o("div"),p(Ce.$$.fragment),gs=a(),Xt=o("p"),ds=i("Resets the formatting for \u{1F917} Diffusers\u2019 loggers."),us=a(),jt=o("p"),cs=i("All handlers currently bound to the root logger are affected by this method."),Nr=a(),Q=o("div"),p(xe.$$.fragment),ps=a(),zt=o("p"),hs=i("Enable tqdm progress bar."),Ar=a(),ee=o("div"),p(Ue.$$.fragment),ms=a(),Kt=o("p"),vs=i("Disable tqdm progress bar."),this.h()},l(e){const g=Ui('[data-svelte="svelte-1phssyn"]',document.head);$=l(g,"META",{name:!0,content:!0}),g.forEach(r),te=f(e),D=l(e,"H1",{class:!0});var Fe=s(D);y=l(Fe,"A",{id:!0,class:!0,href:!0});var _s=s(y);S=l(_s,"SPAN",{});var Es=s(S);h(c.$$.fragment,Es),Es.forEach(r),_s.forEach(r),C=f(Fe),ct=l(Fe,"SPAN",{});var $s=s(ct);Qr=n($s,"Logging"),$s.forEach(r),Fe.forEach(r),rr=f(e),re=l(e,"P",{});var Sr=s(re);eo=n(Sr,"\u{1F917} Diffusers has a centralized logging system to easily manage the verbosity of the library. The default verbosity is set to "),pt=l(Sr,"CODE",{});var ys=s(pt);to=n(ys,"WARNING"),ys.forEach(r),ro=n(Sr,"."),Sr.forEach(r),or=f(e),oe=l(e,"P",{});var Cr=s(oe);oo=n(Cr,"To change the verbosity level, use one of the direct setters. For instance, to change the verbosity to the "),ht=l(Cr,"CODE",{});var Ds=s(ht);lo=n(Ds,"INFO"),Ds.forEach(r),so=n(Cr," level."),Cr.forEach(r),lr=f(e),h(de.$$.fragment,e),sr=f(e),E=l(e,"P",{});var R=s(E);io=n(R,"You can also use the environment variable "),mt=l(R,"CODE",{});var ws=s(mt);no=n(ws,"DIFFUSERS_VERBOSITY"),ws.forEach(r),ao=n(R,` to override the default verbosity. You can set it | |
| to one of the following: `),vt=l(R,"CODE",{});var Rs=s(vt);fo=n(Rs,"debug"),Rs.forEach(r),go=n(R,", "),bt=l(R,"CODE",{});var Ts=s(bt);uo=n(Ts,"info"),Ts.forEach(r),co=n(R,", "),_t=l(R,"CODE",{});var Is=s(_t);po=n(Is,"warning"),Is.forEach(r),ho=n(R,", "),Et=l(R,"CODE",{});var Ns=s(Et);mo=n(Ns,"error"),Ns.forEach(r),vo=n(R,", "),$t=l(R,"CODE",{});var As=s($t);bo=n(As,"critical"),As.forEach(r),_o=n(R,". For example:"),R.forEach(r),ir=f(e),h(ue.$$.fragment,e),nr=f(e),w=l(e,"P",{});var F=s(w);Eo=n(F,"Additionally, some "),yt=l(F,"CODE",{});var Os=s(yt);$o=n(Os,"warnings"),Os.forEach(r),yo=n(F,` can be disabled by setting the environment variable | |
| `),Dt=l(F,"CODE",{});var Ss=s(Dt);Do=n(Ss,"DIFFUSERS_NO_ADVISORY_WARNINGS"),Ss.forEach(r),wo=n(F," to a true value, like "),wt=l(F,"CODE",{});var Cs=s(wt);Ro=n(Cs,"1"),Cs.forEach(r),To=n(F,`. This disables any warning logged by | |
| `),Rt=l(F,"CODE",{});var xs=s(Rt);Io=n(xs,"logger.warning_advice"),xs.forEach(r),No=n(F,". For example:"),F.forEach(r),ar=f(e),h(ce.$$.fragment,e),fr=f(e),Ve=l(e,"P",{});var Us=s(Ve);Ao=n(Us,"Here is an example of how to use the same logger as the library in your own module or script:"),Us.forEach(r),gr=f(e),h(pe.$$.fragment,e),dr=f(e),x=l(e,"P",{});var lt=s(x);Oo=n(lt,`All methods of the logging module are documented below. The main methods are | |
| `),Le=l(lt,"A",{href:!0});var Fs=s(Le);So=n(Fs,"logging.get_verbosity()"),Fs.forEach(r),Co=n(lt,` to get the current level of verbosity in the logger and | |
| `),ke=l(lt,"A",{href:!0});var Vs=s(ke);xo=n(Vs,"logging.set_verbosity()"),Vs.forEach(r),Uo=n(lt," to set the verbosity to the level of your choice."),lt.forEach(r),ur=f(e),Pe=l(e,"P",{});var Ls=s(Pe);Fo=n(Ls,"In order from the least verbose to the most verbose:"),Ls.forEach(r),cr=f(e),le=l(e,"TABLE",{});var xr=s(le);Tt=l(xr,"THEAD",{});var ks=s(Tt);L=l(ks,"TR",{});var st=s(L);Ge=l(st,"TH",{align:!0});var Ps=s(Ge);Vo=n(Ps,"Method"),Ps.forEach(r),Lo=f(st),Je=l(st,"TH",{align:!0});var Gs=s(Je);ko=n(Gs,"Integer value"),Gs.forEach(r),Po=f(st),Be=l(st,"TH",{align:!0});var Js=s(Be);Go=n(Js,"Description"),Js.forEach(r),st.forEach(r),ks.forEach(r),Jo=f(xr),T=l(xr,"TBODY",{});var V=s(T);k=l(V,"TR",{});var it=s(k);se=l(it,"TD",{align:!0});var Ur=s(se);It=l(Ur,"CODE",{});var Bs=s(It);Bo=n(Bs,"diffusers.logging.CRITICAL"),Bs.forEach(r),Mo=n(Ur," or "),Nt=l(Ur,"CODE",{});var Ms=s(Nt);Zo=n(Ms,"diffusers.logging.FATAL"),Ms.forEach(r),Ur.forEach(r),Wo=f(it),Me=l(it,"TD",{align:!0});var Zs=s(Me);qo=n(Zs,"50"),Zs.forEach(r),Yo=f(it),Ze=l(it,"TD",{align:!0});var Ws=s(Ze);Ho=n(Ws,"only report the most critical errors"),Ws.forEach(r),it.forEach(r),Xo=f(V),P=l(V,"TR",{});var nt=s(P);We=l(nt,"TD",{align:!0});var qs=s(We);At=l(qs,"CODE",{});var Ys=s(At);jo=n(Ys,"diffusers.logging.ERROR"),Ys.forEach(r),qs.forEach(r),zo=f(nt),qe=l(nt,"TD",{align:!0});var Hs=s(qe);Ko=n(Hs,"40"),Hs.forEach(r),Qo=f(nt),Ye=l(nt,"TD",{align:!0});var Xs=s(Ye);el=n(Xs,"only report errors"),Xs.forEach(r),nt.forEach(r),tl=f(V),G=l(V,"TR",{});var at=s(G);ie=l(at,"TD",{align:!0});var Fr=s(ie);Ot=l(Fr,"CODE",{});var js=s(Ot);rl=n(js,"diffusers.logging.WARNING"),js.forEach(r),ol=n(Fr," or "),St=l(Fr,"CODE",{});var zs=s(St);ll=n(zs,"diffusers.logging.WARN"),zs.forEach(r),Fr.forEach(r),sl=f(at),He=l(at,"TD",{align:!0});var Ks=s(He);il=n(Ks,"30"),Ks.forEach(r),nl=f(at),Xe=l(at,"TD",{align:!0});var Qs=s(Xe);al=n(Qs,"only report errors and warnings (default)"),Qs.forEach(r),at.forEach(r),fl=f(V),J=l(V,"TR",{});var ft=s(J);je=l(ft,"TD",{align:!0});var ei=s(je);Ct=l(ei,"CODE",{});var ti=s(Ct);gl=n(ti,"diffusers.logging.INFO"),ti.forEach(r),ei.forEach(r),dl=f(ft),ze=l(ft,"TD",{align:!0});var ri=s(ze);ul=n(ri,"20"),ri.forEach(r),cl=f(ft),Ke=l(ft,"TD",{align:!0});var oi=s(Ke);pl=n(oi,"only report errors, warnings, and basic information"),oi.forEach(r),ft.forEach(r),hl=f(V),B=l(V,"TR",{});var gt=s(B);Qe=l(gt,"TD",{align:!0});var li=s(Qe);xt=l(li,"CODE",{});var si=s(xt);ml=n(si,"diffusers.logging.DEBUG"),si.forEach(r),li.forEach(r),vl=f(gt),et=l(gt,"TD",{align:!0});var ii=s(et);bl=n(ii,"10"),ii.forEach(r),_l=f(gt),tt=l(gt,"TD",{align:!0});var ni=s(tt);El=n(ni,"report all information"),ni.forEach(r),gt.forEach(r),V.forEach(r),xr.forEach(r),pr=f(e),N=l(e,"P",{});var ge=s(N);$l=n(ge,"By default, "),Ut=l(ge,"CODE",{});var ai=s(Ut);yl=n(ai,"tqdm"),ai.forEach(r),Dl=n(ge," progress bars are displayed during model download. "),rt=l(ge,"A",{href:!0});var fi=s(rt);wl=n(fi,"logging.disable_progress_bar()"),fi.forEach(r),Rl=n(ge," and "),ot=l(ge,"A",{href:!0});var gi=s(ot);Tl=n(gi,"logging.enable_progress_bar()"),gi.forEach(r),Il=n(ge," are used to enable or disable this behavior."),ge.forEach(r),hr=f(e),M=l(e,"H2",{class:!0});var Vr=s(M);ne=l(Vr,"A",{id:!0,class:!0,href:!0});var di=s(ne);Ft=l(di,"SPAN",{});var ui=s(Ft);h(he.$$.fragment,ui),ui.forEach(r),di.forEach(r),Nl=f(Vr),Vt=l(Vr,"SPAN",{});var ci=s(Vt);Al=n(ci,"Base setters"),ci.forEach(r),Vr.forEach(r),mr=f(e),Z=l(e,"DIV",{class:!0});var Lr=s(Z);h(me.$$.fragment,Lr),Ol=f(Lr),ve=l(Lr,"P",{});var kr=s(ve);Sl=n(kr,"Set the verbosity to the "),Lt=l(kr,"CODE",{});var pi=s(Lt);Cl=n(pi,"ERROR"),pi.forEach(r),xl=n(kr," level."),kr.forEach(r),Lr.forEach(r),vr=f(e),W=l(e,"DIV",{class:!0});var Pr=s(W);h(be.$$.fragment,Pr),Ul=f(Pr),_e=l(Pr,"P",{});var Gr=s(_e);Fl=n(Gr,"Set the verbosity to the "),kt=l(Gr,"CODE",{});var hi=s(kt);Vl=n(hi,"WARNING"),hi.forEach(r),Ll=n(Gr," level."),Gr.forEach(r),Pr.forEach(r),br=f(e),q=l(e,"DIV",{class:!0});var Jr=s(q);h(Ee.$$.fragment,Jr),kl=f(Jr),$e=l(Jr,"P",{});var Br=s($e);Pl=n(Br,"Set the verbosity to the "),Pt=l(Br,"CODE",{});var mi=s(Pt);Gl=n(mi,"INFO"),mi.forEach(r),Jl=n(Br," level."),Br.forEach(r),Jr.forEach(r),_r=f(e),Y=l(e,"DIV",{class:!0});var Mr=s(Y);h(ye.$$.fragment,Mr),Bl=f(Mr),De=l(Mr,"P",{});var Zr=s(De);Ml=n(Zr,"Set the verbosity to the "),Gt=l(Zr,"CODE",{});var vi=s(Gt);Zl=n(vi,"DEBUG"),vi.forEach(r),Wl=n(Zr," level."),Zr.forEach(r),Mr.forEach(r),Er=f(e),H=l(e,"H2",{class:!0});var Wr=s(H);ae=l(Wr,"A",{id:!0,class:!0,href:!0});var bi=s(ae);Jt=l(bi,"SPAN",{});var _i=s(Jt);h(we.$$.fragment,_i),_i.forEach(r),bi.forEach(r),ql=f(Wr),Bt=l(Wr,"SPAN",{});var Ei=s(Bt);Yl=n(Ei,"Other functions"),Ei.forEach(r),Wr.forEach(r),$r=f(e),X=l(e,"DIV",{class:!0});var qr=s(X);h(Re.$$.fragment,qr),Hl=f(qr),Te=l(qr,"P",{});var Yr=s(Te);Xl=n(Yr,"Return the current level for the \u{1F917} Diffusers\u2019 root logger as an "),Mt=l(Yr,"CODE",{});var $i=s(Mt);jl=n($i,"int"),$i.forEach(r),zl=n(Yr,"."),Yr.forEach(r),qr.forEach(r),yr=f(e),j=l(e,"DIV",{class:!0});var Hr=s(j);h(Ie.$$.fragment,Hr),Kl=f(Hr),Zt=l(Hr,"P",{});var yi=s(Zt);Ql=n(yi,"Set the verbosity level for the \u{1F917} Diffusers\u2019 root logger."),yi.forEach(r),Hr.forEach(r),Dr=f(e),A=l(e,"DIV",{class:!0});var dt=s(A);h(Ne.$$.fragment,dt),es=f(dt),Wt=l(dt,"P",{});var Di=s(Wt);ts=n(Di,"Return a logger with the specified name."),Di.forEach(r),rs=f(dt),qt=l(dt,"P",{});var wi=s(qt);os=n(wi,"This function is not supposed to be directly accessed unless you are writing a custom diffusers module."),wi.forEach(r),dt.forEach(r),wr=f(e),z=l(e,"DIV",{class:!0});var Xr=s(z);h(Ae.$$.fragment,Xr),ls=f(Xr),Yt=l(Xr,"P",{});var Ri=s(Yt);ss=n(Ri,"Enable the default handler of the \u{1F917} Diffusers\u2019 root logger."),Ri.forEach(r),Xr.forEach(r),Rr=f(e),K=l(e,"DIV",{class:!0});var jr=s(K);h(Oe.$$.fragment,jr),is=f(jr),Ht=l(jr,"P",{});var Ti=s(Ht);ns=n(Ti,"Disable the default handler of the \u{1F917} Diffusers\u2019 root logger."),Ti.forEach(r),jr.forEach(r),Tr=f(e),U=l(e,"DIV",{class:!0});var Qt=s(U);h(Se.$$.fragment,Qt),as=f(Qt),h(fe.$$.fragment,Qt),fs=n(Qt,` | |
| All handlers currently bound to the root logger are affected by this method.`),Qt.forEach(r),Ir=f(e),O=l(e,"DIV",{class:!0});var ut=s(O);h(Ce.$$.fragment,ut),gs=f(ut),Xt=l(ut,"P",{});var Ii=s(Xt);ds=n(Ii,"Resets the formatting for \u{1F917} Diffusers\u2019 loggers."),Ii.forEach(r),us=f(ut),jt=l(ut,"P",{});var Ni=s(jt);cs=n(Ni,"All handlers currently bound to the root logger are affected by this method."),Ni.forEach(r),ut.forEach(r),Nr=f(e),Q=l(e,"DIV",{class:!0});var zr=s(Q);h(xe.$$.fragment,zr),ps=f(zr),zt=l(zr,"P",{});var Ai=s(zt);hs=n(Ai,"Enable tqdm progress bar."),Ai.forEach(r),zr.forEach(r),Ar=f(e),ee=l(e,"DIV",{class:!0});var Kr=s(ee);h(Ue.$$.fragment,Kr),ms=f(Kr),Kt=l(Kr,"P",{});var Oi=s(Kt);vs=n(Oi,"Disable tqdm progress bar."),Oi.forEach(r),Kr.forEach(r),this.h()},h(){u($,"name","hf:doc:metadata"),u($,"content",JSON.stringify(Gi)),u(y,"id","logging"),u(y,"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"),u(y,"href","#logging"),u(D,"class","relative group"),u(Le,"href","/docs/diffusers/main/en/api/logging#diffusers.utils.logging.get_verbosity"),u(ke,"href","/docs/diffusers/main/en/api/logging#diffusers.utils.logging.set_verbosity"),u(Ge,"align","right"),u(Je,"align","right"),u(Be,"align","right"),u(se,"align","right"),u(Me,"align","right"),u(Ze,"align","right"),u(We,"align","right"),u(qe,"align","right"),u(Ye,"align","right"),u(ie,"align","right"),u(He,"align","right"),u(Xe,"align","right"),u(je,"align","right"),u(ze,"align","right"),u(Ke,"align","right"),u(Qe,"align","right"),u(et,"align","right"),u(tt,"align","right"),u(rt,"href","/docs/diffusers/main/en/api/logging#diffusers.utils.logging.disable_progress_bar"),u(ot,"href","/docs/diffusers/main/en/api/logging#diffusers.utils.logging.enable_progress_bar"),u(ne,"id","diffusers.utils.logging.set_verbosity_error"),u(ne,"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"),u(ne,"href","#diffusers.utils.logging.set_verbosity_error"),u(M,"class","relative group"),u(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ae,"id","diffusers.utils.logging.get_verbosity"),u(ae,"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"),u(ae,"href","#diffusers.utils.logging.get_verbosity"),u(H,"class","relative group"),u(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ee,"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,g){t(document.head,$),d(e,te,g),d(e,D,g),t(D,y),t(y,S),m(c,S,null),t(D,C),t(D,ct),t(ct,Qr),d(e,rr,g),d(e,re,g),t(re,eo),t(re,pt),t(pt,to),t(re,ro),d(e,or,g),d(e,oe,g),t(oe,oo),t(oe,ht),t(ht,lo),t(oe,so),d(e,lr,g),m(de,e,g),d(e,sr,g),d(e,E,g),t(E,io),t(E,mt),t(mt,no),t(E,ao),t(E,vt),t(vt,fo),t(E,go),t(E,bt),t(bt,uo),t(E,co),t(E,_t),t(_t,po),t(E,ho),t(E,Et),t(Et,mo),t(E,vo),t(E,$t),t($t,bo),t(E,_o),d(e,ir,g),m(ue,e,g),d(e,nr,g),d(e,w,g),t(w,Eo),t(w,yt),t(yt,$o),t(w,yo),t(w,Dt),t(Dt,Do),t(w,wo),t(w,wt),t(wt,Ro),t(w,To),t(w,Rt),t(Rt,Io),t(w,No),d(e,ar,g),m(ce,e,g),d(e,fr,g),d(e,Ve,g),t(Ve,Ao),d(e,gr,g),m(pe,e,g),d(e,dr,g),d(e,x,g),t(x,Oo),t(x,Le),t(Le,So),t(x,Co),t(x,ke),t(ke,xo),t(x,Uo),d(e,ur,g),d(e,Pe,g),t(Pe,Fo),d(e,cr,g),d(e,le,g),t(le,Tt),t(Tt,L),t(L,Ge),t(Ge,Vo),t(L,Lo),t(L,Je),t(Je,ko),t(L,Po),t(L,Be),t(Be,Go),t(le,Jo),t(le,T),t(T,k),t(k,se),t(se,It),t(It,Bo),t(se,Mo),t(se,Nt),t(Nt,Zo),t(k,Wo),t(k,Me),t(Me,qo),t(k,Yo),t(k,Ze),t(Ze,Ho),t(T,Xo),t(T,P),t(P,We),t(We,At),t(At,jo),t(P,zo),t(P,qe),t(qe,Ko),t(P,Qo),t(P,Ye),t(Ye,el),t(T,tl),t(T,G),t(G,ie),t(ie,Ot),t(Ot,rl),t(ie,ol),t(ie,St),t(St,ll),t(G,sl),t(G,He),t(He,il),t(G,nl),t(G,Xe),t(Xe,al),t(T,fl),t(T,J),t(J,je),t(je,Ct),t(Ct,gl),t(J,dl),t(J,ze),t(ze,ul),t(J,cl),t(J,Ke),t(Ke,pl),t(T,hl),t(T,B),t(B,Qe),t(Qe,xt),t(xt,ml),t(B,vl),t(B,et),t(et,bl),t(B,_l),t(B,tt),t(tt,El),d(e,pr,g),d(e,N,g),t(N,$l),t(N,Ut),t(Ut,yl),t(N,Dl),t(N,rt),t(rt,wl),t(N,Rl),t(N,ot),t(ot,Tl),t(N,Il),d(e,hr,g),d(e,M,g),t(M,ne),t(ne,Ft),m(he,Ft,null),t(M,Nl),t(M,Vt),t(Vt,Al),d(e,mr,g),d(e,Z,g),m(me,Z,null),t(Z,Ol),t(Z,ve),t(ve,Sl),t(ve,Lt),t(Lt,Cl),t(ve,xl),d(e,vr,g),d(e,W,g),m(be,W,null),t(W,Ul),t(W,_e),t(_e,Fl),t(_e,kt),t(kt,Vl),t(_e,Ll),d(e,br,g),d(e,q,g),m(Ee,q,null),t(q,kl),t(q,$e),t($e,Pl),t($e,Pt),t(Pt,Gl),t($e,Jl),d(e,_r,g),d(e,Y,g),m(ye,Y,null),t(Y,Bl),t(Y,De),t(De,Ml),t(De,Gt),t(Gt,Zl),t(De,Wl),d(e,Er,g),d(e,H,g),t(H,ae),t(ae,Jt),m(we,Jt,null),t(H,ql),t(H,Bt),t(Bt,Yl),d(e,$r,g),d(e,X,g),m(Re,X,null),t(X,Hl),t(X,Te),t(Te,Xl),t(Te,Mt),t(Mt,jl),t(Te,zl),d(e,yr,g),d(e,j,g),m(Ie,j,null),t(j,Kl),t(j,Zt),t(Zt,Ql),d(e,Dr,g),d(e,A,g),m(Ne,A,null),t(A,es),t(A,Wt),t(Wt,ts),t(A,rs),t(A,qt),t(qt,os),d(e,wr,g),d(e,z,g),m(Ae,z,null),t(z,ls),t(z,Yt),t(Yt,ss),d(e,Rr,g),d(e,K,g),m(Oe,K,null),t(K,is),t(K,Ht),t(Ht,ns),d(e,Tr,g),d(e,U,g),m(Se,U,null),t(U,as),m(fe,U,null),t(U,fs),d(e,Ir,g),d(e,O,g),m(Ce,O,null),t(O,gs),t(O,Xt),t(Xt,ds),t(O,us),t(O,jt),t(jt,cs),d(e,Nr,g),d(e,Q,g),m(xe,Q,null),t(Q,ps),t(Q,zt),t(zt,hs),d(e,Ar,g),d(e,ee,g),m(Ue,ee,null),t(ee,ms),t(ee,Kt),t(Kt,vs),Or=!0},p(e,[g]){const Fe={};g&2&&(Fe.$$scope={dirty:g,ctx:e}),fe.$set(Fe)},i(e){Or||(v(c.$$.fragment,e),v(de.$$.fragment,e),v(ue.$$.fragment,e),v(ce.$$.fragment,e),v(pe.$$.fragment,e),v(he.$$.fragment,e),v(me.$$.fragment,e),v(be.$$.fragment,e),v(Ee.$$.fragment,e),v(ye.$$.fragment,e),v(we.$$.fragment,e),v(Re.$$.fragment,e),v(Ie.$$.fragment,e),v(Ne.$$.fragment,e),v(Ae.$$.fragment,e),v(Oe.$$.fragment,e),v(Se.$$.fragment,e),v(fe.$$.fragment,e),v(Ce.$$.fragment,e),v(xe.$$.fragment,e),v(Ue.$$.fragment,e),Or=!0)},o(e){b(c.$$.fragment,e),b(de.$$.fragment,e),b(ue.$$.fragment,e),b(ce.$$.fragment,e),b(pe.$$.fragment,e),b(he.$$.fragment,e),b(me.$$.fragment,e),b(be.$$.fragment,e),b(Ee.$$.fragment,e),b(ye.$$.fragment,e),b(we.$$.fragment,e),b(Re.$$.fragment,e),b(Ie.$$.fragment,e),b(Ne.$$.fragment,e),b(Ae.$$.fragment,e),b(Oe.$$.fragment,e),b(Se.$$.fragment,e),b(fe.$$.fragment,e),b(Ce.$$.fragment,e),b(xe.$$.fragment,e),b(Ue.$$.fragment,e),Or=!1},d(e){r($),e&&r(te),e&&r(D),_(c),e&&r(rr),e&&r(re),e&&r(or),e&&r(oe),e&&r(lr),_(de,e),e&&r(sr),e&&r(E),e&&r(ir),_(ue,e),e&&r(nr),e&&r(w),e&&r(ar),_(ce,e),e&&r(fr),e&&r(Ve),e&&r(gr),_(pe,e),e&&r(dr),e&&r(x),e&&r(ur),e&&r(Pe),e&&r(cr),e&&r(le),e&&r(pr),e&&r(N),e&&r(hr),e&&r(M),_(he),e&&r(mr),e&&r(Z),_(me),e&&r(vr),e&&r(W),_(be),e&&r(br),e&&r(q),_(Ee),e&&r(_r),e&&r(Y),_(ye),e&&r(Er),e&&r(H),_(we),e&&r($r),e&&r(X),_(Re),e&&r(yr),e&&r(j),_(Ie),e&&r(Dr),e&&r(A),_(Ne),e&&r(wr),e&&r(z),_(Ae),e&&r(Rr),e&&r(K),_(Oe),e&&r(Tr),e&&r(U),_(Se),_(fe),e&&r(Ir),e&&r(O),_(Ce),e&&r(Nr),e&&r(Q),_(xe),e&&r(Ar),e&&r(ee),_(Ue)}}}const Gi={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 Ji(tr){return Fi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yi extends Si{constructor($){super();Ci(this,$,Ji,Pi,xi,{})}}export{Yi as default,Gi as metadata}; | |
Xet Storage Details
- Size:
- 29.9 kB
- Xet hash:
- edcfb019130790ee50b6221fda8c9ddc64665565a3a94604c33aba083e0cac88
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.