From f2881c9d4a8634294179a7396f00a530264aeed5 Mon Sep 17 00:00:00 2001 From: BUAADreamer <1428195643@qq.com> Date: Sun, 29 Sep 2024 12:38:25 +0800 Subject: [PATCH] fix some params of visual regularize Former-commit-id: 15cbc35af4559dad73c09317e82a63571a8c3540 --- src/llamafactory/data/mm_plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/llamafactory/data/mm_plugin.py b/src/llamafactory/data/mm_plugin.py index bb008ae8..553aef96 100644 --- a/src/llamafactory/data/mm_plugin.py +++ b/src/llamafactory/data/mm_plugin.py @@ -405,9 +405,9 @@ class LlavaNextVideoPlugin(BasePlugin): """ videos = super()._regularize_videos( videos, - image_resolution=128, + image_resolution=168, video_fps=1.0, - video_maxlen=64, + video_maxlen=16, ) return videos @@ -644,9 +644,9 @@ class VideoLlavaPlugin(BasePlugin): """ videos = super()._regularize_videos( videos, - image_resolution=128, + image_resolution=224, video_fps=1.0, - video_maxlen=64, + video_maxlen=8, ) return videos