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?
@yiyixuxu@sayakpaul — happy to open a PR for the documented no-resize path if this scope looks right (disable the preliminary stride-aligned resize in preprocess_reference_video_hdr when the caller intends normalize+pad only, plus the tiny repro as a regression test). Waiting for an explicit ACK per the Diffusers AI contribution guidelines before opening.
Activity
Eryx-Z commentedon Oct 16, 2026
@yiyixuxu @sayakpaul — happy to open a PR for the documented no-resize path if this scope looks right (disable the preliminary stride-aligned resize in
preprocess_reference_video_hdrwhen the caller intends normalize+pad only, plus the tiny repro as a regression test). Waiting for an explicit ACK per the Diffusers AI contribution guidelines before opening.