Open kanger45 opened 1 year ago
The same problem. Did you solved it ?
any update on this? Im trying to run convert a trained model to onnx and run it like this:
`from audiocraft.data.audio import audio_write from audiocraft.models import musicgen import torch
model = musicgen.MusicGen.get_pretrained('medium', device='cuda') model.set_generation_params(duration=8) model.lm.load_state_dict(torch.load('lm_final.pt ONNX MODEL HERE'))`