DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Out of memory error

Open cwjcw opened this issue 2 years ago • 5 comments

I can open the web and set blue and red point. But after I click "drag it", it shows "error", in Anaconda prompt, the error message is: "torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 512.00 MiB (GPU 0; 4.00 GiB total capacity; 3.07 GiB already allocated; 0 bytes free; 3.26 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"

企业微信截图_16850877962092

cwjcw avatar May 26 '23 07:05 cwjcw

+1

febelery avatar May 26 '23 10:05 febelery

Maybe your graphics memory is too small. 6G or more is OK

Drawlone avatar May 26 '23 11:05 Drawlone

Maybe your graphics memory is too small. 6G or more is OK

3070ti 8G laptop gpu, still got multiple similar errors. Will try to modify virtual memory later, which affects some other projects

JulesLiu avatar May 29 '23 04:05 JulesLiu

same issue

emrecpp avatar May 29 '23 06:05 emrecpp

Me too, my graphics card is 3050ti12gb memory

lijingbonb avatar May 29 '23 14:05 lijingbonb

Thanks all!

cwjcw avatar May 31 '23 00:05 cwjcw

谢谢大家!

解决了吗?

lijingbonb avatar May 31 '23 00:05 lijingbonb

Thanks all!

Did you manage to resolve the issue? I'm having the same problemn, but unfortunately can't seem to get around it. The program immediately eats all VRAM and errors.

Ant1c avatar Jun 06 '23 04:06 Ant1c

没有解决,我也找不到问题所在,如果你有什么好的办法请告诉我,我会十分感谢你

lijingbonb avatar Jun 06 '23 04:06 lijingbonb

Same issue randomly occurs.

JYF98 avatar Jun 07 '23 07:06 JYF98