[Bugfix][Multimodal] Fix video temporal padding estimates (#49030)

Signed-off-by: xiaoming <1259730330@qq.com>
This commit is contained in:
labAxiaoming
2026-07-29 01:57:31 +08:00
committed by GitHub
parent 8a7b3c2990
commit 1db989bbf1
7 changed files with 34 additions and 9 deletions
+1 -1
View File
@@ -983,7 +983,7 @@ class KeyeProcessingInfo(BaseProcessingInfo):
else:
preprocessed_size = ImageSize(width=image_width, height=image_height)
padded_num_frames = num_frames + num_frames % temporal_patch_size
padded_num_frames = num_frames + (-num_frames % temporal_patch_size)
grid_t = max(padded_num_frames // temporal_patch_size, 1)
grid_h = preprocessed_size.height // patch_size