Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- pytorch
|
5 |
+
- diffusers
|
6 |
+
- unconditional-audio-generation
|
7 |
+
- diffusion-models-class
|
8 |
+
---
|
9 |
+
|
10 |
+
# [扩散模型课程] 第8章 模型卡片
|
11 |
+
这个模型是一个旨在生成 [chosen_genre] 风格音乐的非条件性扩散模型
|
12 |
+
# 用法
|
13 |
+
|
14 |
+
'''
|
15 |
+
from IPython.display import Audio
|
16 |
+
from diffusers import DiffusionPipeline
|
17 |
+
|
18 |
+
pipe = DiffusionPipeline.from_pretrained("zwbdla/audio-diffusion-electronic")
|
19 |
+
output = pipe()
|
20 |
+
display(output.images[0])
|
21 |
+
display(Audio(output.audios[0], rate=pipe.mel.get_sample_rate()))
|