安装、部署、使用Stable Diffusion的WebUi版本
1.下载安装git
Git - Downloading Package (git-scm.com)
git在windows下手动设置环境变量
set PATH="C:\Program Files\Git\bin";"C:\Program Files\Git\mingw64\bin";"C:\Program Files\Git\mingw64\libexec\git-core";%PATH%
2.下载python3.10版本
python -m pip install "..\..\..\torch-1.13.1+cu117-cp310-cp310-win_amd64.whl"
python -m pip install gfpgan
python -m pip install clip
python -m pip install open_clip_torch
3.运行stable-diffusion-webui-master\webui-user.bat
4.执行克隆命令
git clone "https://github.com/Stability-AI/stablediffusion.git" "F:\stable-diffusion-debug\stable-diffusion-webui-master\repositories\stable-diffusion-stability-ai"
5.修改后的webui-user.bat
@echo off
set PATH="C:\Program Files\Git\bin";"C:\Program Files\Git\mingw64\bin";"C:\Program Files\Git\mingw64\libexec\git-core";%PATH%
rem set GIT_PYTHON_GIT_EXECUTABLE="C:\Program Files\Git\bin\git.exe"
set PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:32
set GIT_PYTHON_REFRESH=quiet
set PYTHON=F:\stable-diffusion-debug\Python310\python.exe
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers --skip-torch-cuda-test --precision full --no-half
call webui.bat