From: Loïc Carrère Date: Thu, 1 May 2025 19:32:21 +0000 (+0200) Subject: clip : (minicpmv) Re-enable upscaling of images smaller than the CLIP image size... X-Git-Tag: upstream/0.0.5318~67 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b6e4ff69b8abd509647b531bd5b4e86950204f66;p=pkg%2Fggml%2Fsources%2Fllama.cpp clip : (minicpmv) Re-enable upscaling of images smaller than the CLIP image size (#13237) --- diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 984e300e..7607d4e3 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -2561,7 +2561,7 @@ struct llava_uhd { // no pinpoints, dynamically calculate the grid size (e.g. minicpmv) - auto best_size = get_best_resize(original_size, slice_size, patch_size, has_slices); + auto best_size = get_best_resize(original_size, slice_size, patch_size, !has_slices); res.overview_size = best_size; if (!has_slices) {