GrandaddyShmax / audiocraft_plus

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
561 stars 63 forks source link

Load models stored in User\.Cache folder #65

Open Coder2503 opened 10 months ago

Coder2503 commented 10 months ago

I have musicgen model already downloaded at C:\User.Cache\huggingface\hub\ . I want to use them in audiocraft plus to save disk space. I have checked on the code of app.py file and have a vague idea of how it works. It basically uses the models folder in audiocraft plus directory for custom models. Can anyone help me out with modification needed to be done so that I can use already downloaded models. I am not much familiar with python and don't know how to modify os.listdir() or anything else in the get_available_folders() method.