Skip to content

Commit 224943f

Browse files
Change subtitle usage condition in longvideobench.py (#1588)
1 parent b206dc1 commit 224943f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vlmeval/dataset/longvideobench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def build_prompt(self, line, video_llm):
260260
if video_llm:
261261
message.append(dict(type='video', value=osp.join(self.data_root, line['video_path'])))
262262
else:
263-
if not self.use_subtitle:
263+
if self.use_subtitle:
264264
with open(osp.join(self.data_root, "subtitles", line["subtitle_path"])) as f:
265265
subtitles = json.load(f)
266266

0 commit comments

Comments
 (0)