DAMO-NLP-SG / Video-LLaMA

[EMNLP 2023 Demo] Video-LLaMA: An Instruction-tuned Audio-Visual Language Model for Video Understanding
BSD 3-Clause "New" or "Revised" License
2.77k stars 255 forks source link

Hugging Face demo runtime error #143

Closed sihoseanhan closed 7 months ago

sihoseanhan commented 8 months ago

I get the below error when opening your demo link.

Runtime error
Initializing Chat
Traceback (most recent call last):
  File "/home/user/app/app.py", line 67, in <module>
    model = model_cls.from_config(model_config).to('cuda:{}'.format(args.gpu_id))
  File "/home/user/app/video_llama/models/video_llama.py", line 395, in from_config
    model = cls(
  File "/home/user/app/video_llama/models/video_llama.py", line 73, in __init__
    self.tokenizer = self.init_tokenizer()
  File "/home/user/app/video_llama/models/blip2.py", line 32, in init_tokenizer
    tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
  File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1795, 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.
lixin4ever commented 7 months ago

Thanks for your kind reminder. It's probably because of the network issue. Now the demo already returned to normal.

ktr-hubrt commented 1 month ago

I still meet this error. Can you help me check the network?

Thanks for your kind reminder. It's probably because of the network issue. Now the demo already returned to normal.