Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak #12

Open
deepbeepmeep opened this issue Dec 11, 2023 · 2 comments
Open

Memory Leak #12

deepbeepmeep opened this issue Dec 11, 2023 · 2 comments

Comments

@deepbeepmeep
Copy link

Thanks for this very interesting work that at last allows us to have some level of direction in video generation.
First run works quite well (less than 40s on a RTX 4090 24GB) but successive runs are very slow.
There is obviously a memory leak towards the end of the generation process as GPU memory is never released.

@deepbeepmeep
Copy link
Author

Ok I found a fix, it is the VAE that clutters the GPU memory.

In file "demo/motiondirectory.py"
Add the following just after line 155 ( device ="cuda")

self.pipe.enable_vae_slicing()

@ruizhaocv
Copy link
Collaborator

Thanks a lot. The demo script has been updated to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants