Andybeyond
commited on
Commit
•
6088500
1
Parent(s):
5efea03
Update README.md
Browse filesCreate the model card.
README.md
CHANGED
@@ -1,3 +1,82 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit # Changed to lowercase
|
3 |
+
language: en # Changed to ISO 639-1 code
|
4 |
+
base_model: facebook/musicgen-medium
|
5 |
+
pipeline_tag: text-to-audio
|
6 |
+
tags:
|
7 |
+
- audio
|
8 |
+
- music-generation
|
9 |
+
- text-to-music
|
10 |
+
- musicgen
|
11 |
+
- transformers
|
12 |
+
library_name: transformers
|
13 |
+
metrics:
|
14 |
+
- type: audio_quality
|
15 |
+
value: "32000"
|
16 |
+
name: sample_rate
|
17 |
+
- type: generation_length
|
18 |
+
value: "30"
|
19 |
+
name: max_duration_seconds
|
20 |
+
datasets: []
|
21 |
+
---
|
22 |
+
|
23 |
+
# MelodyMaster V1
|
24 |
+
|
25 |
+
MelodyMaster V1 is an AI music generation model based on Meta's MusicGen-medium architecture. It generates high-quality music from text descriptions.
|
26 |
+
|
27 |
+
## Model Description
|
28 |
+
|
29 |
+
- **Model Architecture:** MusicGen (3.3B parameters)
|
30 |
+
- **Base Model:** facebook/musicgen-medium
|
31 |
+
- **Task:** Text-to-Music Generation
|
32 |
+
- **Output:** 32kHz audio samples
|
33 |
+
- **Max Duration:** 30 seconds
|
34 |
+
|
35 |
+
## Usage
|
36 |
+
|
37 |
+
```python
|
38 |
+
from transformers import AutoProcessor, MusicgenForConditionalGeneration
|
39 |
+
|
40 |
+
# Load model and processor
|
41 |
+
model = MusicgenForConditionalGeneration.from_pretrained("opentunesai/melodymasterv1")
|
42 |
+
processor = AutoProcessor.from_pretrained("opentunesai/melodymasterv1")
|
43 |
+
|
44 |
+
# Process text and generate music
|
45 |
+
inputs = processor(
|
46 |
+
text=["happy rock song with electric guitar"],
|
47 |
+
padding=True,
|
48 |
+
return_tensors="pt",
|
49 |
+
)
|
50 |
+
|
51 |
+
audio_values = model.generate(**inputs, max_new_tokens=1500)
|
52 |
+
```
|
53 |
+
|
54 |
+
## Example Prompts
|
55 |
+
|
56 |
+
- "An upbeat electronic dance track with a strong beat"
|
57 |
+
- "A peaceful piano melody with soft strings"
|
58 |
+
- "A rock song with electric guitar and drums"
|
59 |
+
- "Jazz trio with piano, bass and drums"
|
60 |
+
|
61 |
+
## Demo
|
62 |
+
|
63 |
+
Try the model in our [Gradio Demo Space](https://huggingface.co/spaces/opentunesai/melodymasterv1-demo)
|
64 |
+
|
65 |
+
## License
|
66 |
+
|
67 |
+
Apache 2.0
|
68 |
+
|
69 |
+
## Acknowledgments
|
70 |
+
|
71 |
+
Based on Meta's MusicGen model. Original model card: [facebook/musicgen-medium](https://huggingface.co/facebook/musicgen-medium)
|
72 |
+
|
73 |
+
## Citation
|
74 |
+
|
75 |
+
```bibtex
|
76 |
+
@article{copet2023simple,
|
77 |
+
title={Simple and Controllable Music Generation},
|
78 |
+
author={Jade Copet and Felix Kreuk and Itai Gat and Tal Remez and David Kant and Gabriel Synnaeve and Yossi Adi and Alexandre Défossez},
|
79 |
+
year={2023},
|
80 |
+
journal={arXiv preprint arXiv:2306.05284},
|
81 |
+
}
|
82 |
+
```
|