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 running out of memory (3gb card) on the face restoration step #106

Open
Baquara opened this issue Apr 17, 2022 · 0 comments
Open

CUDA running out of memory (3gb card) on the face restoration step #106

Baquara opened this issue Apr 17, 2022 · 0 comments

Comments

@Baquara
Copy link

Baquara commented Apr 17, 2022

Hello,

I'm trying to run the script using a GTX 1060 (the 3GB version) but I keep getting the following on the third step:

RuntimeError: CUDA out of memory. Tried to allocate 392.00 MiB (GPU 0; 2.94 GiB total capacity; 1.32 GiB already allocated; 349.88 MiB free; 1.38 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

This particularly happens when running the model.setup(opt) line. Is there anything that could be done to the script to make it work on my card? Thanks.

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

1 participant