Training-Free (Inversion-Free) methods meet WAN2.1-T2V🤗
Python
102
202 commits
updated Apr 6, 2026
Star🌟 is a great help in open source development!
Awesome Training-Free (Inversion-Free) methods meet WAN2.1-T2V.
I present WANAlign2.1⚡, an inversion-free video editing framework that combines the inversion-free editing method FlowAlign with WAN2.1. By integrating FlowAlign’s inversion-free sampling equation into WAN2.1, our approach preserves the intrinsic characteristics of the source video during editing.
To further enhance control, I introduce Decoupled Inversion-Free Sampling (DIFS), which leverages attention masking to independently adjust the editing strength between preserved and modified regions.
The previous methods frequently modified regions that should have been preserved, thereby degrading overall consistency. The WANAlign2.1⚡ achieves improved spatial-temporal consistency and enhanced text-guided editing performance through DIFS.
As shown in the Results, qualitative results demonstrate that our method is state-of-the-art.
| WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
|---|---|---|
| 75 seconds | 540 seconds | 150 seconds |
A100 80GB GPU
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A large brown bear ... ➡️ A large yellow bear ... | |||
| ... in a snowy field. ➡️ ... in the ocean. | |||
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A graceful sea turtle ... ➡️ A graceful seal ... | |||
| A large brown bear ... ➡️ A large tiger ... | |||
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A black swan ... ➡️ A silver statue swan carrying a turtle ... | |||
| A rabbit ... ➡️ A crochet rabbit ... | |||
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A white boat ... ➡️ A white boat on fire ... | |||
| ... ➡️ ... In the sky, a large eagle is flying forward. | |||
| A large brown bear ... ➡️ A large brown bear wearing a hat ... | |||
git clone https://github.com/KyujinHan/Awesome-Training-Free-WAN2.1-Editing.git
cd ./Awesome-Training-Free-WAN2.1-Editing
conda create -n wanalign python=3.10 -y
conda activate wanalign
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.1 -c pytorch -c nvidia
pip install matplotlib omegaconf imageio
pip install transformers==4.51.3 accelerate
pip install imageio[ffmpeg] ftfy
You must install provided diffusers library.
cd ./diffusers
pip install -e .
I used one A100 80GB GPU.
python awesome_wan_editing.py --config=[__config_yaml_path__]
# python awesome_wan_editing.py --config=./config/object_editing/bear_tiger.yaml
There are some config file examples.
In FlowAlign, there is zeta_scale.
If the value is high, it will be similar to the source video.
The bg_zeta_scale value is only activated when flag_attnmask is True.
If you want to visualize attention masking maps, please activate these code.
202 commits
Python
100.0%
Training-Free (Inversion-Free) methods meet WAN2.1-T2V🤗
Python
102
202 commits
updated Apr 6, 2026
Star🌟 is a great help in open source development!
Awesome Training-Free (Inversion-Free) methods meet WAN2.1-T2V.
I present WANAlign2.1⚡, an inversion-free video editing framework that combines the inversion-free editing method FlowAlign with WAN2.1. By integrating FlowAlign’s inversion-free sampling equation into WAN2.1, our approach preserves the intrinsic characteristics of the source video during editing.
To further enhance control, I introduce Decoupled Inversion-Free Sampling (DIFS), which leverages attention masking to independently adjust the editing strength between preserved and modified regions.
The previous methods frequently modified regions that should have been preserved, thereby degrading overall consistency. The WANAlign2.1⚡ achieves improved spatial-temporal consistency and enhanced text-guided editing performance through DIFS.
As shown in the Results, qualitative results demonstrate that our method is state-of-the-art.
| WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
|---|---|---|
| 75 seconds | 540 seconds | 150 seconds |
A100 80GB GPU
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A large brown bear ... ➡️ A large yellow bear ... | |||
| ... in a snowy field. ➡️ ... in the ocean. | |||
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A graceful sea turtle ... ➡️ A graceful seal ... | |||
| A large brown bear ... ➡️ A large tiger ... | |||
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A black swan ... ➡️ A silver statue swan carrying a turtle ... | |||
| A rabbit ... ➡️ A crochet rabbit ... | |||
| Input Video | WANAlign2.1⚡ | FlowDirector | WANEdit2.1 |
| A white boat ... ➡️ A white boat on fire ... | |||
| ... ➡️ ... In the sky, a large eagle is flying forward. | |||
| A large brown bear ... ➡️ A large brown bear wearing a hat ... | |||
git clone https://github.com/KyujinHan/Awesome-Training-Free-WAN2.1-Editing.git
cd ./Awesome-Training-Free-WAN2.1-Editing
conda create -n wanalign python=3.10 -y
conda activate wanalign
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.1 -c pytorch -c nvidia
pip install matplotlib omegaconf imageio
pip install transformers==4.51.3 accelerate
pip install imageio[ffmpeg] ftfy
You must install provided diffusers library.
cd ./diffusers
pip install -e .
I used one A100 80GB GPU.
python awesome_wan_editing.py --config=[__config_yaml_path__]
# python awesome_wan_editing.py --config=./config/object_editing/bear_tiger.yaml
There are some config file examples.
In FlowAlign, there is zeta_scale.
If the value is high, it will be similar to the source video.
The bg_zeta_scale value is only activated when flag_attnmask is True.
If you want to visualize attention masking maps, please activate these code.
202 commits
Python
100.0%