camenduru / Fooocus-colab

186 stars 54 forks source link

torch.cuda.OutOfMemoryError on Windows Desktop #11

Closed jdmoser1 closed 10 months ago

jdmoser1 commented 10 months ago

Hello. I just installed Fooocus, let it download the SDXL models, and did my first test run. It failed to complete the run with the message: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 MiB. GPU 0 has a total capacty of 6.00 GiB of which 3.55 GiB is free. Of the allocated memory 1.36 GiB is allocated by PyTorch, and 77.12 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

I'm running on a Desktop with 8GB RAM and a NVIDIA GeForce RTX 2060 with 6GB VRAM. I was able to get SDXL to work before on Automatic1111, but the model was a slightly different version.

jdmoser1 commented 10 months ago

Wrong fooocus.