Nendo MusicGen plugin: A state-of-the-art controllable text-to-music model (by Meta Research)
Project description
Nendo Plugin Musicgen
MusicGen: A state-of-the-art controllable text-to-music model (by Meta Research)
Features
- Generate conditional and unconditional music
- Generate outpaintings from a prompt and a
NendoTrack
- Use a
NendoTrack
as melody conditioning to generate music - Use custom finetuned musicgen models
Community Finetunes 🔥
For a list of community finetunes check out community_finetunes.json
.
If you want to contribute one to the list, open a PR
or contact us via Twitter
or Discord!
Requirements
Since we depend on audiocraft
, please make sure that you fulfill their requirements.
You need Pytorch 2.0.0 or higher, which can be installed via
pip install "torch>=2.0"
Note: On Mac OSX, the instructions for installing pytorch differ. Please refer to the pytorch installation instructions. For all other problems please refer to the audiocraft repository.
To run the plugin you also need to install audiocraft
by Meta AI Research, run:
pip install git+https://github.com/facebookresearch/audiocraft
Installation
- Install Nendo
pip install nendo-plugin-musicgen
Usage
Take a look at a basic usage example below. For more detailed information, please refer to the documentation.
For more advanced examples, check out the examples folder. or try it in colab:
from nendo import Nendo, NendoConfig
nd = Nendo(config=NendoConfig(plugins=["nendo_plugin_musicgen"]))
# load track
track = nd.library.add_track(file_path='/path/to/track.mp3')
# run musicgen with custom model
generated_collection = nd.plugins.musicgen(
track=track,
n_samples=5,
prompt="janelle monae, rnb, funky, fast, futuristic",
bpm=116,
key="C",
scale="Major",
duration=30,
conditioning_length=10
)
generated_collection[0].play()
Contributing
Visit our docs to learn all about how to contribute to Nendo: Contributing
License
Nendo: MIT License
AudioCraft: MIT License
Pretrained models: The weights are released under the CC-BY-NC 4.0 license
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nendo_plugin_musicgen-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2821233d237844796e2671b8ac10d9db37c7756fa3303aa1349508f6d61565f7 |
|
MD5 | 786f25bec7586b2e6697b8070ea5eec1 |
|
BLAKE2b-256 | c21d63418c7d637593a73cf9c747c7b0d9eb552dcbca5ff51da39f2555e9f9c3 |
Hashes for nendo_plugin_musicgen-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 871dcb2aa3a2b0d48defa4e6d4892d9e842a906871194dd7e7685be2fe2419c3 |
|
MD5 | 53eea7d37be4fdda78258210c5400b0a |
|
BLAKE2b-256 | 2f1965ea38bd13d80549747adbb3b3dd5df612d51379a6837c618e784fd5ac5c |