Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Musicgen Duration, Stereo, Melody #1058

Open
chigkim opened this issue Oct 21, 2024 · 1 comment
Open

Musicgen Duration, Stereo, Melody #1058

chigkim opened this issue Oct 21, 2024 · 1 comment

Comments

@chigkim
Copy link

chigkim commented Oct 21, 2024

It's awesome to see MusicGen on MMLX.
Can we have the duration parameter to set how long the generated audio should be.
The original musicgen has:
model.set_generation_params(duration=8) # generate 8 seconds.
Also it has model for stereo as well as feeding your own audio melody. It would be great for MLX Musicgen to support those models.
Thanks!

@barronalex
Copy link
Collaborator

As a work around you can use the max_steps argument to the generate script to set the duration.
There are ~50 steps per second e.g max_steps=200 generates about 4 seconds of audio.

Agreed, it would be great to have stereo support and audio conditioning! I might take a look later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants