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

Cuda out of memory

Open mitulparmar7161 opened this issue 2 years ago • 0 comments

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 11.82 GiB (GPU 0; 11.75 GiB total capacity; 2.20 GiB already allocated; 6.43 GiB free; 3.54 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

I am getting this error when i'm trying to change image resolution from 512x512 to 1280x720 on my local GPU,while it is working fine on Google Collab!

I have NVIDIA GeForce RTX 3080, 12gb and 16gb RAM

mitulparmar7161 avatar Jul 27 '23 12:07 mitulparmar7161