Skip to content

Create seamless infinite music generation leveraging MusicGen model

Notifications You must be signed in to change notification settings

motexture/InfiniteMusicGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Continuous Music Generation

This Python script offers a seamless and non-interruptible music generation experience using audiocraft musicgen models. The music generation utilizes the last seconds of the previously generated song to maintain a continuous flow.

Hardware requirements

  • NVIDIA RTX 4090 GPU or higher for melody model

Installation

  1. Clone the audiocraft repo locally: git clone https://github.com/facebookresearch/audiocraft
  2. Navigate to the folder: cd audiocraft
  3. Create a venv environment: python -m venv myenv
  4. Activate your env: source env/bin/activate # On Windows use env\Scripts\activate
  5. Install requirements: pip install -r requirements.txt
  6. Install the latest torch cuda: Follow installation steps from here https://pytorch.org/get-started/locally/
  7. Download the infigen.py script to your audiocraft folder: Ensure to place it on the main folder
  8. Run the script: python infigen.py
  9. Modify music genre: Edit line 19

About

Create seamless infinite music generation leveraging MusicGen model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages