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

This commit is contained in:
Loïc Carrère 2025-05-01 21:32:21 +02:00 committed by GitHub
parent e0f572c846
commit b6e4ff69b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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) {