[data] Fix the video frame sampling issue #9620 (#9634)

This commit is contained in:
Xunpeng Xiao
2025-12-19 18:36:31 +08:00
committed by GitHub
parent 5204cd2bca
commit ddd7dcc722

View File

@@ -1624,7 +1624,7 @@ class Qwen3VLPlugin(Qwen2VLPlugin):
for video, duration in zip(videos["videos"], videos["durations"]) for video, duration in zip(videos["videos"], videos["durations"])
] ]
mm_inputs.update( mm_inputs.update(
video_processor(videos=videos["videos"], video_metadata=video_metadata, return_metadata=True) video_processor(videos=videos["videos"], video_metadata=video_metadata, fps=getattr(processor, "video_fps", 2.0), return_metadata=True)
) )
temporal_patch_size: int = getattr(image_processor, "temporal_patch_size", 2) temporal_patch_size: int = getattr(image_processor, "temporal_patch_size", 2)
if "second_per_grid_ts" in processor.model_input_names: if "second_per_grid_ts" in processor.model_input_names: