TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.53k stars 1.31k forks source link

CUDA out of memory #1981

Open Banananai opened 1 year ago

Banananai commented 1 year ago

So when i try generation image using hires.fix i cant generate image over 1500 x 1500 This the error : OutOfMemoryError: CUDA out of memory. Tried to allocate 5.96 GiB (GPU 0; 14.75 GiB total capacity; 8.63 GiB already allocated; 3.79 GiB free; 9.67 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

Can someone help me? (I am using colab)

TheLastBen commented 1 year ago

xformers was disabled because it caused NANsexception error, so for now, it is limited memory-wise, I'll try to add a temporary fix

Banananai commented 1 year ago

xformers was disabled because it caused NANsexception error, so for now, it is limited memory-wise, I'll try to add a temporary fix

Ah i see, btw thanks for your hard work ben😁