jina-ai / discoart

🪩 Create Disco Diffusion artworks in one line
Other
3.84k stars 249 forks source link

RuntimeError: CUDA out of memory #53

Closed fallbernana123456 closed 2 years ago

fallbernana123456 commented 2 years ago

from discoart import create da = create()

RuntimeError: CUDA out of memory. Tried to allocate 960.00 MiB (GPU 0; 7.43 GiB total capacity; 5.67 GiB already allocated; 934.44 MiB free; 5.91 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

0 Tesla P4 Off | 00000000:3B:00.0 Off | 0 | | N/A 42C P0 24W / 75W | 10MiB / 7611MiB | 0% Default

hanxiao commented 2 years ago

what discoart version are you using?

hanxiao commented 2 years ago

!python -m discoart -v

hanxiao commented 2 years ago

Im running a Colab free tier and there is no problem running default create() with no args

image

I just find out your VRAM is only 7GB, that's not enough to run DiscoArt, consider:

fallbernana123456 commented 2 years ago

python -m discoart -v

0.6.11

fallbernana123456 commented 2 years ago

ok. thanks

hanxiao commented 2 years ago

version too old