Open OroChippw opened 11 months ago
hey, i dont think there is anything wrong with your operation, please see:
https://github.com/facebookresearch/audiocraft/blob/main/docs/MUSICGEN.md#installation and https://github.com/facebookresearch/audiocraft/blob/main/docs/MUSICGEN.md#api
the model is being stored in memory which allows it to be used multiple times without having to unload/reload again (which can be time consuming the larger the model gets). as suggested in the readme you can try shorter audio lengths, or look for one of the many forks which allow for longer generations https://github.com/camenduru/MusicGen-colab (cant recommend any as i havent used them myself) hope it helps
Then it seems that I need to use better equipment to complete my task. Thank you for your answer 😊
Thank you very much for your contribution.But I found that after I used demos/musicgen_app.py to complete the text audio generation inference, my GPU memory was not released, and an OOM error occurred when I performed inference again. I had to close my service and reopen it, and proceed again. A reasoning. Is there something wrong with my operation?Think you~😊