stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

CUDA out of memory issue

Open randomuser11956 opened this issue 2 years ago • 1 comments

OutOfMemoryError: CUDA out of memory. Tried to allocate 1.76 GiB (GPU 0; 10.00 GiB total capacity; 7.55 GiB already allocated; 55.23 MiB free; 7.75 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

So after some use of the ai i get this error and i can't generate new images or edit the one that i currently have, i can't even upscale them. What can i do to fix this issue? edit: saw this happens a lot when i try to upscale, using windows 10

randomuser11956 avatar Feb 18 '23 11:02 randomuser11956

Same, but came out as runtime error RuntimeError: CUDA out of memory. Tried to allocate 1024.00 MiB (GPU 0; 6.00 GiB total capacity; 4.54 GiB already allocated; 0 bytes free; 4.66 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

MoondMoon52 avatar Feb 20 '23 12:02 MoondMoon52