跳轉至內容

AI 藝術生成手冊/如何安裝 Stable Diffusion/Auto1111

來自華夏公益教科書

Windows darkblue 2012 安裝 Automatic1111 的步驟 (2023 年 7 月更新)

[編輯 | 編輯原始碼]

(1) 確保您的 PC 滿足基本要求

(2) 下載 Python 3.10.10 ← 連結在此

(3) 在安裝嚮導的第一頁,請務必選中 將 Python 3.10 新增到 PATH

(4) 按常規繼續安裝

(5) 下載 Git 版本控制 ← 連結在此

(6) 使用預設設定安裝

(7) 在您想要的位置建立資料夾 (確保您具有訪問許可權)

(8) 在位址列中,鍵入 cmd

(9) 命令提示符視窗將提示您輸入 git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui

(10) 等待幾分鐘,下載 Auto1111 檔案

(11) 點選安裝的 stable-diffusion-webui 目錄內的 webui-user.bat

(12) 等待最多半小時,完成下載和安裝所需的庫、檔案和 SD 1.5 模型。

(13) 安裝成功後,應顯示類似的螢幕

[編輯 | 編輯原始碼]

(14) 點選下載 your_installed_directory\stable-diffusion-webui\models\Stable-diffusion 中的兩個模型

SDXL 1.0 模型基礎 (用於 text2img) (注意:點選 Ic file download 48pxsd_xl_refiner_1.0.safetensors 旁邊)

SDXL 1.0 最佳化器基礎(用於 img2img) (注意:點選 Ic file download 48pxsd_xl_base_1.0.safetensors 旁邊)

(15) 下載 VAE 模型

SDXL1.0 VAE (注意:點選 Ic file download 48pxsdxl_vae.safetensors 旁邊)


(16) 在 Webui 中啟用 VAE 工具欄

** 可選

(16) 安裝完成後,您可以按照以下步驟自定義啟動器。

C:\Yout_Installed_Locations\StableDiffusion\stable-diffusion-webui\webui-user.bat

@echo off

echo A111111111111111111111111111111111111111111A

echo 1         Stable-Diffusion WebUI           1

echo 1          By : Automatic1111              1

echo 1    (and countless other contributors)    1

echo 1                  2023                    1

echo 1                                          1

echo A111111111111111111111111111111111111111111A

echo     Press following keys to proceed

echo "1" - Proceed as normal

echo "2" - !Update to the latest version Stable Diffusion Web-UI

echo       Make sure the update does not break the existing Stable Diffusion

CHOICE /C:12

IF ERRORLEVEL 2 GOTO GITPULL

IF ERRORLEVEL 1 GOTO WEBUI

:GITPULL

git pull

GOTO WEBUI

:WEBUI

set PYTHON=

set GIT=

set VENV_DIR=

set COMMANDLINE_ARGS= --opt-sdp-attention

call webui.bat

pause

GOTO END

GOTO END

:END
華夏公益教科書