chenfei-wu / TaskMatrix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /Salesforce/blip-image-captioning-base/resolve/main/preprocessor_config.json (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)')))

sunshin2012 opened this issue · comments

在执行代码python visual_chatgpt.py --load ImageCaptioning_cpu,Text2Image_cpu
出现这种情况:
image
最后报错:SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url:
/Salesforce/blip-image-captioning-base/resolve/main/preprocessor_config.json (Caused by SSLError(SSLZeroReturnError(6,
'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)')))
请问该怎么解决呢

在执行python visual_chatgpt.py --load ImageCaptioning_cpu,Text2Image_cpu前先执行以下两行:
set https_proxy=http://127.0.0.1:7890
set http_proxy=http://127.0.0.1:7890

参考知乎帖子,直接将代理地址添加到环境变量。
https://www.zhihu.com/question/587322263/answer/2919916984