安装stable-diffusion时gfpgan安装失败

安装stable-diffusion时gfpgan安装失败

    正在检查是否收录...
一言准备中...

错误代码如下:

Installing gfpgan Traceback (most recent call last): File "launch.py", line 380, in <module> prepare_environment() File "launch.py", line 290, in prepare_environment run_pip(f"install {gfpgan_package}", "gfpgan") File "launch.py", line 145, in run_pip return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}") File "launch.py", line 113, in run raise RuntimeError(message) RuntimeError: Couldn't install gfpgan. Command: "D:\Light\diffusion\stable-diffusion\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 https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\administrator\appdata\local\temp\pip-req-build-jtg0oh54 stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-jtg0oh54' error: RPC failed; curl 28 Recv failure: Connection was reset fatal: expected flush after ref listing error: subprocess-exited-with-error git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-jtg0oh54' 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 clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-jtg0oh54' 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. 请按任意键继续. . .

下载gfpgan:

 解压至:D:\Light\diffusion\stable-diffusion\venv\Scripts,并打开命令行窗口

 接着键入命令:d:\\Light\diffusion\stable-diffusion\venv\Scripts\python.exe -m pip install basicsr facexlib,安装gfpgan依赖

 遇到这种情况,关闭代理,重新输入

键入命令:d:\\Light\diffusion\stable-diffusion\venv\Scripts\python.exe -m pip install -r requirements.txt 

安装gfpgan:d:\\Light\diffusion\stable-diffusion\venv\Scripts\python.exe setup.py develop

 运行:      .\webui-user.bat

后面不能安装的库按照此法进行安装,祝你好运!

gitgandiffusiongithubpythoncodescriptappnistcloneurltpu命令行webuieloweb
  • 本文作者:WAP站长网
  • 本文链接: https://wapzz.net/post-1773.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.7W+
9
1
2
WAP站长官方

【城南】如何识别AI生成图?视觉AIGC伪造检测技术综述

上一篇

在 Windows(NVIDIA 和 AMD)上使用 Stable Diffusion 的快速简便方法,使用 AUTOMATIC1111 稳定的扩散网络 UI 在您自己的计算机上制作免费的 AI 艺术

下一篇
  • 复制图片
按住ctrl可打开默认菜单