stable-diffusion-webui 安装环境
stable-diffusion-webui要求软件版本比较严格,如果错一个下面全错
python 3.10.6
pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu121
pip install xformers==0.0.16
比如出现
No module 'xformers'. Proceeding without it.这些都是版本不对
xformers 是对你的图片生成做加速的,一定要配置好,特别是你的显卡不太好情况。
xformers需要在webui-user.bat加上参数。--xformers
下面是整个文件的内容参考
webui-user.bat
@echo offset PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformerscall webui.bat