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.23k stars 2.03k forks source link

Fix musigen app memory issue #298

Closed Harushii18 closed 7 months ago

Harushii18 commented 9 months ago

Fixes 2 issues:

facebook-github-bot commented 9 months ago

Hi @Harushii18!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

adefossez commented 9 months ago

I dont think you can call this delete_all in the context of the public demo so we will not accept this PR as is. We can accept the deletion of the previous model prior to loading the new one though.

I'm not sure why the delete_all would help compared with the previous mechanism that delete the files after some time ?

Harushii18 commented 9 months ago

I dont think you can call this delete_all in the context of the public demo so we will not accept this PR as is. We can accept the deletion of the previous model prior to loading the new one though.

I'm not sure why the delete_all would help compared with the previous mechanism that delete the files after some time ?

Thank you for responding! I added that as once someone clicks the submit button again, the temp files can't be accessed from the UI: only unless someone navigates to that directory manually. So just seemed better to remove it. However you are right, as it does seem like that part would conflict on the public demo since it might remove other peoples' temp files that they are still accessing.

Will remove those parts.

felixkreuk commented 7 months ago

LGTM! Thanks for contributing @Harushii18!