InternVideo2 stage2 demo model change
Hi, I realize that the demo use the InternVideo2-Stage2_1B-224p-f4 model. Can i directly change the model to OpenGVLab/InternVideo2-Stage2_6B to change num_frames to 8? I hope to see better result since my videos are typically 35s to 60s long.
@LeonCai1 Try interpolate_pos_embed method in backbone.internvideo2.pos_embed. In my case, it worked properly.
@newcommandd How to use interpolate_pos_embed. When I directly change the num_frames to 8, it run failed.
@newcommandd The errors are as follows:
File "/InternVideo2/models/backbones/internvideo2/internvideo2.py", line 608, in forward x = x + pos_embed RuntimeError: The size of tensor a (1025) must match the size of tensor b (2049) at non-singleton dimension 1
I have solve the problem. Thansk
@newcommandd The errors are as follows:
File "/InternVideo2/models/backbones/internvideo2/internvideo2.py", line 608, in forward x = x + pos_embed RuntimeError: The size of tensor a (1025) must match the size of tensor b (2049) at non-singleton dimension 1
@taylover-pei I meet the same error when I change the demo code to 1b_clip ,can you kindly show me how to solve it ?
@taylover-pei Me too..