I was using Stable Difffusion normally like you demonstrated in the video, but today I got an error.
OutOfMemoryError Traceback (most recent call last)
<ipython-input-9-9817a4f7d2d0> in <module>
10
11 with autocast("cuda"), torch.inference_mode():
---> 12 images = pipe(
13 prompt,
14 height=height,
13 frames
/usr/local/lib/python3.8/dist-packages/diffusers/models/cross_attention.py in get_attention_scores(self, query, key, attention_mask)
221
222 attention_probs = attention_scores.softmax(dim=-1)
--> 223 attention_probs = attention_probs.to(dtype)
224
225 return attention_probs
OutOfMemoryError: CUDA out of memory. Tried to allocate 2.50 GiB (GPU 0; 14.76 GiB total capacity; 12.21 GiB already allocated; 1.22 GiB free; 12.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
Now I'm only able to generate images with 256 x 256 px and lower.
Any idea how to fix this and generate images of 512 x 512 again?
Thank you!