mtmd : skip thumbnail for non-tiled LFM2 images (#27246)

* mtmd : skip thumbnail for non-tiled LFM2 images

Matches HF behavior.

* Update tools/mtmd/mtmd-image.cpp

---------

Co-authored-by: Xuan-Son Nguyen <thichthat@gmail.com>
This commit is contained in:
Tarek Dakhran
2026-08-17 19:41:32 +02:00
committed by GitHub
co-authored by Xuan-Son Nguyen
parent 60eeeb6082
commit b75ecd1971
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -145,6 +145,7 @@ struct mtmd_image_preprocessor_lfm2 : mtmd_image_preprocessor_llava_uhd {
static constexpr int tile_size = 512;
using mtmd_image_preprocessor_llava_uhd::mtmd_image_preprocessor_llava_uhd;
mtmd_image_preproc_out preprocess(const clip_image_u8 & img) override;
slice_instructions get_slice_instructions(const clip_image_size & original_size) override;
private: