basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 467 forks source link

CUDA out of memory #215

Open Fqlox opened 1 year ago

Fqlox commented 1 year ago

I Tried to use the img2img script. I got :

RuntimeError: CUDA out of memory. Tried to allocate 1.75 GiB 
(GPU 0; 8.00 GiB total capacity; 5.09 GiB already allocated; 0 bytes free; 6.00 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

No other program using th gpu are open while executing the script.

I'm using a 2070 Super on Windows 10.