在安裝Stable-diffusion WebuUI時,運行python launch.py出現(xiàn)Can‘t load tokenizer for ‘openai/clip-vit-large-patch14問題,這是因為安裝過程中需要去huggingface網站下載一些文件,但該網站被墻,所以報錯。
所以可以自己去網站下載好對應文件:https://huggingface.co/openai/clip-vit-large-patch14/tree/main。下面給出兩種具體解決方案。
方案一:修改代碼中的文件路徑
方案二:將文件(本文附件)移動到電腦中的對應默認路徑中
win10:C:\Users\用戶名.cache\huggingface\hub文章來源:http://www.zghlxwxcb.cn/news/detail-784502.html
ubuntu root權限:~.cache\huggingface\hub文章來源地址http://www.zghlxwxcb.cn/news/detail-784502.html
到了這里,關于Stable-diffusion安裝時Can‘t load tokenizer for ‘openai/clip-vit-large-patch14‘2種解決方案的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!