您现在的位置是:首页 > 名人名句

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

作者:晨起时间:2024-03-26 18:51:01分类:名人名句

简介  文章浏览阅读1.7k次,点赞2次,收藏2次。由于网络原因, hugging face在国内无法访问, 所以出现了该错误, 笔者所使用的Linux服务器不能使用非常的上网手段, 通过在本地windows运行stable-diffusion-webui并进行排查,

点击全文阅读

第一次运行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.jsonWARNING: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

点击全文阅读

郑重声明:

本站所有活动均为互联网所得,如有侵权请联系本站删除处理

上一篇:初识前端标记语言HTML

下一篇:返回列表

我来说两句