From 3bb5f269501d1a5656fe2dee241b222fc1b4e871 Mon Sep 17 00:00:00 2001 From: "wangyunlong.115" Date: Mon, 27 Oct 2025 21:05:12 +0800 Subject: [PATCH] bugfix: remove unnecessary image shape checking. --- xllm/processors/qwen2_vl_image_processor.cpp | 5 ----- 1 file changed, 5 deletions(-) mode change 100644 => 100755 xllm/processors/qwen2_vl_image_processor.cpp diff --git a/xllm/processors/qwen2_vl_image_processor.cpp b/xllm/processors/qwen2_vl_image_processor.cpp old mode 100644 new mode 100755 index 1934b4c3..796068ab --- a/xllm/processors/qwen2_vl_image_processor.cpp +++ b/xllm/processors/qwen2_vl_image_processor.cpp @@ -25,11 +25,6 @@ std::optional smart_resize(int height, int factor = 28, int min_pixels = 56 * 56, int max_pixels = 14 * 14 * 4 * 1280) { - if (height < factor || width < factor) { - LOG(ERROR) << "Height or width must be larger than factor"; - return std::nullopt; - } - if (static_cast(std::max(height, width)) / std::min(height, width) > 200) { LOG(ERROR) << "Absolute aspect ratio must be smaller than 200";