本地部署stable-diffusion-webui

环境准备

安装python3.10.6

下载地址

默认安装即可,勾选添加至环境变量选项。也可以选择自定义安装,自行选择安装路径,一路选择默认选项即可。

安装git

下载地址

选择默认安装选项。一路点击next完成安装。

部署stable-diffusion-webui

给git clone项目

打开所要部署的文件夹位置,在上面路径位置输入cmd后回车,打开命令行。

命令行输入:

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

等待下载完成。

项目部署

打开下载好的stable-diffusion-webui文件夹,双击运行webui-user.bat(注意:有两个webui-user文件存在,选择后缀名为bat)。
等待部署完成,时间有些长,请耐心等待。

界面汉化

汉化包地址

作者详细的介绍了汉化包的使用方法,这里不过多赘述。

安装扩展

此步骤为可选操作。

打开“扩展”选项卡,在选项卡中打开“从 URL 安装”选项卡,将https://github.com/Mikubill/sd-webui-controlnet输入到“扩展的 git 存储库的 URL”,按“安装”按钮。
重新加载/重新启动 Web UI。

下载模型

下载地址

将模型放入stable-diffusion-webui\models\Stable-diffusion路径下即可使用。

部署避坑

github无法访问

请自行寻找魔法工具,或者使用kgithub镜像站,即把所有github修改成kgithub。

Installing gfpgan报错

Installing gfpgan

Traceback (most recent call last):

File "E:\ai\stable-diffusion-webui\launch.py", line 122, in <module>

run_pip(f"install {gfpgan_package}", "gfpgan")

File "E:\ai\stable-diffusion-webui\launch.py", line 64, in run_pip

return run(f'"{python}" -m pip {args} --prefer-binary', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")

File "E:\ai\stable-diffusion-webui\launch.py", line 54, in run

raise RuntimeError(message)

RuntimeError: Couldn't install gfpgan.

Command: "E:\ai\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 --prefer-binary

Error code: 1

stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379

Cloning GitHub - TencentARC/GFPGAN: GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration. (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\administrator\appdata\local\temp\pip-req-build-4wh1o0zx

stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-4wh1o0zx'

Running command git rev-parse -q --verify 'sha^8d2447a2d918f8eba5a4a01463fd48e45126a379'

Running command git fetch -q GitHub - TencentARC/GFPGAN: GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration. 8d2447a2d918f8eba5a4a01463fd48e45126a379

fatal: unable to access 'https://github.com/TencentARC/GFPGAN.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443

error: subprocess-exited-with-error

git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.

exit code: 128

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.

exit code: 128

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

问题同上,将luanch.py中所有的github修改为kgithub,保存,重新运行webui-user.bat。

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇