Skip to content

[LTX-2] Add decode_audio to skip the audio decode in modular pipelines (tracking) - #9

Open
christopher5106 wants to merge 1 commit into
mainfrom
fix_ltx2_audio_decode_toggle
Open

christopher5106 wants to merge 1 commit into
mainfrom
fix_ltx2_audio_decode_toggle

Conversation

@christopher5106

Copy link
Copy Markdown

Tracking PR for huggingface#15045, opened from this branch. Never merged here: once upstream merges it, this branch is deleted and the commit dropped from scenario when it is rebased.

pipe(..., decode_audio=False) skips the LTX-2 / LTX-2.5 audio VAE decode and vocoder and returns audio=None, for video-only outputs such as an IC-LoRA alpha matte. The video is unchanged. Details in the upstream PR and issue huggingface#15044.

The same commit is cherry-picked on scenario (56edff8a).

`LTX2AutoAudioDecoderStep` wraps `LTX2AudioDecoderStep` in a `ConditionalPipelineBlocks` that runs it unless
`decode_audio=False`, in every LTX-2 and LTX-2.5 decoder chain. A video-only output (e.g. an IC-LoRA alpha matte)
then skips the audio VAE and vocoder and gets `audio=None`; the video is unchanged, since the audio latents are still
denoised jointly with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant