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

Not enough Vram #14

Open
deama opened this issue Dec 20, 2018 · 3 comments
Open

Not enough Vram #14

deama opened this issue Dec 20, 2018 · 3 comments

Comments

@deama
Copy link

deama commented Dec 20, 2018

Hello,

So I've tried ESRGAN with higher resolution images, such as 1280x720, but it says that my GPU (970gtx) doesn't have enough VRAM to process it. Is there a way to make the higher resolution images work with my GPU? Maybe someway to cache the data?
I tried the CPU option, but even with 16GB of RAM, it still says not enough memory.

@rgaliardi
Copy link

rgaliardi commented Dec 20, 2018 via email

@xinntao
Copy link
Owner

xinntao commented Dec 22, 2018

Hi @deama,
It indeed consumes much GPU memory resources.
One solution is to crop the large images into several small sub-images, like 500*500, with overlapping. After processing for each sub-images, merge these sub-images into a large one.

@eraffaelli
Copy link

Someone on reddit did a script for that if you want to try it (I have not tested it myself)

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