Skip to content

Commit b6e4ff6

Browse files
authored
clip : (minicpmv) Re-enable upscaling of images smaller than the CLIP image size (ggml-org#13237)
1 parent e0f572c commit b6e4ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/llava/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ struct llava_uhd {
25612561

25622562
// no pinpoints, dynamically calculate the grid size (e.g. minicpmv)
25632563

2564-
auto best_size = get_best_resize(original_size, slice_size, patch_size, has_slices);
2564+
auto best_size = get_best_resize(original_size, slice_size, patch_size, !has_slices);
25652565
res.overview_size = best_size;
25662566

25672567
if (!has_slices) {

0 commit comments

Comments
 (0)