Stable Diffusion WebUI 安裝

安裝方式:

使用發(fā)行包在帶有 NVidia-GPU 的 Windows 10/11 上安裝

sd.webui.zip從v1.0.0-pre下載并解壓其內(nèi)容。

跑步update.bat。

跑步run.bat。

Windows 上自動(dòng)安裝

安裝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,如下圖所示


Linux 上的自動(dòng)安裝

安裝依賴項(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)。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容