The following environment preparation is required to install SongGeneration:
- Python environment: Python 3.8.12 or higher is recommended, and a virtual environment can be created via conda
- system dependency: FFmpeg needs to be installed on Linux systems (
yum install ffmpeg
) - Python dependencies: Use
pip install -r requirements.txt
Install PyTorch and other necessary dependencies - selectable: Flash Attention can be installed for improved performance (requires CUDA 11.8 or above)
- model weight: Download the officially provided model weights file from Hugging Face
A version of ComfyUI is available for Windows users to simplify the installation process for non-professional developers.
This answer comes from the articleSongGeneration: open-source AI model for generating high-quality music and lyricsThe