Instructions to use facebook/musicgen-melody with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/musicgen-melody with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="facebook/musicgen-melody")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("facebook/musicgen-melody") model = AutoModelForTextToWaveform.from_pretrained("facebook/musicgen-melody", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Typo ffmpeg
#3
by StudentWeis - opened
README.md
CHANGED
|
@@ -41,7 +41,7 @@ pip install git+https://github.com/facebookresearch/audiocraft.git
|
|
| 41 |
|
| 42 |
2. Make sure to have [`ffmpeg`](https://ffmpeg.org/download.html) installed:
|
| 43 |
```
|
| 44 |
-
apt
|
| 45 |
```
|
| 46 |
|
| 47 |
3. Run the following Python code:
|
|
|
|
| 41 |
|
| 42 |
2. Make sure to have [`ffmpeg`](https://ffmpeg.org/download.html) installed:
|
| 43 |
```
|
| 44 |
+
apt-get install ffmpeg
|
| 45 |
```
|
| 46 |
|
| 47 |
3. Run the following Python code:
|