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

support directly load model ? #481

Open
ucasiggcas opened this issue Jul 24, 2024 · 0 comments
Open

support directly load model ? #481

ucasiggcas opened this issue Jul 24, 2024 · 0 comments

Comments

@ucasiggcas
Copy link

hi ,dear
in hf I see the code
facebook/musicgen-melody

import torchaudio
from audiocraft.models import MusicGen
from audiocraft.data.audio import audio_write

model = MusicGen.get_pretrained('melody')
model.set_generation_params(duration=8)  # generate 8 seconds.

descriptions = ['happy rock', 'energetic EDM', 'sad jazz']

could I load the model and do not use the
model = MusicGen.get_pretrained('melody')

thx

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

1 participant