Skip to content

Instantly share code, notes, and snippets.

@mberman84
Created August 7, 2023 01:41
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save mberman84/afd800f8d4a8764a22571c1a82187bad to your computer and use it in GitHub Desktop.
Save mberman84/afd800f8d4a8764a22571c1a82187bad to your computer and use it in GitHub Desktop.
Audiocraft Installation
# must have miniconda installed
# installation for musicgen
conda create -n audiocraft python=3.9
conda activate audiocraft
brew install ffmpeg (for mac)
winget install ffmpeg (for windows)
git clone https://github.com/facebookresearch/audiocraft.git
cd audiocraft
python -m pip install -r requirements.txt
python -m demos.musicgen_app --share
# first time you run inference, it'll download the model
# installation for audiogen
# NOTE: after already installing music gen
# NOTE: after PR185 gets merged, you won't have to execute the next two commands
git fetch origin pull/185/head:PR185
git checkout PR185
python -m demos.audiogen_app --share
# first time you run inference, it'll download the model
@klein-artur
Copy link

klein-artur commented Aug 8, 2023

Nice doc, but just a small hint:

I needed to install pytorch also by calling
conda install -c pytorch pytorch
before line installing the requirements in line 10.

@radaevm
Copy link

radaevm commented Aug 12, 2023

sudo apt install ffmpeg for ubuntu

@Ariffffff
Copy link

thankyou, after a lot of headbanging, this actually worked for me

@orkutmuratyilmaz
Copy link

with new versions, you need to type:

python demos/musicgen_app.py

@mayawagner
Copy link

@klein-artur thanks for calling out pytorch here. I didn't realize I didn't have it installed on my new machine- totally would have gotten stuck without your comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment