Correct image resize algorithm for all qwens after qwen2vl and gemma4

This commit is contained in:
Thomas Green 2026-06-14 21:57:11 +01:00
parent 4f1ec69ae5
commit 19f08160ad

View File

@ -4708,7 +4708,7 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, str
params.patch_size * cur_merge,
params.image_min_pixels,
params.image_max_pixels);
img_tool::resize(*img, resized, new_size, img_tool::RESIZE_ALGO_BILINEAR, false);
img_tool::resize(*img, resized, new_size, img_tool::RESIZE_ALGO_BICUBIC, false);
// clip_image_save_to_bmp(resized, "preproc.bmp");
clip_image_f32_ptr img_f32(clip_image_f32_init());
// clip_image_f32_ptr res(clip_image_f32_init());