import{S as Wn,i as Un,s as Bn,e as a,k as f,w as kt,t as l,M as jn,c as r,d as t,m as h,a as n,x as $t,h as s,b as i,N as Mn,G as e,g as u,y as Ot,L as Fn,q as At,o as It,B as Nt,v as Jn}from"../../chunks/vendor-hf-doc-builder.js";import{I as ur}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as Hn}from"../../chunks/CodeBlock-hf-doc-builder.js";function Yn(cr){let A,St,I,D,Oe,Y,eo,Ae,to,Rt,q,oo,Ie,ao,ro,Dt,E,Ne,no,lo,Se,so,io,Re,fo,ho,z,uo,qt,y,co,De,po,mo,qe,go,vo,Ge,yo,_o,Ce,Eo,xo,Gt,x,p,Pe,wo,bo,Le,To,ko,Me,$o,Oo,He,Ao,Io,K,No,So,We,Ro,Do,Q,qo,Go,Co,se,Ue,Po,Lo,Mo,G,Be,Ho,Wo,je,Uo,Bo,jo,C,Fe,Fo,Jo,Je,Yo,zo,Ct,m,Ko,Ye,Qo,Vo,ze,Xo,Zo,Ke,ea,ta,Qe,oa,aa,V,ra,na,X,la,sa,Pt,ie,ia,Lt,$,Ve,fe,fa,ha,Xe,he,da,ua,Ze,de,ca,Mt,P,et,w,tt,pa,ma,ot,ga,va,ue,ya,_a,ce,Ea,xa,N,b,at,pe,rt,wa,ba,nt,Ta,ka,me,$a,Oa,ge,Z,ve,pr,Aa,T,lt,ye,st,Ia,Na,it,Sa,Ra,_e,Da,qa,ft,Ga,k,ht,Ee,dt,Ca,Pa,ut,La,Ma,xe,Ha,Wa,we,ee,be,mr,Ht,S,L,ct,te,Ua,pt,Ba,Wt,c,ja,mt,Fa,Ja,gt,Ya,za,vt,Ka,Qa,oe,Va,Xa,yt,Za,er,ae,tr,or,_t,ar,rr,Ut,R,M,Et,re,nr,xt,lr,Bt,H,sr,wt,ir,fr,jt,ne,Ft,Te,hr,Jt,le,Yt;return Y=new ur({}),te=new ur({}),re=new ur({}),ne=new Hn({props:{code:`git clone https://github.com/huggingface/diffusers
cd diffusers
pip install .`,highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/diffusers
<span class="hljs-built_in">cd</span> diffusers
pip install .`}}),le=new Hn({props:{code:"pip install -r requirements.txt",highlighted:"pip install -r requirements.txt"}}),{c(){A=a("meta"),St=f(),I=a("h1"),D=a("a"),Oe=a("span"),kt(Y.$$.fragment),eo=f(),Ae=a("span"),to=l("\u{1F9E8} Diffusers Training Examples"),Rt=f(),q=a("p"),oo=l("Diffusers examples are a collection of scripts to demonstrate how to effectively use the "),Ie=a("code"),ao=l("diffusers"),ro=l(` library
for a variety of use cases.`),Dt=f(),E=a("p"),Ne=a("strong"),no=l("Note"),lo=l(": If you are looking for "),Se=a("strong"),so=l("official"),io=l(" examples on how to use "),Re=a("code"),fo=l("diffusers"),ho=l(` for inference,
please have a look at `),z=a("a"),uo=l("src/diffusers/pipelines"),qt=f(),y=a("p"),co=l("Our examples aspire to be "),De=a("strong"),po=l("self-contained"),mo=l(", "),qe=a("strong"),go=l("easy-to-tweak"),vo=l(", "),Ge=a("strong"),yo=l("beginner-friendly"),_o=l(" and for "),Ce=a("strong"),Eo=l("one-purpose-only"),xo=l(`.
More specifically, this means:`),Gt=f(),x=a("ul"),p=a("li"),Pe=a("strong"),wo=l("Self-contained"),bo=l(": An example script shall only depend on \u201Cpip-install-able\u201D Python packages that can be found in a "),Le=a("code"),To=l("requirements.txt"),ko=l(" file. Example scripts shall "),Me=a("strong"),$o=l("not"),Oo=l(" depend on any local files. This means that one can simply download an example script, "),He=a("em"),Ao=l("e.g."),Io=f(),K=a("a"),No=l("train_unconditional.py"),So=l(", install the required dependencies, "),We=a("em"),Ro=l("e.g."),Do=f(),Q=a("a"),qo=l("requirements.txt"),Go=l(" and execute the example script."),Co=f(),se=a("li"),Ue=a("strong"),Po=l("Easy-to-tweak"),Lo=l(": While we strive to present as many use cases as possible, the example scripts are just that - examples. It is expected that they won\u2019t work out-of-the box on your specific problem and that you will be required to change a few lines of code to adapt them to your needs. To help you with that, most of the examples fully expose the preprocessing of the data and the training loop to allow you to tweak and edit them as required."),Mo=f(),G=a("li"),Be=a("strong"),Ho=l("Beginner-friendly"),Wo=l(": We do not aim for providing state-of-the-art training scripts for the newest models, but rather examples that can be used as a way to better understand diffusion models and how to use them with the "),je=a("code"),Uo=l("diffusers"),Bo=l(" library. We often purposefully leave out certain state-of-the-art methods if we consider them too complex for beginners."),jo=f(),C=a("li"),Fe=a("strong"),Fo=l("One-purpose-only"),Jo=l(`: Examples should show one task and one task only. Even if a task is from a modeling
point of view very similar, `),Je=a("em"),Yo=l("e.g."),zo=l(" image super-resolution and image modification tend to use the same model and training method, we want examples to showcase only one task to keep them as readable and easy-to-understand as possible."),Ct=f(),m=a("p"),Ko=l("We provide "),Ye=a("strong"),Qo=l("official"),Vo=l(` examples that cover the most popular tasks of diffusion models.
`),ze=a("em"),Xo=l("Official"),Zo=l(" examples are "),Ke=a("strong"),ea=l("actively"),ta=l(" maintained by the "),Qe=a("code"),oa=l("diffusers"),aa=l(` maintainers and we try to rigorously follow our example philosophy as defined above.
If you feel like another important example should exist, we are more than happy to welcome a `),V=a("a"),ra=l("Feature Request"),na=l(" or directly a "),X=a("a"),la=l("Pull Request"),sa=l(" from you!"),Pt=f(),ie=a("p"),ia=l("Training examples show how to pretrain or fine-tune diffusion models for a variety of tasks. Currently we support:"),Lt=f(),$=a("ul"),Ve=a("li"),fe=a("a"),fa=l("Unconditional Training"),ha=f(),Xe=a("li"),he=a("a"),da=l("Text-to-Image Training"),ua=f(),Ze=a("li"),de=a("a"),ca=l("Text Inversion"),Mt=f(),P=a("table"),et=a("thead"),w=a("tr"),tt=a("th"),pa=l("Task"),ma=f(),ot=a("th"),ga=l("\u{1F917} Accelerate"),va=f(),ue=a("th"),ya=l("\u{1F917} Datasets"),_a=f(),ce=a("th"),Ea=l("Colab"),xa=f(),N=a("tbody"),b=a("tr"),at=a("td"),pe=a("a"),rt=a("strong"),wa=l("Unconditional Image Generation"),ba=f(),nt=a("td"),Ta=l("\u2705"),ka=f(),me=a("td"),$a=l("\u2705"),Oa=f(),ge=a("td"),Z=a("a"),ve=a("img"),Aa=f(),T=a("tr"),lt=a("td"),ye=a("a"),st=a("strong"),Ia=l("Text-to-Image"),Na=f(),it=a("td"),Sa=l("-"),Ra=f(),_e=a("td"),Da=l("-"),qa=f(),ft=a("td"),Ga=f(),k=a("tr"),ht=a("td"),Ee=a("a"),dt=a("strong"),Ca=l("Text-Inversion"),Pa=f(),ut=a("td"),La=l("\u2705"),Ma=f(),xe=a("td"),Ha=l("\u2705"),Wa=f(),we=a("td"),ee=a("a"),be=a("img"),Ht=f(),S=a("h2"),L=a("a"),ct=a("span"),kt(te.$$.fragment),Ua=f(),pt=a("span"),Ba=l("Community"),Wt=f(),c=a("p"),ja=l("In addition, we provide "),mt=a("strong"),Fa=l("community"),Ja=l(` examples, which are examples added and maintained by our community.
Community examples can consist of both `),gt=a("em"),Ya=l("training"),za=l(" examples or "),vt=a("em"),Ka=l("inference"),Qa=l(` pipelines.
For such examples, we are more lenient regarding the philosophy defined above and also cannot guarantee to provide maintenance for every issue.
Examples that are useful for the community, but are either not yet deemed popular or not yet following our above philosophy should go into the `),oe=a("a"),Va=l("community examples"),Xa=l(` folder. The community folder therefore includes training examples and inference pipelines.
`),yt=a("strong"),Za=l("Note"),er=l(": Community examples can be a "),ae=a("a"),tr=l("great first contribution"),or=l(" to show to the community how you like to use "),_t=a("code"),ar=l("diffusers"),rr=l(" \u{1FA84}."),Ut=f(),R=a("h2"),M=a("a"),Et=a("span"),kt(re.$$.fragment),nr=f(),xt=a("span"),lr=l("Important note"),Bt=f(),H=a("p"),sr=l("To make sure you can successfully run the latest versions of the example scripts, you have to "),wt=a("strong"),ir=l("install the library from source"),fr=l(" and install some example-specific requirements. To do this, execute the following steps in a new virtual environment:"),jt=f(),kt(ne.$$.fragment),Ft=f(),Te=a("p"),hr=l("Then cd in the example folder of your choice and run"),Jt=f(),kt(le.$$.fragment),this.h()},l(o){const d=jn('[data-svelte="svelte-1phssyn"]',document.head);A=r(d,"META",{name:!0,content:!0}),d.forEach(t),St=h(o),I=r(o,"H1",{class:!0});var zt=n(I);D=r(zt,"A",{id:!0,class:!0,href:!0});var gr=n(D);Oe=r(gr,"SPAN",{});var vr=n(Oe);$t(Y.$$.fragment,vr),vr.forEach(t),gr.forEach(t),eo=h(zt),Ae=r(zt,"SPAN",{});var yr=n(Ae);to=s(yr,"\u{1F9E8} Diffusers Training Examples"),yr.forEach(t),zt.forEach(t),Rt=h(o),q=r(o,"P",{});var Kt=n(q);oo=s(Kt,"Diffusers examples are a collection of scripts to demonstrate how to effectively use the "),Ie=r(Kt,"CODE",{});var _r=n(Ie);ao=s(_r,"diffusers"),_r.forEach(t),ro=s(Kt,` library
for a variety of use cases.`),Kt.forEach(t),Dt=h(o),E=r(o,"P",{});var W=n(E);Ne=r(W,"STRONG",{});var Er=n(Ne);no=s(Er,"Note"),Er.forEach(t),lo=s(W,": If you are looking for "),Se=r(W,"STRONG",{});var xr=n(Se);so=s(xr,"official"),xr.forEach(t),io=s(W," examples on how to use "),Re=r(W,"CODE",{});var wr=n(Re);fo=s(wr,"diffusers"),wr.forEach(t),ho=s(W,` for inference,
please have a look at `),z=r(W,"A",{href:!0,rel:!0});var br=n(z);uo=s(br,"src/diffusers/pipelines"),br.forEach(t),W.forEach(t),qt=h(o),y=r(o,"P",{});var O=n(y);co=s(O,"Our examples aspire to be "),De=r(O,"STRONG",{});var Tr=n(De);po=s(Tr,"self-contained"),Tr.forEach(t),mo=s(O,", "),qe=r(O,"STRONG",{});var kr=n(qe);go=s(kr,"easy-to-tweak"),kr.forEach(t),vo=s(O,", "),Ge=r(O,"STRONG",{});var $r=n(Ge);yo=s($r,"beginner-friendly"),$r.forEach(t),_o=s(O," and for "),Ce=r(O,"STRONG",{});var Or=n(Ce);Eo=s(Or,"one-purpose-only"),Or.forEach(t),xo=s(O,`.
More specifically, this means:`),O.forEach(t),Gt=h(o),x=r(o,"UL",{});var U=n(x);p=r(U,"LI",{});var v=n(p);Pe=r(v,"STRONG",{});var Ar=n(Pe);wo=s(Ar,"Self-contained"),Ar.forEach(t),bo=s(v,": An example script shall only depend on \u201Cpip-install-able\u201D Python packages that can be found in a "),Le=r(v,"CODE",{});var Ir=n(Le);To=s(Ir,"requirements.txt"),Ir.forEach(t),ko=s(v," file. Example scripts shall "),Me=r(v,"STRONG",{});var Nr=n(Me);$o=s(Nr,"not"),Nr.forEach(t),Oo=s(v," depend on any local files. This means that one can simply download an example script, "),He=r(v,"EM",{});var Sr=n(He);Ao=s(Sr,"e.g."),Sr.forEach(t),Io=h(v),K=r(v,"A",{href:!0,rel:!0});var Rr=n(K);No=s(Rr,"train_unconditional.py"),Rr.forEach(t),So=s(v,", install the required dependencies, "),We=r(v,"EM",{});var Dr=n(We);Ro=s(Dr,"e.g."),Dr.forEach(t),Do=h(v),Q=r(v,"A",{href:!0,rel:!0});var qr=n(Q);qo=s(qr,"requirements.txt"),qr.forEach(t),Go=s(v," and execute the example script."),v.forEach(t),Co=h(U),se=r(U,"LI",{});var dr=n(se);Ue=r(dr,"STRONG",{});var Gr=n(Ue);Po=s(Gr,"Easy-to-tweak"),Gr.forEach(t),Lo=s(dr,": While we strive to present as many use cases as possible, the example scripts are just that - examples. It is expected that they won\u2019t work out-of-the box on your specific problem and that you will be required to change a few lines of code to adapt them to your needs. To help you with that, most of the examples fully expose the preprocessing of the data and the training loop to allow you to tweak and edit them as required."),dr.forEach(t),Mo=h(U),G=r(U,"LI",{});var bt=n(G);Be=r(bt,"STRONG",{});var Cr=n(Be);Ho=s(Cr,"Beginner-friendly"),Cr.forEach(t),Wo=s(bt,": We do not aim for providing state-of-the-art training scripts for the newest models, but rather examples that can be used as a way to better understand diffusion models and how to use them with the "),je=r(bt,"CODE",{});var Pr=n(je);Uo=s(Pr,"diffusers"),Pr.forEach(t),Bo=s(bt," library. We often purposefully leave out certain state-of-the-art methods if we consider them too complex for beginners."),bt.forEach(t),jo=h(U),C=r(U,"LI",{});var Tt=n(C);Fe=r(Tt,"STRONG",{});var Lr=n(Fe);Fo=s(Lr,"One-purpose-only"),Lr.forEach(t),Jo=s(Tt,`: Examples should show one task and one task only. Even if a task is from a modeling
point of view very similar, `),Je=r(Tt,"EM",{});var Mr=n(Je);Yo=s(Mr,"e.g."),Mr.forEach(t),zo=s(Tt," image super-resolution and image modification tend to use the same model and training method, we want examples to showcase only one task to keep them as readable and easy-to-understand as possible."),Tt.forEach(t),U.forEach(t),Ct=h(o),m=r(o,"P",{});var _=n(m);Ko=s(_,"We provide "),Ye=r(_,"STRONG",{});var Hr=n(Ye);Qo=s(Hr,"official"),Hr.forEach(t),Vo=s(_,` examples that cover the most popular tasks of diffusion models.
`),ze=r(_,"EM",{});var Wr=n(ze);Xo=s(Wr,"Official"),Wr.forEach(t),Zo=s(_," examples are "),Ke=r(_,"STRONG",{});var Ur=n(Ke);ea=s(Ur,"actively"),Ur.forEach(t),ta=s(_," maintained by the "),Qe=r(_,"CODE",{});var Br=n(Qe);oa=s(Br,"diffusers"),Br.forEach(t),aa=s(_,` maintainers and we try to rigorously follow our example philosophy as defined above.
If you feel like another important example should exist, we are more than happy to welcome a `),V=r(_,"A",{href:!0,rel:!0});var jr=n(V);ra=s(jr,"Feature Request"),jr.forEach(t),na=s(_," or directly a "),X=r(_,"A",{href:!0,rel:!0});var Fr=n(X);la=s(Fr,"Pull Request"),Fr.forEach(t),sa=s(_," from you!"),_.forEach(t),Pt=h(o),ie=r(o,"P",{});var Jr=n(ie);ia=s(Jr,"Training examples show how to pretrain or fine-tune diffusion models for a variety of tasks. Currently we support:"),Jr.forEach(t),Lt=h(o),$=r(o,"UL",{});var ke=n($);Ve=r(ke,"LI",{});var Yr=n(Ve);fe=r(Yr,"A",{href:!0});var zr=n(fe);fa=s(zr,"Unconditional Training"),zr.forEach(t),Yr.forEach(t),ha=h(ke),Xe=r(ke,"LI",{});var Kr=n(Xe);he=r(Kr,"A",{href:!0});var Qr=n(he);da=s(Qr,"Text-to-Image Training"),Qr.forEach(t),Kr.forEach(t),ua=h(ke),Ze=r(ke,"LI",{});var Vr=n(Ze);de=r(Vr,"A",{href:!0});var Xr=n(de);ca=s(Xr,"Text Inversion"),Xr.forEach(t),Vr.forEach(t),ke.forEach(t),Mt=h(o),P=r(o,"TABLE",{});var Qt=n(P);et=r(Qt,"THEAD",{});var Zr=n(et);w=r(Zr,"TR",{});var B=n(w);tt=r(B,"TH",{});var en=n(tt);pa=s(en,"Task"),en.forEach(t),ma=h(B),ot=r(B,"TH",{});var tn=n(ot);ga=s(tn,"\u{1F917} Accelerate"),tn.forEach(t),va=h(B),ue=r(B,"TH",{align:!0});var on=n(ue);ya=s(on,"\u{1F917} Datasets"),on.forEach(t),_a=h(B),ce=r(B,"TH",{align:!0});var an=n(ce);Ea=s(an,"Colab"),an.forEach(t),B.forEach(t),Zr.forEach(t),xa=h(Qt),N=r(Qt,"TBODY",{});var $e=n(N);b=r($e,"TR",{});var j=n(b);at=r(j,"TD",{});var rn=n(at);pe=r(rn,"A",{href:!0});var nn=n(pe);rt=r(nn,"STRONG",{});var ln=n(rt);wa=s(ln,"Unconditional Image Generation"),ln.forEach(t),nn.forEach(t),rn.forEach(t),ba=h(j),nt=r(j,"TD",{});var sn=n(nt);Ta=s(sn,"\u2705"),sn.forEach(t),ka=h(j),me=r(j,"TD",{align:!0});var fn=n(me);$a=s(fn,"\u2705"),fn.forEach(t),Oa=h(j),ge=r(j,"TD",{align:!0});var hn=n(ge);Z=r(hn,"A",{href:!0,rel:!0});var dn=n(Z);ve=r(dn,"IMG",{src:!0,alt:!0}),dn.forEach(t),hn.forEach(t),j.forEach(t),Aa=h($e),T=r($e,"TR",{});var F=n(T);lt=r(F,"TD",{});var un=n(lt);ye=r(un,"A",{href:!0});var cn=n(ye);st=r(cn,"STRONG",{});var pn=n(st);Ia=s(pn,"Text-to-Image"),pn.forEach(t),cn.forEach(t),un.forEach(t),Na=h(F),it=r(F,"TD",{});var mn=n(it);Sa=s(mn,"-"),mn.forEach(t),Ra=h(F),_e=r(F,"TD",{align:!0});var gn=n(_e);Da=s(gn,"-"),gn.forEach(t),qa=h(F),ft=r(F,"TD",{align:!0}),n(ft).forEach(t),F.forEach(t),Ga=h($e),k=r($e,"TR",{});var J=n(k);ht=r(J,"TD",{});var vn=n(ht);Ee=r(vn,"A",{href:!0});var yn=n(Ee);dt=r(yn,"STRONG",{});var _n=n(dt);Ca=s(_n,"Text-Inversion"),_n.forEach(t),yn.forEach(t),vn.forEach(t),Pa=h(J),ut=r(J,"TD",{});var En=n(ut);La=s(En,"\u2705"),En.forEach(t),Ma=h(J),xe=r(J,"TD",{align:!0});var xn=n(xe);Ha=s(xn,"\u2705"),xn.forEach(t),Wa=h(J),we=r(J,"TD",{align:!0});var wn=n(we);ee=r(wn,"A",{href:!0,rel:!0});var bn=n(ee);be=r(bn,"IMG",{src:!0,alt:!0}),bn.forEach(t),wn.forEach(t),J.forEach(t),$e.forEach(t),Qt.forEach(t),Ht=h(o),S=r(o,"H2",{class:!0});var Vt=n(S);L=r(Vt,"A",{id:!0,class:!0,href:!0});var Tn=n(L);ct=r(Tn,"SPAN",{});var kn=n(ct);$t(te.$$.fragment,kn),kn.forEach(t),Tn.forEach(t),Ua=h(Vt),pt=r(Vt,"SPAN",{});var $n=n(pt);Ba=s($n,"Community"),$n.forEach(t),Vt.forEach(t),Wt=h(o),c=r(o,"P",{});var g=n(c);ja=s(g,"In addition, we provide "),mt=r(g,"STRONG",{});var On=n(mt);Fa=s(On,"community"),On.forEach(t),Ja=s(g,` examples, which are examples added and maintained by our community.
Community examples can consist of both `),gt=r(g,"EM",{});var An=n(gt);Ya=s(An,"training"),An.forEach(t),za=s(g," examples or "),vt=r(g,"EM",{});var In=n(vt);Ka=s(In,"inference"),In.forEach(t),Qa=s(g,` pipelines.
For such examples, we are more lenient regarding the philosophy defined above and also cannot guarantee to provide maintenance for every issue.
Examples that are useful for the community, but are either not yet deemed popular or not yet following our above philosophy should go into the `),oe=r(g,"A",{href:!0,rel:!0});var Nn=n(oe);Va=s(Nn,"community examples"),Nn.forEach(t),Xa=s(g,` folder. The community folder therefore includes training examples and inference pipelines.
`),yt=r(g,"STRONG",{});var Sn=n(yt);Za=s(Sn,"Note"),Sn.forEach(t),er=s(g,": Community examples can be a "),ae=r(g,"A",{href:!0,rel:!0});var Rn=n(ae);tr=s(Rn,"great first contribution"),Rn.forEach(t),or=s(g," to show to the community how you like to use "),_t=r(g,"CODE",{});var Dn=n(_t);ar=s(Dn,"diffusers"),Dn.forEach(t),rr=s(g," \u{1FA84}."),g.forEach(t),Ut=h(o),R=r(o,"H2",{class:!0});var Xt=n(R);M=r(Xt,"A",{id:!0,class:!0,href:!0});var qn=n(M);Et=r(qn,"SPAN",{});var Gn=n(Et);$t(re.$$.fragment,Gn),Gn.forEach(t),qn.forEach(t),nr=h(Xt),xt=r(Xt,"SPAN",{});var Cn=n(xt);lr=s(Cn,"Important note"),Cn.forEach(t),Xt.forEach(t),Bt=h(o),H=r(o,"P",{});var Zt=n(H);sr=s(Zt,"To make sure you can successfully run the latest versions of the example scripts, you have to "),wt=r(Zt,"STRONG",{});var Pn=n(wt);ir=s(Pn,"install the library from source"),Pn.forEach(t),fr=s(Zt," and install some example-specific requirements. To do this, execute the following steps in a new virtual environment:"),Zt.forEach(t),jt=h(o),$t(ne.$$.fragment,o),Ft=h(o),Te=r(o,"P",{});var Ln=n(Te);hr=s(Ln,"Then cd in the example folder of your choice and run"),Ln.forEach(t),Jt=h(o),$t(le.$$.fragment,o),this.h()},h(){i(A,"name","hf:doc:metadata"),i(A,"content",JSON.stringify(zn)),i(D,"id","diffusers-training-examples"),i(D,"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"),i(D,"href","#diffusers-training-examples"),i(I,"class","relative group"),i(z,"href","https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines"),i(z,"rel","nofollow"),i(K,"href","https://github.com/huggingface/diffusers/blob/main/examples/unconditional_image_generation/train_unconditional.py"),i(K,"rel","nofollow"),i(Q,"href","https://github.com/huggingface/diffusers/blob/main/examples/unconditional_image_generation/requirements.txt"),i(Q,"rel","nofollow"),i(V,"href","https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feature_request.md&title="),i(V,"rel","nofollow"),i(X,"href","https://github.com/huggingface/diffusers/compare"),i(X,"rel","nofollow"),i(fe,"href","./unconditional_training"),i(he,"href","./text2image"),i(de,"href","./text_inversion"),i(ue,"align","center"),i(ce,"align","center"),i(pe,"href","./unconditional_training"),i(me,"align","center"),Mn(ve.src,pr="https://colab.research.google.com/assets/colab-badge.svg")||i(ve,"src",pr),i(ve,"alt","Open In Colab"),i(Z,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/training_example.ipynb"),i(Z,"rel","nofollow"),i(ge,"align","center"),i(ye,"href","./text2image"),i(_e,"align","center"),i(ft,"align","center"),i(Ee,"href","./text_inversion"),i(xe,"align","center"),Mn(be.src,mr="https://colab.research.google.com/assets/colab-badge.svg")||i(be,"src",mr),i(be,"alt","Open In Colab"),i(ee,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/sd_textual_inversion_training.ipynb"),i(ee,"rel","nofollow"),i(we,"align","center"),i(L,"id","community"),i(L,"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"),i(L,"href","#community"),i(S,"class","relative group"),i(oe,"href","https://github.com/huggingface/diffusers/tree/main/examples/community"),i(oe,"rel","nofollow"),i(ae,"href","https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22"),i(ae,"rel","nofollow"),i(M,"id","important-note"),i(M,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(M,"href","#important-note"),i(R,"class","relative group")},m(o,d){e(document.head,A),u(o,St,d),u(o,I,d),e(I,D),e(D,Oe),Ot(Y,Oe,null),e(I,eo),e(I,Ae),e(Ae,to),u(o,Rt,d),u(o,q,d),e(q,oo),e(q,Ie),e(Ie,ao),e(q,ro),u(o,Dt,d),u(o,E,d),e(E,Ne),e(Ne,no),e(E,lo),e(E,Se),e(Se,so),e(E,io),e(E,Re),e(Re,fo),e(E,ho),e(E,z),e(z,uo),u(o,qt,d),u(o,y,d),e(y,co),e(y,De),e(De,po),e(y,mo),e(y,qe),e(qe,go),e(y,vo),e(y,Ge),e(Ge,yo),e(y,_o),e(y,Ce),e(Ce,Eo),e(y,xo),u(o,Gt,d),u(o,x,d),e(x,p),e(p,Pe),e(Pe,wo),e(p,bo),e(p,Le),e(Le,To),e(p,ko),e(p,Me),e(Me,$o),e(p,Oo),e(p,He),e(He,Ao),e(p,Io),e(p,K),e(K,No),e(p,So),e(p,We),e(We,Ro),e(p,Do),e(p,Q),e(Q,qo),e(p,Go),e(x,Co),e(x,se),e(se,Ue),e(Ue,Po),e(se,Lo),e(x,Mo),e(x,G),e(G,Be),e(Be,Ho),e(G,Wo),e(G,je),e(je,Uo),e(G,Bo),e(x,jo),e(x,C),e(C,Fe),e(Fe,Fo),e(C,Jo),e(C,Je),e(Je,Yo),e(C,zo),u(o,Ct,d),u(o,m,d),e(m,Ko),e(m,Ye),e(Ye,Qo),e(m,Vo),e(m,ze),e(ze,Xo),e(m,Zo),e(m,Ke),e(Ke,ea),e(m,ta),e(m,Qe),e(Qe,oa),e(m,aa),e(m,V),e(V,ra),e(m,na),e(m,X),e(X,la),e(m,sa),u(o,Pt,d),u(o,ie,d),e(ie,ia),u(o,Lt,d),u(o,$,d),e($,Ve),e(Ve,fe),e(fe,fa),e($,ha),e($,Xe),e(Xe,he),e(he,da),e($,ua),e($,Ze),e(Ze,de),e(de,ca),u(o,Mt,d),u(o,P,d),e(P,et),e(et,w),e(w,tt),e(tt,pa),e(w,ma),e(w,ot),e(ot,ga),e(w,va),e(w,ue),e(ue,ya),e(w,_a),e(w,ce),e(ce,Ea),e(P,xa),e(P,N),e(N,b),e(b,at),e(at,pe),e(pe,rt),e(rt,wa),e(b,ba),e(b,nt),e(nt,Ta),e(b,ka),e(b,me),e(me,$a),e(b,Oa),e(b,ge),e(ge,Z),e(Z,ve),e(N,Aa),e(N,T),e(T,lt),e(lt,ye),e(ye,st),e(st,Ia),e(T,Na),e(T,it),e(it,Sa),e(T,Ra),e(T,_e),e(_e,Da),e(T,qa),e(T,ft),e(N,Ga),e(N,k),e(k,ht),e(ht,Ee),e(Ee,dt),e(dt,Ca),e(k,Pa),e(k,ut),e(ut,La),e(k,Ma),e(k,xe),e(xe,Ha),e(k,Wa),e(k,we),e(we,ee),e(ee,be),u(o,Ht,d),u(o,S,d),e(S,L),e(L,ct),Ot(te,ct,null),e(S,Ua),e(S,pt),e(pt,Ba),u(o,Wt,d),u(o,c,d),e(c,ja),e(c,mt),e(mt,Fa),e(c,Ja),e(c,gt),e(gt,Ya),e(c,za),e(c,vt),e(vt,Ka),e(c,Qa),e(c,oe),e(oe,Va),e(c,Xa),e(c,yt),e(yt,Za),e(c,er),e(c,ae),e(ae,tr),e(c,or),e(c,_t),e(_t,ar),e(c,rr),u(o,Ut,d),u(o,R,d),e(R,M),e(M,Et),Ot(re,Et,null),e(R,nr),e(R,xt),e(xt,lr),u(o,Bt,d),u(o,H,d),e(H,sr),e(H,wt),e(wt,ir),e(H,fr),u(o,jt,d),Ot(ne,o,d),u(o,Ft,d),u(o,Te,d),e(Te,hr),u(o,Jt,d),Ot(le,o,d),Yt=!0},p:Fn,i(o){Yt||(At(Y.$$.fragment,o),At(te.$$.fragment,o),At(re.$$.fragment,o),At(ne.$$.fragment,o),At(le.$$.fragment,o),Yt=!0)},o(o){It(Y.$$.fragment,o),It(te.$$.fragment,o),It(re.$$.fragment,o),It(ne.$$.fragment,o),It(le.$$.fragment,o),Yt=!1},d(o){t(A),o&&t(St),o&&t(I),Nt(Y),o&&t(Rt),o&&t(q),o&&t(Dt),o&&t(E),o&&t(qt),o&&t(y),o&&t(Gt),o&&t(x),o&&t(Ct),o&&t(m),o&&t(Pt),o&&t(ie),o&&t(Lt),o&&t($),o&&t(Mt),o&&t(P),o&&t(Ht),o&&t(S),Nt(te),o&&t(Wt),o&&t(c),o&&t(Ut),o&&t(R),Nt(re),o&&t(Bt),o&&t(H),o&&t(jt),Nt(ne,o),o&&t(Ft),o&&t(Te),o&&t(Jt),Nt(le,o)}}}const zn={local:"diffusers-training-examples",sections:[{local:"community",title:"Community"},{local:"important-note",title:"Important note"}],title:"\u{1F9E8} Diffusers Training Examples"};function Kn(cr){return Jn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Zn extends Wn{constructor(A){super();Un(this,A,Kn,Yn,Bn,{})}}export{Zn as default,zn as metadata};
