set COMMANDLINE_ARGS=–medvram --skip-torch-cuda-test --no-half --precision full --use-cpu all
或者
set COMMANDLINE_ARGS=–precision full --no-half --opt-sub-quad-attention --lowvram --disable-nan-check --autolaunch
1.3 不使用v1.5SD模型
在文件目录models\Stable-diffusion下放入另一个模型,这是为了避免之后好不容易安装完了,它提示你没有模型,好不容易下载完。 错误提示:
something went wrong。
如果看到运行webui-user.bat时,还是自己生成了v1.5SD模型,那么之后就删掉它。
因此要到这个下载地址https://cyberes.github.io/stable-diffusion-models/#stable-diffusion-1-4,推荐迅雷下载,下载好后放入到我提到的文件夹中。
1.4 下载rust编辑器
这是因为git clone下载时会自动有个node tree,我不知道这hash值具体有什么用的,应该类似钥匙,如果本地下载后,它们就会没有这个hash值,运行webui-user.bat时就会提示错误。
错误类似:
reference is not a tree: 24268930bf1dce879235a7fddd0b2355b84d7ea6
2.1 在完成上述步骤后,就运行webui-user.bat
error: failed to get `env_logger` as a dependency of package `tokenizers-python v0.10.3 (C:\Users\LENOVO\AppData\Local\Temp\pip-install-bw47mt33\tokenizers_3b1650888a634bdab4e4c98d147e7833)`
Caused by:
failed to load source for dependency `env_logger`
Caused by:
Unable to update registry `crates-io`
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
如果它莫名其妙自己下载v1.5SD模型,就后续删掉,正常会得到如下结果,
其中Installing requirements不用管它,过会就行了。
输入网址http://127.0.0.1:7860,查看 如果没有在页面上出现something went wrong那么就是成功了!
3.1 如果出现 AttributeError: 'NoneType' object has no attribute 'process_texts'错误
回答你问题的网址https://github.com/vladmandic/automatic/issues/382 其实就是你没等SD模型加载完,就开始生图了,过会再尝试就行了
3.2 如果出现RuntimeError: Could not allocate tensor with 402653184 bytes. There is not enough GPU video memory available!