PSGAN icon indicating copy to clipboard operation
PSGAN copied to clipboard

CUDA out of memory

Open AragornKris opened this issue 3 years ago • 3 comments

Hello, I use a RTX2080ti to train the dataset you provided and do not change any code, but an "CUDA out of memory" error occurred in the program. Could you give some help? Thank you !

AragornKris avatar Apr 22 '21 02:04 AragornKris

I met the same issue. I think the GPU memory required may be >= 12G. I havn't found any workable method to solve it. Any thought of solution would be appreciated. Thanks.

PennyPeng369 avatar Jul 06 '21 08:07 PennyPeng369

I met the same issue. I think the GPU memory required may be >= 12G. I havn't found any workable method to solve it. Any thought of solution would be appreciated. Thanks.

I delete part of the parallel calculation code(in solver.py from line125 to line134), it can work.

AragornKris avatar Jul 06 '21 08:07 AragornKris

Replace all 64 with 32 of Generator.__init__ ( in net.py ), the max gpu memory usage is around 7500MiB, it goes well with my GTX 1070

AloneGu avatar Nov 02 '21 08:11 AloneGu

export CUDA_VISIBLE_DEVICES=0 before running python main.py It seems parallel calculation needs the GPU memory >=12G.

qsong2001 avatar Dec 06 '22 09:12 qsong2001

这是来自QQ邮箱本人忙碌的回复   您好,我最近很忙,无法亲自回复您的邮件。我忙完后,会尽快给您回复。

AragornKris avatar Dec 06 '22 09:12 AragornKris

Replace all 64 with 32 of Generator.__init__ ( in net.py ), the max gpu memory usage is around 7500MiB, it goes well with my GTX 1070

That's a good idea. Just reduce the dimension of the bottlenecks.

wtjiang98 avatar Dec 14 '22 03:12 wtjiang98