Skip to content

Commit c06440f

Browse files
ngxsonCISC
andauthored
Update tools/mtmd/clip.cpp
Co-authored-by: Sigbjørn Skjæret <[email protected]>
1 parent 5b35faa commit c06440f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/mtmd/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4121,7 +4121,7 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, str
41214121
const std::array<uint8_t, 3> pad_color = {127, 127, 127};
41224122
clip_image_u8 resized_image;
41234123
int sz = params.image_size;
4124-
img_tool::resize(*img, resized_image, {sz, sz}, img_tool::RESIZE_ALGO_BILINEAR);
4124+
img_tool::resize(*img, resized_image, {sz, sz}, img_tool::RESIZE_ALGO_BILINEAR, true, pad_color);
41254125
clip_image_f32_ptr img_f32(clip_image_f32_init());
41264126
normalize_image_u8_to_f32(resized_image, *img_f32, params.image_mean, params.image_std);
41274127
res_imgs->entries.push_back(std::move(img_f32));

0 commit comments

Comments
 (0)