Win11下安装 stable diffusion 记录
这次是Win11下安装,安装方法:
https://github.com/AUTOMATIC1111/stable-diffusion-webui
Automatic Installation on Windows
- Install Python 3.10.6 (Newer version of Python does not support torch), checking "Add Python to PATH".
- Install git.
- Download the stable-diffusion-webui repository, for example by running
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git. - Run webui-user.bat from Windows Explorer as normal, non-administrator, user.
之前提到两个安装过程中会碰到的问题
本地部署stable-diffusion-webui出现的问题记录
其中安装 gfpgan 卡住, 可以通过 Clash for Window 如下配置
先打开Service Mode,然后再开启TUN Mode

如何打开win11防火墙某个端口
- 打开「开始」菜单并输入「防火墙」。
- 选择「Windows 防火墙」。
- 在左侧菜单栏中选择「高级设置」。
- 在「入站规则」或「出站规则」中选择「新建规则」。
- 选择「端口」,然后选择「下一步」。
- 在「协议和端口」选项中,选择「TCP」或「UDP」,然后输入您想要打开的端口号。
- 选择「下一步」,并选择「允许连接」。
- 为该规则提供一个名称和描述(可选),然后选择「完成」。
这样就可以在 Windows 11 中打开指定的端口了。
设置局域网其它机器可访问
修改 webui-user.sh 文件,增加--listen参数。
set COMMANDLINE_ARGS="--listen"
如果不修改是无法访问的,显示的端口将不会是 0.0.0.0,而是 127.0.0.1
能其它机器访问的应该是:
Running on local URL: http://0.0.0.0:7860