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
Requirements
Due to a dependency conflict with pydantic
, this plugin requires the manual installation of okio's music
fork:
pip install git+https://github.com/okio-ai/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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f2c94a1a2129909af5de33d9b816a17707d8ff80b6c5ec3acda1d676cfd1194 |
|
MD5 | 7288ee86d1bdd626641782ef69525453 |
|
BLAKE2b-256 | 56284177cbf48de73d253728169eb81d23b16e38598b7e682830ee1c684c777b |
Hashes for nendo_plugin_musicgen-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614c557859be36efdbdcdecfdbf58162c9640ee5bfd0ab85594fa77fb615a5af |
|
MD5 | 4beec6a542c604a8cf55dea3ef386c73 |
|
BLAKE2b-256 | 78e3a56bdbfeb1d36c45f1052767e4470122b08093d64b4432137baced8d43f6 |