Stable Diffusion Webui在Linux服务器第一次运行不能连接huggingface

Stable Diffusion Webui在Linux服务器第一次运行不能连接huggingface

    正在检查是否收录...

第一次运行stable-diffusion-webui出现了如下错误

'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /openai/clip-vit-large-patch14/resolve/main/vocab.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f869db3fc70>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 25f0a961-a00d-4f73-9748-7dccb2ccf132)')' thrown while requesting HEAD https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/vocab.json WARNING:huggingface_hub.utils._http:'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /openai/clip-vit-large-patch14/resolve/main/vocab.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f869db3fc70>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 25f0a961-a00d-4f73-9748-7dccb2ccf132)')' thrown while requesting HEAD https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/vocab.json
OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.

由于网络原因, hugging face在国内无法访问, 所以出现了该错误, 笔者所使用的Linux服务器不能使用非常的上网手段, 通过在本地windows运行stable-diffusion-webui并进行排查, 找到了问题所在

Linux服务器的~/.cache/huggingface/hub/目录下需models--openai--clip-vit-large-patch14文件夹, 从本地下载该文件夹, 然后上传到服务器相应目录下即可解决

不能访问hugging face可以直接使用该链接https://download.csdn.net/download/weixin_53626425/88469624

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

大模型入门(一)—— LLaMa/Alpaca/Vicuna

上一篇

Linux 中的机器学习:Whisper——自动语音识别系统

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