Manual InstallationPre-Build Installation
準備
- 安裝 Git for Windows 應用程式 [下載連結]。
- 安裝 Python 3.10.6 (推薦 3.10.6 版本) 應用程式 [下載連結]。
- [AMD GPUs - ZLUDA] 安裝 AMD ROCm 5.7.0 for Windows and ZLUDA [下載連結]。
如何使用?
* 如果選擇 ZLUDA 並且系統存在 AMD 整合式 GPU (iGPU) Stable Diffusion 可能會優先使用 iGPU 而非主要 GPU 裝置。您需要禁用 iGPU 或新增環境變數 <變數名稱:HIP_VISIBLE_DEVICES;變數值:1>。
* 將下載的 v1-5-pruned-emaonly model (v1-5-pruned-emaonly.safetensors) 檔案放進 .\models\Stable-diffusion 目錄中。使用 AMD GPUs - DirectML 不需要 v1-5-pruned-emaonly.safetensors 檔案,因為 DirectML 需要使用 Olive 轉換。
開始
修改 .\venv\pyvenv.cfg 檔案。
home = 此路徑為 Python 的安裝路徑。
執行 Git CMD 捷徑。
啟動 WebUI。
NVIDIA GPUs | webui.bat --xformers --autolaunch --update-check
AMD GPUs - DirectML | webui.bat --onnx --backend directml --skip-torch-cuda-test --skip-version-check
AMD GPUs - ZLUDA | webui.bat --use-zluda