Przeglądaj źródła

clip : (minicpmv) Re-enable upscaling of images smaller than the CLIP image size (#13237)

Loïc Carrère 8 miesięcy temu
rodzic
commit
b6e4ff69b8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      examples/llava/clip.cpp

+ 1 - 1
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) {