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

Resolution or video length lead to cuda out of memory question #67

Open
davidzang0930 opened this issue May 5, 2023 · 8 comments
Open

Comments

@davidzang0930
Copy link

I use e2fgvi_hq model

  1. In the input part, if the resolution is adjusted from 432240 to 648360 or higher, there will be cuda out of memory problem
  2. Fixing the resolution to 432*240 and adjusting the input video length to 10 seconds or higher will also cause cuda out of memory problems
    I would like to ask, is there no way to input a higher resolution or longer video? Or am I using it wrong
@LownyCGI
Copy link

LownyCGI commented Jun 2, 2023

Bro. The model is hungry for your gpu

@antithing
Copy link

@davidzang0930 did you find an answer for this?

@LownyCGI
Copy link

LownyCGI commented Jul 6, 2023

@davidzang0930 did you find an answer for this?

Guys what are trying to do? The model is expensive to run

@antithing
Copy link

I was wondering if there were any settings to adjust that would use less memory at the cost of inference time.

I found this repo:

https://github.com/Teravus/Chunk_E2FGVI

which allows for more frames at a time, so I am using that one for now.

@davidzang0930
Copy link
Author

@antithing I use the .half() function to allow it to use more frames, and I put selected_imgs and selected_masks into the GPU after selecting them. This way, it can process longer videos.

@antithing
Copy link

@davidzang0930 thanks! Are you able to share your code changes here?

@davidzang0930
Copy link
Author

@antithing
Still adjusting, try to see if it can be better optimized
However, the above can initially reduce the demand
You can modify test.py

@smandava98
Copy link

Hi @davidzang0930 did you find any other ways to optimize it? If so can you please share?

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

4 participants