安装BLIP2模型时报错:Can‘t load tokenizer for ‘bert-base-uncased‘. If you were trying to load it from ‘h ...

报错的信息如下所示: 

OSError: Can't load tokenizer for 'bert-base-uncased'. 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 'bert-base-uncased' is the correct path to a directory containing all relevant files for a BertTokenizer tokenizer.

个人尝试解决的方法是:

在执行 python 命令前添加: HF_ENDPOINT=https://hf-mirror.com

变成: HF_ENDPOINT=https://hf-mirror.com  python *****

参考的文章是:https://zhuanlan.zhihu.com/p/694710729

你可能感兴趣的:(人工智能,深度学习)