import{S as qt,i as Bt,s as Rt,e as n,k as d,w as Z,t as l,M as Ft,c as o,d as i,m as c,a as r,x as J,h as f,b as a,G as t,g as u,y as Y,L as Vt,q as j,o as K,B as Q,v as Wt}from"../../../chunks/vendor-hf-doc-builder.js";import{D as It}from"../../../chunks/Docstring-hf-doc-builder.js";import{I as He}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function Zt(ut){let h,he,m,w,X,x,Oe,ee,Me,me,_,$,te,k,Ce,ie,Ge,_e,N,S,Le,Ue,ve,E,ze,H,Ie,qe,ge,P,Be,O,Re,Fe,be,v,y,ne,M,Ve,oe,We,De,A,re,g,ae,Ze,Je,se,Ye,je,I,Ke,Qe,le,b,fe,C,Xe,et,de,ce,tt,it,q,nt,we,D,T,ue,G,ot,pe,rt,$e,p,L,at,U,st,B,lt,ft,dt,R,z,Ee;return x=new He({}),k=new He({}),M=new He({}),G=new He({}),L=new It({props:{name:"class diffusers.DanceDiffusionPipeline",anchor:"diffusers.DanceDiffusionPipeline",parameters:[{name:"unet",val:""},{name:"scheduler",val:""}],parametersDescription:[{anchor:"diffusers.DanceDiffusionPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.16.0/en/api/models#diffusers.UNet1DModel">UNet1DModel</a>) &#x2014; U-Net architecture to denoise the encoded image.',name:"unet"},{anchor:"diffusers.DanceDiffusionPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.16.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image. Can be one of
<a href="/docs/diffusers/v0.16.0/en/api/schedulers/ipndm#diffusers.IPNDMScheduler">IPNDMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py#L27"}}),z=new It({props:{name:"__call__",anchor:"diffusers.DanceDiffusionPipeline.__call__",parameters:[{name:"batch_size",val:": int = 1"},{name:"num_inference_steps",val:": int = 100"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"audio_length_in_s",val:": typing.Optional[float] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.DanceDiffusionPipeline.__call__.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of audio samples to generate.`,name:"batch_size"},{anchor:"diffusers.DanceDiffusionPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality audio sample at
the expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.DanceDiffusionPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a>
to make generation deterministic.`,name:"generator"},{anchor:"diffusers.DanceDiffusionPipeline.__call__.audio_length_in_s",description:`<strong>audio_length_in_s</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size/self.unet.config.sample_rate</code>) &#x2014;
The length of the generated audio sample in seconds. Note that the output of the pipeline, <em>i.e.</em>
<code>sample_size</code>, will be <code>audio_length_in_s</code> * <code>self.unet.config.sample_rate</code>.`,name:"audio_length_in_s"},{anchor:"diffusers.DanceDiffusionPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/v0.16.0/en/api/diffusion_pipeline#diffusers.AudioPipelineOutput">AudioPipelineOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.16.0/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py#L43",returnDescription:`
<p><code>~pipelines.utils.AudioPipelineOutput</code> if <code>return_dict</code> is
True, otherwise a \`tuple. When returning a tuple, the first element is a list with the generated images.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.16.0/en/api/diffusion_pipeline#diffusers.AudioPipelineOutput"
>AudioPipelineOutput</a> or <code>tuple</code></p>
`}}),{c(){h=n("meta"),he=d(),m=n("h1"),w=n("a"),X=n("span"),Z(x.$$.fragment),Oe=d(),ee=n("span"),Me=l("Dance Diffusion"),me=d(),_=n("h2"),$=n("a"),te=n("span"),Z(k.$$.fragment),Ce=d(),ie=n("span"),Ge=l("Overview"),_e=d(),N=n("p"),S=n("a"),Le=l("Dance Diffusion"),Ue=l(" by Zach Evans."),ve=d(),E=n("p"),ze=l(`Dance Diffusion is the first in a suite of generative audio tools for producers and musicians to be released by Harmonai.
For more info or to get involved in the development of these tools, please visit `),H=n("a"),Ie=l("https://harmonai.org"),qe=l(" and fill out the form on the front page."),ge=d(),P=n("p"),Be=l("The original codebase of this implementation can be found "),O=n("a"),Re=l("here"),Fe=l("."),be=d(),v=n("h2"),y=n("a"),ne=n("span"),Z(M.$$.fragment),Ve=d(),oe=n("span"),We=l("Available Pipelines:"),De=d(),A=n("table"),re=n("thead"),g=n("tr"),ae=n("th"),Ze=l("Pipeline"),Je=d(),se=n("th"),Ye=l("Tasks"),je=d(),I=n("th"),Ke=l("Colab"),Qe=d(),le=n("tbody"),b=n("tr"),fe=n("td"),C=n("a"),Xe=l("pipeline_dance_diffusion.py"),et=d(),de=n("td"),ce=n("em"),tt=l("Unconditional Audio Generation"),it=d(),q=n("td"),nt=l("-"),we=d(),D=n("h2"),T=n("a"),ue=n("span"),Z(G.$$.fragment),ot=d(),pe=n("span"),rt=l("DanceDiffusionPipeline"),$e=d(),p=n("div"),Z(L.$$.fragment),at=d(),U=n("p"),st=l("This model inherits from "),B=n("a"),lt=l("DiffusionPipeline"),ft=l(`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),dt=d(),R=n("div"),Z(z.$$.fragment),this.h()},l(e){const s=Ft('[data-svelte="svelte-1phssyn"]',document.head);h=o(s,"META",{name:!0,content:!0}),s.forEach(i),he=c(e),m=o(e,"H1",{class:!0});var Pe=r(m);w=o(Pe,"A",{id:!0,class:!0,href:!0});var pt=r(w);X=o(pt,"SPAN",{});var ht=r(X);J(x.$$.fragment,ht),ht.forEach(i),pt.forEach(i),Oe=c(Pe),ee=o(Pe,"SPAN",{});var mt=r(ee);Me=f(mt,"Dance Diffusion"),mt.forEach(i),Pe.forEach(i),me=c(e),_=o(e,"H2",{class:!0});var ye=r(_);$=o(ye,"A",{id:!0,class:!0,href:!0});var _t=r($);te=o(_t,"SPAN",{});var vt=r(te);J(k.$$.fragment,vt),vt.forEach(i),_t.forEach(i),Ce=c(ye),ie=o(ye,"SPAN",{});var gt=r(ie);Ge=f(gt,"Overview"),gt.forEach(i),ye.forEach(i),_e=c(e),N=o(e,"P",{});var ct=r(N);S=o(ct,"A",{href:!0,rel:!0});var bt=r(S);Le=f(bt,"Dance Diffusion"),bt.forEach(i),Ue=f(ct," by Zach Evans."),ct.forEach(i),ve=c(e),E=o(e,"P",{});var Ae=r(E);ze=f(Ae,`Dance Diffusion is the first in a suite of generative audio tools for producers and musicians to be released by Harmonai.
For more info or to get involved in the development of these tools, please visit `),H=o(Ae,"A",{href:!0,rel:!0});var Dt=r(H);Ie=f(Dt,"https://harmonai.org"),Dt.forEach(i),qe=f(Ae," and fill out the form on the front page."),Ae.forEach(i),ge=c(e),P=o(e,"P",{});var Te=r(P);Be=f(Te,"The original codebase of this implementation can be found "),O=o(Te,"A",{href:!0,rel:!0});var wt=r(O);Re=f(wt,"here"),wt.forEach(i),Fe=f(Te,"."),Te.forEach(i),be=c(e),v=o(e,"H2",{class:!0});var xe=r(v);y=o(xe,"A",{id:!0,class:!0,href:!0});var $t=r(y);ne=o($t,"SPAN",{});var Et=r(ne);J(M.$$.fragment,Et),Et.forEach(i),$t.forEach(i),Ve=c(xe),oe=o(xe,"SPAN",{});var Pt=r(oe);We=f(Pt,"Available Pipelines:"),Pt.forEach(i),xe.forEach(i),De=c(e),A=o(e,"TABLE",{});var ke=r(A);re=o(ke,"THEAD",{});var yt=r(re);g=o(yt,"TR",{});var F=r(g);ae=o(F,"TH",{});var At=r(ae);Ze=f(At,"Pipeline"),At.forEach(i),Je=c(F),se=o(F,"TH",{});var Tt=r(se);Ye=f(Tt,"Tasks"),Tt.forEach(i),je=c(F),I=o(F,"TH",{align:!0});var xt=r(I);Ke=f(xt,"Colab"),xt.forEach(i),F.forEach(i),yt.forEach(i),Qe=c(ke),le=o(ke,"TBODY",{});var kt=r(le);b=o(kt,"TR",{});var V=r(b);fe=o(V,"TD",{});var Nt=r(fe);C=o(Nt,"A",{href:!0,rel:!0});var St=r(C);Xe=f(St,"pipeline_dance_diffusion.py"),St.forEach(i),Nt.forEach(i),et=c(V),de=o(V,"TD",{});var Ht=r(de);ce=o(Ht,"EM",{});var Ot=r(ce);tt=f(Ot,"Unconditional Audio Generation"),Ot.forEach(i),Ht.forEach(i),it=c(V),q=o(V,"TD",{align:!0});var Mt=r(q);nt=f(Mt,"-"),Mt.forEach(i),V.forEach(i),kt.forEach(i),ke.forEach(i),we=c(e),D=o(e,"H2",{class:!0});var Ne=r(D);T=o(Ne,"A",{id:!0,class:!0,href:!0});var Ct=r(T);ue=o(Ct,"SPAN",{});var Gt=r(ue);J(G.$$.fragment,Gt),Gt.forEach(i),Ct.forEach(i),ot=c(Ne),pe=o(Ne,"SPAN",{});var Lt=r(pe);rt=f(Lt,"DanceDiffusionPipeline"),Lt.forEach(i),Ne.forEach(i),$e=c(e),p=o(e,"DIV",{class:!0});var W=r(p);J(L.$$.fragment,W),at=c(W),U=o(W,"P",{});var Se=r(U);st=f(Se,"This model inherits from "),B=o(Se,"A",{href:!0});var Ut=r(B);lt=f(Ut,"DiffusionPipeline"),Ut.forEach(i),ft=f(Se,`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),Se.forEach(i),dt=c(W),R=o(W,"DIV",{class:!0});var zt=r(R);J(z.$$.fragment,zt),zt.forEach(i),W.forEach(i),this.h()},h(){a(h,"name","hf:doc:metadata"),a(h,"content",JSON.stringify(Jt)),a(w,"id","dance-diffusion"),a(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"),a(w,"href","#dance-diffusion"),a(m,"class","relative group"),a($,"id","overview"),a($,"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"),a($,"href","#overview"),a(_,"class","relative group"),a(S,"href","https://github.com/Harmonai-org/sample-generator"),a(S,"rel","nofollow"),a(H,"href","https://harmonai.org"),a(H,"rel","nofollow"),a(O,"href","https://github.com/Harmonai-org/sample-generator"),a(O,"rel","nofollow"),a(y,"id","available-pipelines"),a(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"),a(y,"href","#available-pipelines"),a(v,"class","relative group"),a(I,"align","center"),a(C,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py"),a(C,"rel","nofollow"),a(q,"align","center"),a(T,"id","diffusers.DanceDiffusionPipeline"),a(T,"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"),a(T,"href","#diffusers.DanceDiffusionPipeline"),a(D,"class","relative group"),a(B,"href","/docs/diffusers/v0.16.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),a(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(p,"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,s){t(document.head,h),u(e,he,s),u(e,m,s),t(m,w),t(w,X),Y(x,X,null),t(m,Oe),t(m,ee),t(ee,Me),u(e,me,s),u(e,_,s),t(_,$),t($,te),Y(k,te,null),t(_,Ce),t(_,ie),t(ie,Ge),u(e,_e,s),u(e,N,s),t(N,S),t(S,Le),t(N,Ue),u(e,ve,s),u(e,E,s),t(E,ze),t(E,H),t(H,Ie),t(E,qe),u(e,ge,s),u(e,P,s),t(P,Be),t(P,O),t(O,Re),t(P,Fe),u(e,be,s),u(e,v,s),t(v,y),t(y,ne),Y(M,ne,null),t(v,Ve),t(v,oe),t(oe,We),u(e,De,s),u(e,A,s),t(A,re),t(re,g),t(g,ae),t(ae,Ze),t(g,Je),t(g,se),t(se,Ye),t(g,je),t(g,I),t(I,Ke),t(A,Qe),t(A,le),t(le,b),t(b,fe),t(fe,C),t(C,Xe),t(b,et),t(b,de),t(de,ce),t(ce,tt),t(b,it),t(b,q),t(q,nt),u(e,we,s),u(e,D,s),t(D,T),t(T,ue),Y(G,ue,null),t(D,ot),t(D,pe),t(pe,rt),u(e,$e,s),u(e,p,s),Y(L,p,null),t(p,at),t(p,U),t(U,st),t(U,B),t(B,lt),t(U,ft),t(p,dt),t(p,R),Y(z,R,null),Ee=!0},p:Vt,i(e){Ee||(j(x.$$.fragment,e),j(k.$$.fragment,e),j(M.$$.fragment,e),j(G.$$.fragment,e),j(L.$$.fragment,e),j(z.$$.fragment,e),Ee=!0)},o(e){K(x.$$.fragment,e),K(k.$$.fragment,e),K(M.$$.fragment,e),K(G.$$.fragment,e),K(L.$$.fragment,e),K(z.$$.fragment,e),Ee=!1},d(e){i(h),e&&i(he),e&&i(m),Q(x),e&&i(me),e&&i(_),Q(k),e&&i(_e),e&&i(N),e&&i(ve),e&&i(E),e&&i(ge),e&&i(P),e&&i(be),e&&i(v),Q(M),e&&i(De),e&&i(A),e&&i(we),e&&i(D),Q(G),e&&i($e),e&&i(p),Q(L),Q(z)}}}const Jt={local:"dance-diffusion",sections:[{local:"overview",title:"Overview"},{local:"available-pipelines",title:"Available Pipelines:"},{local:"diffusers.DanceDiffusionPipeline",title:"DanceDiffusionPipeline"}],title:"Dance Diffusion"};function Yt(ut){return Wt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Xt extends qt{constructor(h){super();Bt(this,h,Yt,Zt,Rt,{})}}export{Xt as default,Jt as metadata};
