CUDA out of memory. GPU内存不足导致停止时的处理方法
Stable Diffusion中内存不足时发生的错误。
我当时出现了以下提示。
CUDA out of memory. Tried to allocate 3.35 GiB (GPU 0; 8.00 GiB total capacity; 5.63 GiB already allocated; 843.24 MiB free; 5.65 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
编辑webui-user.bat,没有安装xformers的人也请安装xformers。
即使使用VAE也可能发生,所以请添加–no-half-vae。
set COMMANDLINE_ARGS=–xformers --no-half-vae
结束。