Skip to content

Commit 8c3960e

Browse files
wly-115JimHsiung
authored andcommitted
bugfix: remove unnecessary image shape check in Qwen2 image processing. (#286)
1 parent 8a82ac4 commit 8c3960e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

xllm/processors/qwen2_vl_image_processor.cpp

100644100755
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ std::optional<Size> smart_resize(int height,
2525
int factor = 28,
2626
int min_pixels = 56 * 56,
2727
int max_pixels = 14 * 14 * 4 * 1280) {
28-
if (height < factor || width < factor) {
29-
LOG(ERROR) << "Height or width must be larger than factor";
30-
return std::nullopt;
31-
}
32-
3328
if (static_cast<double>(std::max(height, width)) / std::min(height, width) >
3429
200) {
3530
LOG(ERROR) << "Absolute aspect ratio must be smaller than 200";

0 commit comments

Comments
 (0)