LAVIS icon indicating copy to clipboard operation
LAVIS copied to clipboard

i come to this problem while loading this model:

Open marcocst opened this issue 1 year ago • 1 comments

          i come to this problem while loading this model:

model, vis_processors, text_processors = load_model_and_preprocess("blip2_image_text_matching", "pretrain", device=device, is_eval=True)

File "/home/user/anaconda3/envs/lavis/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1825, in from_pretrained return cls._from_pretrained( File "/home/user/anaconda3/envs/lavis/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1988, in _from_pretrained tokenizer = cls(*init_inputs, **init_kwargs) File "/home/user/anaconda3/envs/lavis/lib/python3.8/site-packages/transformers/models/bert/tokenization_bert.py", line 213, in init if not os.path.isfile(vocab_file): File "/home/user/anaconda3/envs/lavis/lib/python3.8/genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Originally posted by @zhzxlcc in https://github.com/salesforce/LAVIS/issues/108#issuecomment-1590421331

marcocst avatar Jun 27 '23 11:06 marcocst