We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37855db commit 30ab84eCopy full SHA for 30ab84e
vllm/model_executor/models/qwen3_vl.py
@@ -735,9 +735,9 @@ def _get_video_second_idx(
735
if do_sample_frames:
736
# here video_fps is the fps of the sampled video, and
737
# metadata["fps"] refers to the fps of the original video.
738
- video_fps = sampled_fps if sampled_fps else video_processor.fps
+ sampled_fps = sampled_fps if sampled_fps else video_processor.fps
739
total_num_frames = metadata["total_num_frames"]
740
- num_frames = int(total_num_frames / metadata["fps"] * video_fps)
+ num_frames = int(total_num_frames / metadata["fps"] * sampled_fps)
741
num_frames = min(
742
min(
743
max(num_frames, video_processor.min_frames),
0 commit comments