Skip to content

Commit 88fa6b7

Browse files
patrickvonplatennatolambertpatil-surajpcuencaNathan Lambert
authored
[Dance Diffusion] Add dance diffusion (#803)
* start * add more logic * Update src/diffusers/models/unet_2d_condition_flax.py * match weights * up * make model work * making class more general, fixing missed file rename * small fix * make new conversion work * up * finalize conversion * up * first batch of variable renamings * remove c and c_prev var names * add mid and out block structure * add pipeline * up * finish conversion * finish * upload * more fixes * Apply suggestions from code review * add attr * up * uP * up * finish tests * finish * uP * finish * fix test * up * naming consistency in tests * Apply suggestions from code review Co-authored-by: Suraj Patil <[email protected]> Co-authored-by: Pedro Cuenca <[email protected]> Co-authored-by: Nathan Lambert <[email protected]> Co-authored-by: Anton Lozhkov <[email protected]> * remove hardcoded 16 * Remove bogus * fix some stuff * finish * improve logging * docs * upload Co-authored-by: Nathan Lambert <[email protected]> Co-authored-by: Suraj Patil <[email protected]> Co-authored-by: Pedro Cuenca <[email protected]> Co-authored-by: Nathan Lambert <[email protected]> Co-authored-by: Anton Lozhkov <[email protected]>
1 parent 0b42b07 commit 88fa6b7

27 files changed

+1613
-16
lines changed

docs/source/_toctree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,7 @@
9292
title: "Stable Diffusion"
9393
- local: api/pipelines/stochastic_karras_ve
9494
title: "Stochastic Karras VE"
95+
- local: api/pipelines/dance_diffusion
96+
title: "Dance Diffusion"
9597
title: "Pipelines"
9698
title: "API"

docs/source/api/models.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ The models are built on the base class ['ModelMixin'] that is a `torch.nn.module
2222
## UNet2DOutput
2323
[[autodoc]] models.unet_2d.UNet2DOutput
2424

25+
## UNet1DModel
26+
[[autodoc]] UNet1DModel
27+
2528
## UNet2DModel
2629
[[autodoc]] UNet2DModel
2730

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--Copyright 2022 The HuggingFace Team. All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4+
the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9+
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10+
specific language governing permissions and limitations under the License.
11+
-->
12+
13+
# Dance Diffusion
14+
15+
## Overview
16+
17+
[Dance Diffusion](https://github.com/Harmonai-org/sample-generator) by Zach Evans.
18+
19+
Dance Diffusion is the first in a suite of generative audio tools for producers and musicians to be released by Harmonai.
20+
For more info or to get involved in the development of these tools, please visit https://harmonai.org and fill out the form on the front page.
21+
22+
The original codebase of this implementation can be found [here](https://github.com/Harmonai-org/sample-generator).
23+
24+
## Available Pipelines:
25+
26+
| Pipeline | Tasks | Colab
27+
|---|---|:---:|
28+
| [pipeline_dance_diffusion.py](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py) | *Unconditional Audio Generation* | - |
29+
30+
31+
## DanceDiffusionPipeline
32+
[[autodoc]] DanceDiffusionPipeline
33+
- __call__

docs/source/api/schedulers.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ Original paper can be found [here](https://arxiv.org/abs/2011.13456).
9595

9696
[[autodoc]] ScoreSdeVeScheduler
9797

98+
#### improved pseudo numerical methods for diffusion models (iPNDM)
99+
100+
Original implementation can be found [here](https://github.com/crowsonkb/v-diffusion-pytorch/blob/987f8985e38208345c1959b0ea767a625831cc9b/diffusion/sampling.py#L296).
101+
98102
#### variance preserving stochastic differential equation (SDE) scheduler
99103

100104
Original paper can be found [here](https://arxiv.org/abs/2011.13456).

0 commit comments

Comments
 (0)