mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 11:11:05 +06:00
remove duplicate code (#37991)
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
This commit is contained in:
parent
8a9441d26d
commit
fb1e3a4daa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user