[GH-ISSUE #48] Can't find vocabulary file at path... #45

Open
opened 2026-10-31 21:16:21 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @tgitit on GitHub (May 24, 2023).
Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/48

I've just installed the extension but now I'm stuck.
When I try to do an analysis on an image, I get this error:

ValueError: Can't find a vocabulary file at path 'C:\Users\xxxxx/.cache\huggingface\hub\models--bert-base-uncased\snapshots\0a6aa9128b6194f4f3c4db429b6cb4891cdb421b\vocab.txt'. To load the vocabulary from a Google pretrained model use tokenizer = BertTokenizer.from_pretrained(PRETRAINED_MODEL_NAME)

How can I solve this?

Originally created by @tgitit on GitHub (May 24, 2023). Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/48 I've just installed the extension but now I'm stuck. When I try to do an analysis on an image, I get this error: ValueError: Can't find a vocabulary file at path 'C:\Users\xxxxx/.cache\huggingface\hub\models--bert-base-uncased\snapshots\0a6aa9128b6194f4f3c4db429b6cb4891cdb421b\vocab.txt'. To load the vocabulary from a Google pretrained model use `tokenizer = BertTokenizer.from_pretrained(PRETRAINED_MODEL_NAME)` How can I solve this?
Author
Owner

@pharmapsychotic commented on GitHub (Jun 11, 2023):

Try deleting the C:\Users\xxxxx/.cache\huggingface\hub\ folder. It may have had an error downloading files and left you with some missing or corrupt files. It's safe to delete that folder and it will just download it again.

<!-- gh-comment-id:1586242383 --> @pharmapsychotic commented on GitHub (Jun 11, 2023): Try deleting the `C:\Users\xxxxx/.cache\huggingface\hub\` folder. It may have had an error downloading files and left you with some missing or corrupt files. It's safe to delete that folder and it will just download it again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pharmapsychotic/clip-interrogator-ext#45
No description provided.