You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I want to thank the authors for this work. I think I see your poster at ICLR in May. Back then I did not work on anything related to video retrieval. oh well.
So yeah I had some troubles get the jupyter notebook in demo folder working because there are few errors here and there.
I then made some adjustments to make the code run but I notice that the outputs are gibberish. In particular, the text embedding seems to be wrong. After some investigation, I found my error:
I firstly got error when I run this line tokenizer = BertTokenizer.from_pretrained(config.model.text_encoder.pretrained, local_files_only=True)
I assume it's becaues I don't have the right file, so I remove local_files_only=True . Then I got the error about vocab, caused by me having a higher version for transformer.
I then observe that by changing from models.backbones.bert.tokenization_bert import BertTokenizer to from transformers import BertTokenizer. So I changed it. And apparently this causes the generated text embedding to be incorrect.
downgrade transformers to 4.28.1 fix the error.
Thanks
The text was updated successfully, but these errors were encountered:
I also noticed a lot of people running into the relative imports error, you can fix it by running this code from InternVideo/InternVideo2/multi_modality/:
Hello,
First, I want to thank the authors for this work. I think I see your poster at ICLR in May. Back then I did not work on anything related to video retrieval. oh well.
So yeah I had some troubles get the jupyter notebook in
demo
folder working because there are few errors here and there.I then made some adjustments to make the code run but I notice that the outputs are gibberish. In particular, the text embedding seems to be wrong. After some investigation, I found my error:
I firstly got error when I run this line
tokenizer = BertTokenizer.from_pretrained(config.model.text_encoder.pretrained, local_files_only=True)
I assume it's becaues I don't have the right file, so I remove
local_files_only=True
. Then I got the error aboutvocab
, caused by me having a higher version fortransformer
.I then observe that by changing
from models.backbones.bert.tokenization_bert import BertTokenizer
tofrom transformers import BertTokenizer
. So I changed it. And apparently this causes the generated text embedding to be incorrect.downgrade transformers to
4.28.1
fix the error.Thanks
The text was updated successfully, but these errors were encountered: