diffusers safetensors pytorch unconditional-audio-generation diffusion-models-class license:mit diffusers:AudioDiffusionPipeline region:us
---
license: mit
tags:
- pytorch
- diffusers
- unconditional-audio-generation
- diffusion-models-class
---

# [扩散模型课程] 第8章 模型卡片
这个模型是一个旨在生成 [chosen_genre] 风格音乐的非条件性扩散模型
# 用法

'''
from IPython.display import Audio
from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained("zwbdla/audio-diffusion-electronic")
output = pipe()
display(output.images[0])
display(Audio(output.audios[0], rate=pipe.mel.get_sample_rate()))
