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

CUDA OOM for ~1-2 min long videos #74

Open
smandava98 opened this issue Sep 3, 2023 · 3 comments
Open

CUDA OOM for ~1-2 min long videos #74

smandava98 opened this issue Sep 3, 2023 · 3 comments

Comments

@smandava98
Copy link

smandava98 commented Sep 3, 2023

Hi,

My videos are ~ 1 min long (30 FPS) which leads to between 1k-2k frames... I am on an A100 GPU but I keep running out of memory. I don't want to risk losing precision because small details are important. Do you recommend creating any changes that can help solve this?

@smandava98
Copy link
Author

I tried this on an 80 GB A100 as well as a 40 GB one and it runs out of memory for both (although it is allocating different sizes for both too).

@Paper99
Copy link
Collaborator

Paper99 commented Sep 4, 2023

Thank you for your interest in our work. Processing 1000 frames at once is far beyond the GPU memory requirements. The best approach is to divide the 1000-frame video into smaller segments, test them separately, and then combine them together.

@smandava98
Copy link
Author

Thanks. I've come up with a workaround. However, compared to FGT and other methods, the result seems to be worse. I'm using the HQ model.

It seems like it misses inpainting of the edges of my mask. Are there any requirements that the model must take in terms of masks?

I'm using in the wild videos.

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