[Bugfix][Multimodal] Fix video temporal padding estimates (#49030)
Signed-off-by: xiaoming <1259730330@qq.com>
This commit is contained in:
@@ -1345,7 +1345,7 @@ class LlavaOnevision2ProcessingInfo(BaseProcessingInfo):
|
||||
preprocessed = ImageSize(width=rw, height=rh)
|
||||
else:
|
||||
preprocessed = ImageSize(width=image_width, height=image_height)
|
||||
padded_frames = num_frames + num_frames % temporal_patch_size
|
||||
padded_frames = num_frames + (-num_frames % temporal_patch_size)
|
||||
grid_t = max(padded_frames // temporal_patch_size, 1)
|
||||
grid_h = preprocessed.height // patch_size
|
||||
grid_w = preprocessed.width // patch_size
|
||||
|
||||
Reference in New Issue
Block a user