Add Echo-WM Base and Flash modular pipelines - #14706
Open
liyaowei-stu wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds native Diffusers support for the Echo-WM Base and Flash checkpoints as modular pipelines for image- and action-conditioned video generation with synchronized audio.
The implementation includes:
EchoWMTransformer3DModel, including Echo-WM's action conditioning, sigma handling, velocity-to-x0 conversion, and causal cache behavior.EchoWMModularPipelineandEchoWMFlashModularPipelineblocksets for the Base and Flash inference workflows.apply_action_overlaypost-processing utility for rendering WASD/IJKL controls on generated PIL frames.Model repositories:
The PR also fixes an LTX-2 VAE tiled-decoding edge case where a final tile could lie entirely inside the preceding overlap. Such a tile adds no output coverage and may be too small for reflection padding. The updated implementation skips overlap-only tail tiles and preserves the final decoded tile when assembling the output. A regression test covers both portrait and landscape layouts.
No new mandatory dependency is introduced. PyAV and Accelerate remain optional dependencies for media encoding/image CRF processing and automatic CPU offloading respectively.
Examples
Echo-WM Base
Echo-WM Flash
Flash uses its fixed distilled schedule and therefore does not accept
negative_promptornum_inference_steps.GPU validation and upstream impact
The implementation was validated on an NVIDIA CUDA GPU with the published full-size Base and Flash checkpoints.
The validation covered:
ModularPipeline.from_pretrained()andload_components().ComponentsManager.encode_video.The Echo-WM-specific transformer, denoising, action conditioning, causal cache handling, and post-processing logic are isolated under the Echo-WM model and modular pipeline modules.
This integration does not modify the existing LTX-2 denoiser, vocoder, or
ComponentsManagerbehavior. The only shared runtime change is a focused fix inAutoencoderKLLTX2Videofor overlap-only tail tiles during tiled decoding. That fix is model-independent and covered by a dedicated regression test. The remaining changes to existing Diffusers files are limited to class exports, modular pipeline registration, generated dummy objects, documentation registration, and tests.Before submitting
self-reviewskill on the diff?Validation
64 passed, 10 skipped18 passedmake fix-copiesAI-assisted development and self-review
This contribution was developed with assistance from Codex.
Final self-review
Verdict: READY
Blocking issues
None found.
Non-blocking notes
Echo-Team. They can be migrated tohf-internal-testingduring review if preferred.components_manager.py, the LTX-2 vocoder, or the LTX-2 denoiser.Dead-code review
No likely dead code was identified in the Echo-WM pipeline call paths reviewed for Base and Flash inference.
Who can review?
cc @yiyixuxu @dg845