We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efefc2a commit 32a45c4Copy full SHA for 32a45c4
tools/mtmd/mtmd-video.cpp
@@ -561,8 +561,13 @@ static mtmd_video::LoadVideoOptions get_video_sample_options(mtmd_video::VideoIn
561
opts.stride = 1;
562
opts.recursive = false;
563
564
- // minicpm frames sample method
+#ifdef MTMD_MAX_VIDEO_FRAMES_SMALL
565
+ // set a small number of frames for fast test locally
566
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
571
opts.max_frames = minicpmv_max_video_frames;
572
if(info.total_frames > minicpmv_max_video_frames) {
573
// uniform sample
0 commit comments