记录我在stable diffusion中遇到的坑

记录我在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))) 

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

回退版本 https改http 科学上网 使用国内代理

有效方法

手动安装,我的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祝大家成功~其他啥功能我再看看教程

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

6款实用超火AI工具推荐,ChatGPT,Midjourney ,Notion AI ,Tome ,Descript ,Runway

上一篇

Copilot 是否可以和 IDE 集成使用?

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