Update README.md
Browse files
README.md
CHANGED
@@ -124,7 +124,13 @@ for idx, one_wav in enumerate(wav):
|
|
124 |
|
125 |
## Model details
|
126 |
|
127 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
**Paper or resources for more information:** More information can be found in the paper [Simple and Controllable Music Generation](https://arxiv.org/abs/2306.05284).
|
130 |
|
@@ -142,4 +148,74 @@ for idx, one_wav in enumerate(wav):
|
|
142 |
|
143 |
**License:** Code is released under MIT, model weights are released under CC-BY-NC 4.0.
|
144 |
|
145 |
-
**Where to send questions or comments about the model:** Questions and comments about MusicGen can be sent via the [Github repository](https://github.com/facebookresearch/audiocraft) of the project, or by opening an issue.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
|
125 |
## Model details
|
126 |
|
127 |
+
**Organization developing the model:** The FAIR team of Meta AI.
|
128 |
+
|
129 |
+
**Model date:** MusicGen was trained between April 2023 and May 2023.
|
130 |
+
|
131 |
+
**Model version:** This is the version 1 of the model.
|
132 |
+
|
133 |
+
**Model type:** MusicGen consists of an EnCodec model for audio tokenization, an auto-regressive language model based on the transformer architecture for music modeling. The model comes in different sizes: 300M, 1.5B and 3.3B parameters ; and two variants: a model trained for text-to-music generation task and a model trained for melody-guided music generation.
|
134 |
|
135 |
**Paper or resources for more information:** More information can be found in the paper [Simple and Controllable Music Generation](https://arxiv.org/abs/2306.05284).
|
136 |
|
|
|
148 |
|
149 |
**License:** Code is released under MIT, model weights are released under CC-BY-NC 4.0.
|
150 |
|
151 |
+
**Where to send questions or comments about the model:** Questions and comments about MusicGen can be sent via the [Github repository](https://github.com/facebookresearch/audiocraft) of the project, or by opening an issue.
|
152 |
+
|
153 |
+
## Intended use
|
154 |
+
|
155 |
+
**Primary intended use:** The primary use of MusicGen is research on AI-based music generation, including:
|
156 |
+
|
157 |
+
- Research efforts, such as probing and better understanding the limitations of generative models to further improve the state of science
|
158 |
+
- Generation of music guided by text or melody to understand current abilities of generative AI models by machine learning amateurs
|
159 |
+
|
160 |
+
**Primary intended users:** The primary intended users of the model are researchers in audio, machine learning and artificial intelligence, as well as amateur seeking to better understand those models.
|
161 |
+
|
162 |
+
**Out-of-scope use cases:** The model should not be used on downstream applications without further risk evaluation and mitigation. The model should not be used to intentionally create or disseminate music pieces that create hostile or alienating environments for people. This includes generating music that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.
|
163 |
+
|
164 |
+
## Metrics
|
165 |
+
|
166 |
+
**Models performance measures:** We used the following objective measure to evaluate the model on a standard music benchmark:
|
167 |
+
|
168 |
+
- Frechet Audio Distance computed on features extracted from a pre-trained audio classifier (VGGish)
|
169 |
+
- Kullback-Leibler Divergence on label distributions extracted from a pre-trained audio classifier (PaSST)
|
170 |
+
- CLAP Score between audio embedding and text embedding extracted from a pre-trained CLAP model
|
171 |
+
|
172 |
+
Additionally, we run qualitative studies with human participants, evaluating the performance of the model with the following axes:
|
173 |
+
|
174 |
+
- Overall quality of the music samples;
|
175 |
+
- Text relevance to the provided text input;
|
176 |
+
- Adherence to the melody for melody-guided music generation.
|
177 |
+
|
178 |
+
More details on performance measures and human studies can be found in the paper.
|
179 |
+
|
180 |
+
**Decision thresholds:** Not applicable.
|
181 |
+
|
182 |
+
## Evaluation datasets
|
183 |
+
|
184 |
+
The model was evaluated on the [MusicCaps benchmark](https://www.kaggle.com/datasets/googleai/musiccaps) and on an in-domain held-out evaluation set, with no artist overlap with the training set.
|
185 |
+
|
186 |
+
## Training datasets
|
187 |
+
|
188 |
+
The model was trained on licensed data using the following sources: the [Meta Music Initiative Sound Collection](https://www.fb.com/sound), [Shutterstock music collection](https://www.shutterstock.com/music) and the [Pond5 music collection](https://www.pond5.com/). See the paper for more details about the training set and corresponding preprocessing.
|
189 |
+
|
190 |
+
## Evaluation results
|
191 |
+
|
192 |
+
Below are the objective metrics obtained on MusicCaps with the released model. Note that for the publicly released models, we had all the datasets go through a state-of-the-art music source separation method, namely using the open source [Hybrid Transformer for Music Source Separation](https://github.com/facebookresearch/demucs) (HT-Demucs), in order to keep only the instrumental part. This explains the difference in objective metrics with the models used in the paper.
|
193 |
+
|
194 |
+
| Model | Frechet Audio Distance | KLD | Text Consistency | Chroma Cosine Similarity |
|
195 |
+
|---|---|---|---|---|
|
196 |
+
| facebook/musicgen-small | 4.88 | 1.42 | 0.27 | - |
|
197 |
+
| **facebook/musicgen-medium** | 5.14 | 1.38 | 0.28 | - |
|
198 |
+
| facebook/musicgen-large | 5.48 | 1.37 | 0.28 | - |
|
199 |
+
| facebook/musicgen-melody | 4.93 | 1.41 | 0.27 | 0.44 |
|
200 |
+
|
201 |
+
More information can be found in the paper [Simple and Controllable Music Generation](https://arxiv.org/abs/2306.05284), in the Results section.
|
202 |
+
|
203 |
+
## Limitations and biases
|
204 |
+
|
205 |
+
**Data:** The data sources used to train the model are created by music professionals and covered by legal agreements with the right holders. The model is trained on 20K hours of data, we believe that scaling the model on larger datasets can further improve the performance of the model.
|
206 |
+
|
207 |
+
**Mitigations:** Vocals have been removed from the data source using corresponding tags, and then using a state-of-the-art music source separation method, namely using the open source [Hybrid Transformer for Music Source Separation](https://github.com/facebookresearch/demucs) (HT-Demucs).
|
208 |
+
|
209 |
+
**Limitations:**
|
210 |
+
|
211 |
+
- The model is not able to generate realistic vocals.
|
212 |
+
- The model has been trained with English descriptions and will not perform as well in other languages.
|
213 |
+
- The model does not perform equally well for all music styles and cultures.
|
214 |
+
- The model sometimes generates end of songs, collapsing to silence.
|
215 |
+
- It is sometimes difficult to assess what types of text descriptions provide the best generations. Prompt engineering may be required to obtain satisfying results.
|
216 |
+
|
217 |
+
**Biases:** The source of data is potentially lacking diversity and all music cultures are not equally represented in the dataset. The model may not perform equally well on the wide variety of music genres that exists. The generated samples from the model will reflect the biases from the training data. Further work on this model should include methods for balanced and just representations of cultures, for example, by scaling the training data to be both diverse and inclusive.
|
218 |
+
|
219 |
+
**Risks and harms:** Biases and limitations of the model may lead to generation of samples that may be considered as biased, inappropriate or offensive. We believe that providing the code to reproduce the research and train new models will allow to broaden the application to new and more representative data.
|
220 |
+
|
221 |
+
**Use cases:** Users must be aware of the biases, limitations and risks of the model. MusicGen is a model developed for artificial intelligence research on controllable music generation. As such, it should not be used for downstream applications without further investigation and mitigation of risks.
|