You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LTX2 HDR reference preprocessing applies an unintended stride-aligned resize #15037
preprocess_reference_video_hdr is documented to normalize frames without resizing before HDR's resize/pad step. However, height=None, width=None still selects stride-aligned default dimensions while do_resize=True.
With stride 32, a 1080×1920 (H×W) reference targeting 1088×1920 is first resized to 1056×1920, compressing its height before padding. Inputs smaller than the stride can hit a zero-sized resize.
The HDR helper already skips resizing when the target contains the source, so this example should only normalize and pad. A pipeline test with tiny components also confirms that the discrepancy changes output latents.
I have a local fix that disables this preliminary resize on a copy, leaving the original processor unchanged. Would this scope be suitable for a PR?
Activity