remove duplicate code (#37991)

Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
This commit is contained in:
kaixuanliu 2025-05-07 20:46:45 +08:00 committed by GitHub
parent 8a9441d26d
commit fb1e3a4daa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,11 +177,6 @@ class VideoLlavaProcessor(ProcessorMixin):
height, width = get_image_size(one_video[0])
num_frames = one_video.shape[0] # frame dim is always after batch dim
num_image_tokens = (height // self.patch_size) * (
width // self.patch_size
) + self.num_additional_image_tokens
num_video_tokens = num_image_tokens * num_frames
num_image_tokens = (height // self.patch_size) * (
width // self.patch_size
) + self.num_additional_image_tokens