import{S as It,i as Lt,s as Dt,e as l,k as f,w as Ze,t as o,M as St,c as a,d as i,m as h,a as n,x as et,h as r,b as s,G as e,g as u,y as tt,L as kt,q as it,o as lt,B as at,v as Mt}from"../chunks/vendor-hf-doc-builder.js";import{I as nt}from"../chunks/IconCopyLink-hf-doc-builder.js";function Nt(ot){let g,X,_,E,C,y,ue,J,me,Y,m,R,ge,_e,z,ve,be,F,Ee,Z,v,P,K,$,Pe,Q,we,ee,U,ye,te,b,w,V,x,$e,W,xe,ie,p,A,Ae,I,Ie,Le,De,L,Se,D,ke,Me,Ne,S,Te,k,Ge,Oe,qe,M,Be,N,He,Ue,je,T,Ce,G,Je,Re,ze,O,Fe,q,Ke,Qe,Ve,B,We,H,Xe,Ye,le;return y=new nt({}),$=new nt({}),x=new nt({}),{c(){g=l("meta"),X=f(),_=l("h1"),E=l("a"),C=l("span"),Ze(y.$$.fragment),ue=f(),J=l("span"),me=o("Pipelines"),Y=f(),m=l("ul"),R=l("li"),ge=o("Pipelines are a collection of end-to-end diffusion systems that can be used out-of-the-box"),_e=f(),z=l("li"),ve=o("Pipelines should stay as close as possible to their original implementation"),be=f(),F=l("li"),Ee=o("Pipelines can include components of other library, such as text-encoders."),Z=f(),v=l("h2"),P=l("a"),K=l("span"),Ze($.$$.fragment),Pe=f(),Q=l("span"),we=o("API"),ee=f(),U=l("p"),ye=o("TODO(Patrick, Anton, Suraj)"),te=f(),b=l("h2"),w=l("a"),V=l("span"),Ze(x.$$.fragment),$e=f(),W=l("span"),xe=o("Examples"),ie=f(),p=l("ul"),A=l("li"),Ae=o("DDPM for unconditional image generation in "),I=l("a"),Ie=o("pipeline_ddpm"),Le=o("."),De=f(),L=l("li"),Se=o("DDIM for unconditional image generation in "),D=l("a"),ke=o("pipeline_ddim"),Me=o("."),Ne=f(),S=l("li"),Te=o("PNDM for unconditional image generation in "),k=l("a"),Ge=o("pipeline_pndm"),Oe=o("."),qe=f(),M=l("li"),Be=o("Latent diffusion for text to image generation / conditional image generation in "),N=l("a"),He=o("pipeline_latent_diffusion"),Ue=o("."),je=f(),T=l("li"),Ce=o("Glide for text to image generation / conditional image generation in "),G=l("a"),Je=o("pipeline_glide"),Re=o("."),ze=f(),O=l("li"),Fe=o("BDDMPipeline for spectrogram-to-sound vocoding in "),q=l("a"),Ke=o("pipeline_bddm"),Qe=o("."),Ve=f(),B=l("li"),We=o("Grad-TTS for text to audio generation / conditional audio generation in "),H=l("a"),Xe=o("pipeline_grad_tts"),Ye=o("."),this.h()},l(t){const c=St('[data-svelte="svelte-1phssyn"]',document.head);g=a(c,"META",{name:!0,content:!0}),c.forEach(i),X=h(t),_=a(t,"H1",{class:!0});var ae=n(_);E=a(ae,"A",{id:!0,class:!0,href:!0});var rt=n(E);C=a(rt,"SPAN",{});var st=n(C);et(y.$$.fragment,st),st.forEach(i),rt.forEach(i),ue=h(ae),J=a(ae,"SPAN",{});var pt=n(J);me=r(pt,"Pipelines"),pt.forEach(i),ae.forEach(i),Y=h(t),m=a(t,"UL",{});var j=n(m);R=a(j,"LI",{});var ft=n(R);ge=r(ft,"Pipelines are a collection of end-to-end diffusion systems that can be used out-of-the-box"),ft.forEach(i),_e=h(j),z=a(j,"LI",{});var ht=n(z);ve=r(ht,"Pipelines should stay as close as possible to their original implementation"),ht.forEach(i),be=h(j),F=a(j,"LI",{});var ct=n(F);Ee=r(ct,"Pipelines can include components of other library, such as text-encoders."),ct.forEach(i),j.forEach(i),Z=h(t),v=a(t,"H2",{class:!0});var ne=n(v);P=a(ne,"A",{id:!0,class:!0,href:!0});var dt=n(P);K=a(dt,"SPAN",{});var ut=n(K);et($.$$.fragment,ut),ut.forEach(i),dt.forEach(i),Pe=h(ne),Q=a(ne,"SPAN",{});var mt=n(Q);we=r(mt,"API"),mt.forEach(i),ne.forEach(i),ee=h(t),U=a(t,"P",{});var gt=n(U);ye=r(gt,"TODO(Patrick, Anton, Suraj)"),gt.forEach(i),te=h(t),b=a(t,"H2",{class:!0});var oe=n(b);w=a(oe,"A",{id:!0,class:!0,href:!0});var _t=n(w);V=a(_t,"SPAN",{});var vt=n(V);et(x.$$.fragment,vt),vt.forEach(i),_t.forEach(i),$e=h(oe),W=a(oe,"SPAN",{});var bt=n(W);xe=r(bt,"Examples"),bt.forEach(i),oe.forEach(i),ie=h(t),p=a(t,"UL",{});var d=n(p);A=a(d,"LI",{});var re=n(A);Ae=r(re,"DDPM for unconditional image generation in "),I=a(re,"A",{href:!0,rel:!0});var Et=n(I);Ie=r(Et,"pipeline_ddpm"),Et.forEach(i),Le=r(re,"."),re.forEach(i),De=h(d),L=a(d,"LI",{});var se=n(L);Se=r(se,"DDIM for unconditional image generation in "),D=a(se,"A",{href:!0,rel:!0});var Pt=n(D);ke=r(Pt,"pipeline_ddim"),Pt.forEach(i),Me=r(se,"."),se.forEach(i),Ne=h(d),S=a(d,"LI",{});var pe=n(S);Te=r(pe,"PNDM for unconditional image generation in "),k=a(pe,"A",{href:!0,rel:!0});var wt=n(k);Ge=r(wt,"pipeline_pndm"),wt.forEach(i),Oe=r(pe,"."),pe.forEach(i),qe=h(d),M=a(d,"LI",{});var fe=n(M);Be=r(fe,"Latent diffusion for text to image generation / conditional image generation in "),N=a(fe,"A",{href:!0,rel:!0});var yt=n(N);He=r(yt,"pipeline_latent_diffusion"),yt.forEach(i),Ue=r(fe,"."),fe.forEach(i),je=h(d),T=a(d,"LI",{});var he=n(T);Ce=r(he,"Glide for text to image generation / conditional image generation in "),G=a(he,"A",{href:!0,rel:!0});var $t=n(G);Je=r($t,"pipeline_glide"),$t.forEach(i),Re=r(he,"."),he.forEach(i),ze=h(d),O=a(d,"LI",{});var ce=n(O);Fe=r(ce,"BDDMPipeline for spectrogram-to-sound vocoding in "),q=a(ce,"A",{href:!0,rel:!0});var xt=n(q);Ke=r(xt,"pipeline_bddm"),xt.forEach(i),Qe=r(ce,"."),ce.forEach(i),Ve=h(d),B=a(d,"LI",{});var de=n(B);We=r(de,"Grad-TTS for text to audio generation / conditional audio generation in "),H=a(de,"A",{href:!0,rel:!0});var At=n(H);Xe=r(At,"pipeline_grad_tts"),At.forEach(i),Ye=r(de,"."),de.forEach(i),d.forEach(i),this.h()},h(){s(g,"name","hf:doc:metadata"),s(g,"content",JSON.stringify(Tt)),s(E,"id","pipelines"),s(E,"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"),s(E,"href","#pipelines"),s(_,"class","relative group"),s(P,"id","api"),s(P,"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"),s(P,"href","#api"),s(v,"class","relative group"),s(w,"id","examples"),s(w,"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"),s(w,"href","#examples"),s(b,"class","relative group"),s(I,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_ddpm.py"),s(I,"rel","nofollow"),s(D,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_ddim.py"),s(D,"rel","nofollow"),s(k,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_pndm.py"),s(k,"rel","nofollow"),s(N,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_latent_diffusion.py"),s(N,"rel","nofollow"),s(G,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_glide.py"),s(G,"rel","nofollow"),s(q,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_bddm.py"),s(q,"rel","nofollow"),s(H,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_grad_tts.py"),s(H,"rel","nofollow")},m(t,c){e(document.head,g),u(t,X,c),u(t,_,c),e(_,E),e(E,C),tt(y,C,null),e(_,ue),e(_,J),e(J,me),u(t,Y,c),u(t,m,c),e(m,R),e(R,ge),e(m,_e),e(m,z),e(z,ve),e(m,be),e(m,F),e(F,Ee),u(t,Z,c),u(t,v,c),e(v,P),e(P,K),tt($,K,null),e(v,Pe),e(v,Q),e(Q,we),u(t,ee,c),u(t,U,c),e(U,ye),u(t,te,c),u(t,b,c),e(b,w),e(w,V),tt(x,V,null),e(b,$e),e(b,W),e(W,xe),u(t,ie,c),u(t,p,c),e(p,A),e(A,Ae),e(A,I),e(I,Ie),e(A,Le),e(p,De),e(p,L),e(L,Se),e(L,D),e(D,ke),e(L,Me),e(p,Ne),e(p,S),e(S,Te),e(S,k),e(k,Ge),e(S,Oe),e(p,qe),e(p,M),e(M,Be),e(M,N),e(N,He),e(M,Ue),e(p,je),e(p,T),e(T,Ce),e(T,G),e(G,Je),e(T,Re),e(p,ze),e(p,O),e(O,Fe),e(O,q),e(q,Ke),e(O,Qe),e(p,Ve),e(p,B),e(B,We),e(B,H),e(H,Xe),e(B,Ye),le=!0},p:kt,i(t){le||(it(y.$$.fragment,t),it($.$$.fragment,t),it(x.$$.fragment,t),le=!0)},o(t){lt(y.$$.fragment,t),lt($.$$.fragment,t),lt(x.$$.fragment,t),le=!1},d(t){i(g),t&&i(X),t&&i(_),at(y),t&&i(Y),t&&i(m),t&&i(Z),t&&i(v),at($),t&&i(ee),t&&i(U),t&&i(te),t&&i(b),at(x),t&&i(ie),t&&i(p)}}}const Tt={local:"pipelines",sections:[{local:"api",title:"API"},{local:"examples",title:"Examples"}],title:"Pipelines"};function Gt(ot){return Mt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Bt extends It{constructor(g){super();Lt(this,g,Gt,Nt,Dt,{})}}export{Bt as default,Tt as metadata};
