Ziyang Guo d11fda6987 fix(ve): align the ultra-wide stretch predicate with the layout clamp
compute_image_layout clamps the width only when width > height * max_wh_ratio,
but ImageProcessorAnyRes._is_stretched treated width >= height * max_wh_ratio
as stretched. An image whose ratio is exactly at the limit was therefore not
clamped by the layout yet still resized by stretching, which distorts it by
the patch-alignment rounding (e.g. 800x100 -> 812x112 squeezes the aspect
from 8.0 to 7.25), while a one-pixel narrower image kept its aspect ratio.

Share one predicate between the layout clamp and the resize so the two cannot
drift apart, and cover the boundary with a CPU-only regression test.
2026-10-29 01:05:04 +08:00
..
_C initial commit 2026-10-20 12:09:42 +08:00
distributed initial commit 2026-10-20 12:09:42 +08:00
engine initial commit 2026-10-20 12:09:42 +08:00
entrypoints initial commit 2026-10-20 12:09:42 +08:00
hugging_face initial commit 2026-10-20 12:09:42 +08:00
model_executor initial commit 2026-10-20 12:09:42 +08:00
npu_ops initial commit 2026-10-20 12:09:42 +08:00
structure_output initial commit 2026-10-20 12:09:42 +08:00
ve fix(ve): align the ultra-wide stretch predicate with the layout clamp 2026-10-29 01:05:04 +08:00
worker initial commit 2026-10-20 12:09:42 +08:00
__init__.py initial commit 2026-10-20 12:09:42 +08:00
attrdict.py initial commit 2026-10-20 12:09:42 +08:00
config.py initial commit 2026-10-20 12:09:42 +08:00
environ.py fix: validate boolean environment variables with strict parsing (#218) 2026-10-25 19:59:27 +08:00
load_class.py initial commit 2026-10-20 12:09:42 +08:00
logger.py initial commit 2026-10-20 12:09:42 +08:00
model_config_loader.py initial commit 2026-10-20 12:09:42 +08:00
multimodal_tokens.py initial commit 2026-10-20 12:09:42 +08:00
platform.py initial commit 2026-10-20 12:09:42 +08:00
py.typed initial commit 2026-10-20 12:09:42 +08:00
sampling_params.py initial commit 2026-10-20 12:09:42 +08:00
sequence.py initial commit 2026-10-20 12:09:42 +08:00
shared_memory.py initial commit 2026-10-20 12:09:42 +08:00
testing.py initial commit 2026-10-20 12:09:42 +08:00
timer.py initial commit 2026-10-20 12:09:42 +08:00
utils.py initial commit 2026-10-20 12:09:42 +08:00