记录我在stable diffusion中遇到的坑

OSError: HTTPSConnectionPool

纯python新人,跟着教程走,主要参考的是知乎的这篇:https://zhuanlan.zhihu.com/p/626006585,但是在安装gfpgan的时候,还是遇到了这个bug,报错如下:

Command:"D:\stableDiffusion\stable-diffusion-webui-master\venv\Scripts\python.exe" -m pip install-1http bs://pypidouban.com/simple/https://githubmoyyxyz/githubcm/TncnRC/FPGAN/archive/8d2447a2d918f8eb ba5a4a01463fd48e45126a379zip--prefer-binary Error code: 1
stdout:Looking in indexes:https://pypidouban.com/simple/
Collecting https://github.moeyy.xyz/github.com/TencenRC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e455126a379.zip
stderr:WARNING:Retrying (Retry(total=4connec=Noneread=Noneredirect=Nonestatus=None)) after co onnection broken by'ProxyError(Cannot connect to proxy.'FileNotFoundError(2, 'No such file or directory y0)':/github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip
WARNING:Retrying (Retry(total=3connect=Noneread=Noneredirect=Nonestatus=None)) after connection a broken by'ProxyError(Cannot connect to proxy.'FileNotFoundError(2,'No such file or directory)):/ qithub.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip
WARNING:Retrying (Retry(total=2connect=Noneread=Noneredirect=Nonestatus=None)) after connection broken by'ProxyError(Cannot connect to proxy.FileNotFoundError(2,No such file or directory')):/ github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip
WARNING:Retrying(Retry(total=1connect=Noneread=Noneredirect=Nonestatus=None)) after connection i broken by'ProxyError(Cannot connect to proxy.'FileNotFoundError(2,No such file or directory'))':/ github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip WARNING:Retrying(Retry(total=0,connect=Noneread=Noneredirect=Nonestatus=None)) after connection a broken by'ProxyError(Cannot connect to proxy.'FileNotFoundError(2,'No such file or directory))': /g github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e4
5126a379.zip
ERROR:Could not install packages due to an OSError:HTTPSConnectionPool(host=github.moeyy.xyz' port=4433:Max retries exceeded with url:/aithub.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e451126a379.zip (Caused by ProxyError(Cannot connect to proxy.'FileNot FoundError(2'No such file or directory)))

试过以下几种方法都没能解决:

  1. 回退版本
  2. https改http
  3. 科学上网
  4. 使用国内代理

有效方法

手动安装,我的stable diffusion 放在d盘,所以我的安装命令如下,记得关闭windows的代理,具体怎么关闭可以百度,比较简单

"D:lstableDiffusionlstable-diffusion-webui-mastervenvlScriptslpython.exe"-m pip install gfpgan -i http://mirrors.aliyun.com/pypi/simple/ --trusted-hostmirrors.aliyun.com

其实还是用代理,但是不知道为啥webui.bat执行就是会报错,就手动来了,这样是安装到stable diffusion的环境

Stable diffusion model loading error: SafetensorError

这个问题也困扰我好久,是昨天下载safetensors不知道咋回事网抖了一下,文件没有下载完全,这个问题国内没搜到,github有个一样的问题: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/10199,我也把回答搬运一下,到这个网站手动下载safetensors,再覆盖原来的就好了: https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.safetensors
不过也没说这个文件放在哪里。。。我又搜索了一下,windows用户可以参考我的路径:D:\stableDiffusion\stable-diffusion-webui-master\models\Stable-diffusion
祝大家都能愉快使用stable diffusion~
用stable diffusion生成的success祝大家成功~其他啥功能我再看看教程
在这里插入图片描述

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值