[2026.08.05] Added long-video inference with rolling attention sinks and window-relative RoPE.
[2026.08.04] 💡💡 Our recent work, LiveLight, has been accepted to TOG 2026. LiveLight focuses on real-time streaming video relighting with interactive control.
[2026.06.24] We released the inference and training code for LiveEdit, along with instructions for downloading and using the checkpoints on Hugging Face.
[2026.06.24] ⚡️⚡️ Our work, LiveEdit, has been accepted to ECCV 2026. LiveEdit is a diffusion-based framework for real-time streaming video editing.
🔍 Overview
LiveEdit is a diffusion-based framework for streaming video editing. Given a source video and a text editing instruction, LiveEdit performs causal chunk-by-chunk editing while preserving backgrounds and non-edited regions.
✨ Highlights
Real-time-oriented video editing with causal chunk-by-chunk inference.
Strong source preservation for backgrounds and non-edited regions.
Three-stage distillation from a bidirectional editing teacher to a streaming student.
AR-oriented Mask Cache for efficient region-aware computation reuse.
Built on Wan2.1 and the Self-Forcing codebase.
🛠 Getting Started
1. Clone the code and prepare the environment
We recommend Linux with NVIDIA GPUs. Single-GPU inference is supported; training scripts are written for multi-GPU torchrun.
Generate longer videos using a rolling local-attention window:
bash infer-local-ar-forcing-long.sh
By default, the script uses a 12-frame attention window consisting of 3 persistent sink frames and the 9 most recent frames. Window-relative RoPE rebases positional embeddings as the KV cache rolls.
SINK_SIZE must be smaller than LOCAL_ATTN_SIZE. Since the released checkpoint was trained on shorter sequences, visual quality may degrade when extrapolating far beyond its training horizon.
🚀 Efficient Inference with AR-Oriented Mask Cache
The AR-oriented Mask Cache in the paper is exposed through the token-pruning inference config and helper script. It reuses computation in unchanged regions and can optionally save mask visualizations.