dandelin / ViLT

Code for the ICML 2021 (long talk) paper: "ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision"
Apache License 2.0
1.41k stars 208 forks source link

ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. #91

Open Spring24ch opened 10 months ago

Spring24ch commented 10 months ago

Do you know how to solve it???

JolinWang06 commented 4 months ago

I've met the same problem, have you solved it?

XXstr commented 2 weeks ago

I solved the problem by following these steps:

  1. Go to the URL https://huggingface.co and download the model bert-base-uncased config.json, pytorch_model.bin and vocab.txt locally.
  2. modify BertTokenizer.from_pretrained (from_pretrained, do_lower_case=‘uncased’ in from_pretrained) to BertTokenizer.from_pretrained (’ yourLocalPath’, local_files_only=True).