SRGAN icon indicating copy to clipboard operation
SRGAN copied to clipboard

OOM with 11GB of ram

Open andreas128 opened this issue 7 years ago • 5 comments

How large does my GPU have to be to run the SRGAN?

andreas128 avatar Apr 18 '18 16:04 andreas128

1080 should be enough

Sent from Netease Mail On 04/18/2018 17:58, andreas wrote:

How large does my GPU have to be to run the SRGAN?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

zsdonghao avatar Apr 18 '18 17:04 zsdonghao

I have the same problem. The first part of the training succeeds, the second part can't allocate enough memory. On Linux it will keep training regardless, but on windows it stops with an error. This was using a 1080ti with 11gb ram

PeeJay avatar May 25 '18 09:05 PeeJay

Im not sure how much VRAM you need but you could change the code to load images only batch wise to reduce memory load. Apart from that you could lower the batch size or lower the image resolution. Last but not least you could also train on CPU which is obviously a lot slower.

Obliviously avatar Jul 23 '18 11:07 Obliviously

Hello, thanks for publishing the code! I meet the same problem like @PeeJay. I was using 1080ti with 11gb ram on windows 10. I have been train the model to the second part in the past (about 1100/2000 epoach). But magically, when I restart and try to train it again, It stops with the error (OOM). In the same env, with the same code... So crazy!

William-Mou avatar Nov 28 '18 14:11 William-Mou

FYI: I solved the OOM by reducing the batch size from 16 to 14

PeeJay avatar Jun 25 '19 13:06 PeeJay