vllm_omni.diffusion.utils.size_utils ¶
Shared size normalization helpers for diffusion pipelines.
normalize_min_aligned_size ¶
Clamp dimensions to the minimum valid aligned size.
This preserves floor-to-alignment behavior for normal requests while preventing very small dimensions from collapsing to zero after alignment.