This repo is a fork that works with Apple Silicon devices (e.g. M1 Macbook Pro). The original repo can be found here: https://github.com/facebookresearch/audiocraft
To install, you need to slightly modify the pip install command. Clone this repository and cd
into the root directory of the repo. Then run the following commands:
# creating a virtual environment is optional (but recommended).
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
# this step is required.
pip install --pre --extra-index-url https://download.pytorch.org/whl/nightly/cpu -e .
To run the application, you must set the PYTORCH_ENABLE_MPS_FALLBACK
environment variable when running like so:
PYTORCH_ENABLE_MPS_FALLBACK=1 python app