Skip to content

Fix LTX2 prompt relay frame quantization#2018

Open
GOvEy1nw wants to merge 1 commit into
deepbeepmeep:mainfrom
GOvEy1nw:codex/fix-prompt-relay-frame-quantization
Open

Fix LTX2 prompt relay frame quantization#2018
GOvEy1nw wants to merge 1 commit into
deepbeepmeep:mainfrom
GOvEy1nw:codex/fix-prompt-relay-frame-quantization

Conversation

@GOvEy1nw

Copy link
Copy Markdown

Summary

  • Quantize prompt-relay visible offsets and segment bounds onto discrete latent query-frame indices.
  • Use integral midpoint and full-strength window calculations after quantization.

Why

Prompt-relay ranges are expressed as normalized positions, but attention masks are evaluated on discrete latent query frames. Fractional boundaries could land between those frames, causing short relay segments to miss their intended full-strength frame or behave inconsistently around boundaries.

Impact

Short and narrow prompt-relay segments now map deterministically to actual latent frames. This only changes LTX2 prompt-relay mask construction; it adds no settings or API changes.

Validation

  • Compiled shared/prompt_relay.py with py_compile.
  • Ran a focused five-frame mask assertion confirming a narrow relay segment retains a zero-cost, full-strength frame.
  • Exercised the combined prompt-relay changes through AI Video Studio against WanGP 12.34.

This fix is independent from the companion configurable-epsilon feature.

Fractional relay bounds can fall between discrete latent query frames, causing short prompt segments to lose their full-strength frame.
@GOvEy1nw
GOvEy1nw marked this pull request as ready for review July 20, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant