modeling_videochat2.py error

#3
by Iaan99 - opened

Hi, I'm trying to employ the video inference code on sample data (example1.mp4) here (https://github.com/OpenGVLab/InternVideo/tree/main/InternVideo2/multi_modality/demo),

but I got an error like this:
image.png

my code is here:
image.png

I found 'def chat' in modeling_videochat2.py and there was a line said 'add_special_tokens =True' :
image.png

Can I get some help to solve this issue? Thanks.

OpenGVLab org

I think this may be a warning from 4.38.1 version of transformers, you can ignore it, or upgrade to a higher version of transformers.

I think this may be a warning from 4.38.1 version of transformers, you can ignore it, or upgrade to a higher version of transformers.

It has worked! Thank you!

ynhe changed discussion status to closed

Sign up or log in to comment