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";