mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-06-28 04:30:15 -05:00
Correct image resize algorithm for all qwens after qwen2vl and gemma4
This commit is contained in:
parent
4f1ec69ae5
commit
19f08160ad
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user