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

The End

标签:

微信