Stable Diffusion 本地部署教程

699 阅读1分钟

Windows 本地部署

git安装

git version

image.png

python安装

www.python.org/downloads/

  • 版本确保3.10.6

全局环境变量修改

image.png

image.png

image.png

sublime 安装

www.sublimetext.com/download_th…

stable-diffusion-webui安装

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

image.png

下载模型

image.png

拷贝模型到models\Stable-diffusion

image.png

修改启动脚本中变量

image.png

git pull
@echo off

set PYTHON="D:\Python\Python310\Python.exe"
if exist webui.settings.bat (

确保Pyenv文件正确

D:\stable-diffusion-webui\venv

image.png

home = D:\Python\Python310
include-system-site-packages = false
version = 3.10.6
executable = D:\Python\Python310\python.exe
command = D:\Python\Python310\python.exe -m venv D:\stable-diffusion-webui\venv

双击webui-user执行初始化

  • 挂代理

image.png

  • 自动下载模型,或在上述步骤中手动下载并放入指定目录中也可

image.png

自动访问webui控制台

image.png

安装汉化包

image.png

image.png

重启

image.png

  • 选中 zh-Hans (Stable) [vladmandic]
  • 默认选中后,是中文单语言;
  • 若希望双语对照;先从zh-Hans (Stable)切换为无再切换为zh-Hans (Stable),即可实现双语对照。保存、重载UI即可。

image.png

扩展

安装Stable Diffusion 2.0

拷贝至 models\Stable-diffusion

image.png

image.png

开始你的炼丹之旅吧