Skip to content

Commit 4c57cde

Browse files
committed
support new processor arg video_maxlen_ttl
1 parent 7c7fd96 commit 4c57cde

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/llamafactory/data/mm_plugin.py

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ class MMProcessor(ProcessorMixin):
8585
def _get_number_of_features(self, orig_height: int, orig_width: int, height: int, width: int) -> int:
8686
pass
8787

88-
8988
def _cal_max_frames_each_video(durations: list, video_maxlen_ttl: int, video_maxlen: int) -> list[int]:
9089
"""Calculate `max_num_of_frames` for each video based on their durations, and return a list of `max_num_of_frames`. Every `max_num_of_frames` should be in [2, video_maxlen]."""
9190
dura_ttl = sum(durations)

0 commit comments

Comments
 (0)