nerdyrodent / VQGAN-CLIP

Just playing with getting VQGAN+CLIP running locally, rather than having to use colab.
Other
2.59k stars 427 forks source link

CUDA out of memory. #73

Closed nomadSky closed 2 years ago

nomadSky commented 2 years ago

How can i fix this?

"CUDA out of memory. Tried to allocate 16.00 MiB (GPU 0; 2.00 GiB total capacity; 1.13 GiB already allocated; 0 bytes free; 1.16 GiB reserved in total by PyTorch)"

I understand that I need to allocate more memory or change the batch parameters. But In which file should I change it? Or what command should I use? I'm newbie btw...

somecoulombs commented 2 years ago

It's going to be hard to get a large image with just 2GB total VRAM. Try adding -s 100 100 to the end of your generate.py call