安裝方式:
使用發(fā)行包在帶有 NVidia-GPU 的 Windows 10/11 上安裝
sd.webui.zip從v1.0.0-pre下載并解壓其內(nèi)容。
跑步update.bat。
跑步run.bat。
安裝Python 3.10.6(較新版本的Python不支持torch),選中“Add Python to PATH”?!緋ython一定要是3.10.6】這個(gè)版本 (https://www.python.org/downloads/release/python-3106/)
安裝git。
下載 stable-diffusion-webui 存儲(chǔ)庫(kù),例如通過運(yùn)行g(shù)it clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.
webui-user.bat以普通非管理員用戶身份從 Windows 資源管理器運(yùn)行?!緒indows用戶直接雙擊webui-user.bat ,就可以了】
常見問題:
(1)如果你使用其他 python版本執(zhí)行過webui-user.bat,需要?jiǎng)h除調(diào)stable-diffusion-webui下的venv文件夾。重新安裝Python 3.10.6?這個(gè)版本的python后重新雙擊webui-user.bat
(2)在執(zhí)行:webui-user.bat 時(shí),會(huì)報(bào)錯(cuò):RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
? ?我們可以根據(jù)提示進(jìn)行操作:
點(diǎn)擊編輯webui-user.bat ,加上?--skip-torch-cuda-test,如下圖所示

安裝依賴項(xiàng):
#Debian-based:sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0#Red Hat-based:sudo dnf install wget git python3 gperftools-libs libglvnd-glx#openSUSE-based:sudo zypper install wget git python3 libtcmalloc4 libglvnd#Arch-based:sudo pacman -S wget git python3
導(dǎo)航到您想要安裝 WebUI 的目錄并執(zhí)行以下命令:
wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh
跑步webui.sh。
檢查webui-user.sh選項(xiàng)。