Skip to content

Commit 32a45c4

Browse files
committed
fix: max video frames
1 parent efefc2a commit 32a45c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/mtmd/mtmd-video.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,13 @@ static mtmd_video::LoadVideoOptions get_video_sample_options(mtmd_video::VideoIn
561561
opts.stride = 1;
562562
opts.recursive = false;
563563

564-
// minicpm frames sample method
564+
#ifdef MTMD_MAX_VIDEO_FRAMES_SMALL
565+
// set a small number of frames for fast test locally
565566
const int32_t minicpmv_max_video_frames = 4;
567+
#else
568+
// minicpm frames sample method
569+
const int32_t minicpmv_max_video_frames = 64;
570+
#endif
566571
opts.max_frames = minicpmv_max_video_frames;
567572
if(info.total_frames > minicpmv_max_video_frames) {
568573
// uniform sample

0 commit comments

Comments
 (0)