Sygil-Dev / stable-diffusion

GNU Affero General Public License v3.0
1.72k stars 148 forks source link

OOM at startup with 4GB GPU (optimized) #192

Closed oobabooga closed 2 years ago

oobabooga commented 2 years ago

I cannot figure out the cause. Tried reinstalling, recreating the conda environment from scratch, and nothing works. This has made it impossible to use this repository for me.

python scripts/webui.py --precision full --no-half --optimized --no-progressbar-hiding --esrgan-cpu --gfpgan-cpu

RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.82 GiB total capacity; 2.81 GiB already allocated; 17.56 MiB free; 2.88 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

GTX 1650 4GB / Linux Mint