import{S as qt,i as Bt,s as Rt,e as i,k as d,w as Z,t as l,M as Ft,c as o,d as n,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,ne,Ge,_e,N,S,Le,Ue,ve,E,ze,H,Ie,qe,ge,P,Be,O,Re,Fe,be,v,y,ie,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,nt,q,it,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.17.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.17.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.17.0/en/api/schedulers/ipndm#diffusers.IPNDMScheduler">IPNDMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.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.17.0/en/api/outputs#diffusers.AudioPipelineOutput">AudioPipelineOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.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.17.0/en/api/outputs#diffusers.AudioPipelineOutput"
>AudioPipelineOutput</a> or <code>tuple</code></p>
`}}),{c(){h=i("meta"),he=d(),m=i("h1"),w=i("a"),X=i("span"),Z(x.$$.fragment),Oe=d(),ee=i("span"),Me=l("Dance Diffusion"),me=d(),_=i("h2"),$=i("a"),te=i("span"),Z(k.$$.fragment),Ce=d(),ne=i("span"),Ge=l("Overview"),_e=d(),N=i("p"),S=i("a"),Le=l("Dance Diffusion"),Ue=l(" by Zach Evans."),ve=d(),E=i("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=i("a"),Ie=l("https://harmonai.org"),qe=l(" and fill out the form on the front page."),ge=d(),P=i("p"),Be=l("The original codebase of this implementation can be found "),O=i("a"),Re=l("here"),Fe=l("."),be=d(),v=i("h2"),y=i("a"),ie=i("span"),Z(M.$$.fragment),Ve=d(),oe=i("span"),We=l("Available Pipelines:"),De=d(),A=i("table"),re=i("thead"),g=i("tr"),ae=i("th"),Ze=l("Pipeline"),Je=d(),se=i("th"),Ye=l("Tasks"),je=d(),I=i("th"),Ke=l("Colab"),Qe=d(),le=i("tbody"),b=i("tr"),fe=i("td"),C=i("a"),Xe=l("pipeline_dance_diffusion.py"),et=d(),de=i("td"),ce=i("em"),tt=l("Unconditional Audio Generation"),nt=d(),q=i("td"),it=l("-"),we=d(),D=i("h2"),T=i("a"),ue=i("span"),Z(G.$$.fragment),ot=d(),pe=i("span"),rt=l("DanceDiffusionPipeline"),$e=d(),p=i("div"),Z(L.$$.fragment),at=d(),U=i("p"),st=l("This model inherits from "),B=i("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=i("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(n),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(n),pt.forEach(n),Oe=c(Pe),ee=o(Pe,"SPAN",{});var mt=r(ee);Me=f(mt,"Dance Diffusion"),mt.forEach(n),Pe.forEach(n),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(n),_t.forEach(n),Ce=c(ye),ne=o(ye,"SPAN",{});var gt=r(ne);Ge=f(gt,"Overview"),gt.forEach(n),ye.forEach(n),_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(n),Ue=f(ct," by Zach Evans."),ct.forEach(n),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(n),qe=f(Ae," and fill out the form on the front page."),Ae.forEach(n),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(n),Fe=f(Te,"."),Te.forEach(n),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);ie=o($t,"SPAN",{});var Et=r(ie);J(M.$$.fragment,Et),Et.forEach(n),$t.forEach(n),Ve=c(xe),oe=o(xe,"SPAN",{});var Pt=r(oe);We=f(Pt,"Available Pipelines:"),Pt.forEach(n),xe.forEach(n),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(n),Je=c(F),se=o(F,"TH",{});var Tt=r(se);Ye=f(Tt,"Tasks"),Tt.forEach(n),je=c(F),I=o(F,"TH",{align:!0});var xt=r(I);Ke=f(xt,"Colab"),xt.forEach(n),F.forEach(n),yt.forEach(n),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(n),Nt.forEach(n),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(n),Ht.forEach(n),nt=c(V),q=o(V,"TD",{align:!0});var Mt=r(q);it=f(Mt,"-"),Mt.forEach(n),V.forEach(n),kt.forEach(n),ke.forEach(n),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(n),Ct.forEach(n),ot=c(Ne),pe=o(Ne,"SPAN",{});var Lt=r(pe);rt=f(Lt,"DanceDiffusionPipeline"),Lt.forEach(n),Ne.forEach(n),$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(n),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(n),dt=c(W),R=o(W,"DIV",{class:!0});var zt=r(R);J(z.$$.fragment,zt),zt.forEach(n),W.forEach(n),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.17.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(_,ne),t(ne,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,ie),Y(M,ie,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,nt),t(b,q),t(q,it),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){n(h),e&&n(he),e&&n(m),Q(x),e&&n(me),e&&n(_),Q(k),e&&n(_e),e&&n(N),e&&n(ve),e&&n(E),e&&n(ge),e&&n(P),e&&n(be),e&&n(v),Q(M),e&&n(De),e&&n(A),e&&n(we),e&&n(D),Q(G),e&&n($e),e&&n(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};
