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
..
distributed initial commit 2026-10-20 12:09:42 +08:00
engine initial commit 2026-10-20 12:09:42 +08:00
models 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
conftest.py initial commit 2026-10-20 12:09:42 +08:00
test_cuda_sync_guards.py initial commit 2026-10-20 12:09:42 +08:00