]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
clip : (minicpmv) Re-enable upscaling of images smaller than the CLIP image size...
authorLoïc Carrère <redacted>
Thu, 1 May 2025 19:32:21 +0000 (21:32 +0200)
committerGitHub <redacted>
Thu, 1 May 2025 19:32:21 +0000 (21:32 +0200)
examples/llava/clip.cpp

index 984e300e7538add1c2243769bd456b3ca9a3ee0d..7607d4e3ae3a4747de1aeb7b73cf80b18f0a2775 100644 (file)
@@ -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) {