cswry/SeeSR

raise EnvironmentError( OSError: Can't load tokenizer for 'bert-base-uncased'

windcr opened this issue · 6 comments

SeeSR-main/test_seesr.py", line 125, in load_tag_model
model = ram(pretrained='preset/models/ram_swin_large_14m.pth',

SeeSR-main/ram/models/ram_lora.py", line 319, in ram
model = RAMLora(**kwargs)

SeeSR-main/ram/models/ram_lora.py", line 107, in init
self.tokenizer = init_tokenizer()

SeeSR-main/ram/models/utils.py", line 131, in init_tokenizer
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')

python3.10/site-packages/transformers/tokenization_utils_base.py", line 1785, in from_pretrained
raise EnvironmentError( 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.

我下载了整个bert-base-uncased目录中的所有文件和ram_swin_large_14m.pth,但一直报这个错!不知道是什么问题

same problem

same problem

请问您解决了吗 是如何解决的