rese1f / MovieChat

[CVPR 2024] MovieChat: From Dense Token to Sparse Memory for Long Video Understanding
https://rese1f.github.io/MovieChat/
BSD 3-Clause "New" or "Revised" License
534 stars 41 forks source link

inference bug #16

Closed Xiuyuan-Chen closed 1 year ago

Xiuyuan-Chen commented 1 year ago

There are many SyntaxError in inference.py: File "inference.py", line 82 def call(self, input_ids: torch.LongTensor, scores: torch.FloatTensor): ^ SyntaxError: invalid syntax

File "inference.py", line 134 msg = f"The video contains {len(indices)} frames sampled at {sec} seconds. " ^ SyntaxError: invalid syntax