facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.5k stars 2.06k forks source link

Unbound local error #241

Closed Duraj1 closed 1 year ago

Duraj1 commented 1 year ago

image

I can't run musicgen, I am running it from musicgen_app.py directly from cmd. The webui works as it should, however I can't generate any music (xformers thing isn't essential, the problem was still there even when I fixed it earlier in venv when following a guide) I downloaded torchvision via pip install torchvision earlier

bartekleon commented 1 year ago

https://github.com/huggingface/transformers/issues/25667

bartekleon commented 1 year ago

In short: pip install protobuf should do the work. I have protobuf==4.24.1 and it did fix the issue.

Duraj1 commented 1 year ago

Thanks! It did work