前置条件:已安装git,python或者anaconda环境,其他的内容请参考文末的视频链接
从git上拉取automatic1111导入运行novelAi必须的文件后,运行webui-user.bat遇到如下问题
# 前略
......
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\YY\AppData\Local\Temp\pip-req-build-57vhptio' 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.
WARNING: You are using pip version 22.0.4; however, version 22.3 is available.
You should consider upgrading via the 'D:\AI\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip' command.
首先解决最后的警告
WARNING: You are using pip version 22.0.4; however, version 22.3 is available.
在你拉取automatic1111的目录下找到stable-diffusion-webui\venv\Scripts
在该目录下运行cmd,输入
python.exe -m pip install --upgrade pip
升级pip
再次运行webui-user.bat
再次报错,但无pip警告,打开科学上网的加速器后再次运行webui-user.bat
下载2GB左右的数据后成功启动
因为需要下载的内容较多,考虑的网络环境的问题,git很不稳定,许多东西无法克隆,大多数问题都是报错都是网络问题造成的,建议使用高速的加速器下载
novelAi安装参考: https://www.bilibili.com/video/BV1EV4y1L7px?share_source=copy_web&vd_source=fc4b19b9c9e0ee5dcb84571b45ba15f0