mrfakename commited on
Commit
f59d0a8
·
verified ·
1 Parent(s): feae2c5

Mirror iflytek/AudioFly from ModelScope

Browse files
Files changed (1) hide show
  1. README.md +74 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ > Mirror of [iflytek/AudioFly](https://www.modelscope.cn/models/iflytek/AudioFly) from ModelScope. All credit to the original authors. Not an official release from them. License unchanged (apache-2.0).
6
+
7
+ # Model Card for AudioFly
8
+
9
+ ## Model Introduction
10
+ AudioFly is an audio generation model. It synthesizes sound effects based on textual descriptions. The model can produce high-quality audio at a sampling rate of 44.1 kHz. The generated audio shows strong alignment with the prompt text.
11
+
12
+ AudioFly adopts the Latent Diffusion Model architecture. The model has 1 billion parameters and is trained on a large and diverse corpus. The training data include open-source datasets, such as AudioSet, AudioCaps, and TUT, as well as proprietary internal data. The model performs well in both single-event and multi-event scenarios. In these cases, the generated audio accurately reflects the described content. AudioFly achieves superior performance compared to previous audio generation models on the AudioCaps dataset.
13
+
14
+
15
+ ## Evaluation Results
16
+
17
+ The experimental results are reported on the AudioCaps dataset. For the baseline models, we reused the evaluation results from [STABLE AUDIO OPEN](https://arxiv.org/pdf/2407.14358). We followed the same evaluation methodology to ensure consistency. The evaluation results are shown as follows.
18
+
19
+
20
+ | Model | FD ↓ | KL ↓ | CLAP ↑ |
21
+ |--------------------|----------|------------|---------|
22
+ | AudioLDM2-48kHz | 101.11 | 2.04 | 0.37 |
23
+ | AudioGen-medium | 186.53 | 1.42 | **0.45** |
24
+ | Stable Audio 1.0 | 103.66 | 2.89 | 0.24 |
25
+ | Stable Audio 2.0 | 110.62 | 2.70 | 0.23 |
26
+ | Stable Audio Open | 78.24 | 2.14 | 0.29 |
27
+ | AudioFly | **40.1** | **1.35** | **0.45** |
28
+
29
+
30
+
31
+
32
+
33
+
34
+ ## Usage
35
+
36
+ **Requirements**
37
+
38
+ We recommend setting up the runtime environment using the provided configuration file by running:
39
+ ```bash
40
+ pip install -r requirements.txt
41
+ # make sure to set the PYTHONPATH to include the AudioFly project root
42
+ export PYTHONPATH=/path/to/AudioFly:$PYTHONPATH
43
+ cd /path/to/AudioFly
44
+ ```
45
+
46
+ **Quickstart**
47
+
48
+
49
+
50
+ ```python
51
+ import yaml
52
+ import torch
53
+ from ldm.utils.util import instantiate_from_config
54
+
55
+
56
+ configs = yaml.load(open('./config/config.yaml', "r"), Loader=yaml.FullLoader)
57
+ model = instantiate_from_config(configs["model"])
58
+
59
+ checkpoint = torch.load('./models/ldm/model.ckpt')
60
+ model.load_state_dict(checkpoint, strict=False)
61
+ model.eval()
62
+ model = model.cuda()
63
+ text = 'Fierce winds howl through the valley'
64
+ name = 'result'
65
+ savedir = './result'
66
+ model.generate_sample(
67
+ textlist=[text],
68
+ name=name,
69
+ cfg=3.5,# Guidance scale (controls how strongly generation follows the text prompt); not recommended to change
70
+ ddim_steps=200, # Number of denoising steps in the diffusion process; not recommended to change
71
+ outputdir=f"{savedir}")
72
+ ```
73
+ ## License
74
+ AudioFly is licensed under Apache 2.0.