广告
返回顶部
首页 > 资讯 > 后端开发 > Python >安装stable-diffusion时gfpgan安装失败
  • 376
分享到

安装stable-diffusion时gfpgan安装失败

stablediffusionpythongit 2023-09-04 19:09:31 376人浏览 八月长安

Python 官方文档:入门教程 => 点击学习

摘要

错误代码如下: Installing gfpganTraceback (most recent call last): File "launch.py", line 380, in prepare_environment() F

错误代码如下:

Installing gfpganTraceback (most recent call last):  File "launch.py", line 380, in     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-binaryError code: 1stdout: 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-jtg0oh54stderr:   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-errorgit 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: 128See 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

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

来源地址:https://blog.csdn.net/qq_45041788/article/details/129677247

--结束END--

本文标题: 安装stable-diffusion时gfpgan安装失败

本文链接: https://www.lsjlt.com/news/394154.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作