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的环境文章来源:https://www.toymoban.com/news/detail-663042.html
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祝大家成功~其他啥功能我再看看教程
文章来源地址https://www.toymoban.com/news/detail-663042.html
到了这里,关于记录我在stable diffusion中遇到的坑的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!