Views
No views yet

📊 Official VAEFeatures: Highest Quality ⭐⭐⭐⭐⭐
✅ Best reconstruction accuracy
✅ Complete detail preservation ❌ Large memory usage (~8-12 GB) ❌ Slow inference speed |
🚀 Open Source TAE SeriesFeatures: Fastest Speed ⚡⚡⚡⚡⚡
✅ Minimal memory usage (~0.4 GB)
✅ Extremely fast inference ❌ Average quality ⭐⭐⭐ ❌ Potential detail loss |
🎯 LightVAE Series (Our Optimization)Features: Best Balanced Solution ⚖️
✅ Uses Causal 3D Conv (same as official)
✅ Quality close to official ⭐⭐⭐⭐ ✅ Memory reduced by ~50% (~4-5 GB) ✅ Speed increased by 2-3x ✅ Balances quality, speed, and memory 🏆 |
⚡ LightTAE Series (Our Optimization)Features: Fast Speed + Good Quality 🏆
✅ Minimal memory usage (~0.4 GB)
✅ Extremely fast inference ✅ Quality close to official ⭐⭐⭐⭐ ✅ Significantly surpasses open source TAE |
| Model Name | Type | Architecture | Description |
|---|---|---|---|
Wan2.1_VAE | Official VAE | Causal Conv3D | Wan2.1 official video VAE model Highest quality, large memory, slow speed |
taew2_1 | Open Source Small AE | Conv2D | Open source model based on taeHV Small memory, fast speed, average quality |
lighttaew2_1 | LightTAE Series | Conv2D | Our distilled optimized version based on taew2_1Small memory, fast speed, quality close to official ✨ |
lightvaew2_1 | LightVAE Series | Causal Conv3D | Our pruned 75% on WanVAE2.1 architecture then trained+distilled Best balance: high quality + low memory + fast speed 🏆 |
| Model Name | Type | Architecture | Description |
|---|---|---|---|
Wan2.2_VAE | Official VAE | Causal Conv3D | Wan2.2 official video VAE model Highest quality, large memory, slow speed |
taew2_2 | Open Source Small AE | Conv2D | Open source model based on taeHV Small memory, fast speed, average quality |
lighttaew2_2 | LightTAE Series | Conv2D | Our distilled optimized version based on taew2_2Small memory, fast speed, quality close to official ✨ |
| Speed | Wan2.1_VAE | taew2_1 | lighttaew2_1 | lightvaew2_1 |
|---|---|---|---|---|
| Encode Speed | 4.1721 s | 0.3956 s | 0.3956 s | 1.5014s |
| Decode Speed | 5.4649 s | 0.2463 s | 0.2463 s | 2.0697s |
| GPU Memory | Wan2.1_VAE | taew2_1 | lighttaew2_1 | lightvaew2_1 |
|---|---|---|---|---|
| Encode Memory | 8.4954 GB | 0.00858 GB | 0.00858 GB | 4.7631 GB |
| Decode Memory | 10.1287 GB | 0.41199 GB | 0.41199 GB | 5.5673 GB |
|
Wan2.1_VAE |
taew2_1 |
lighttaew2_1 |
lightvaew2_1 |
| Speed | Wan2.2_VAE | taew2_2 | lighttaew2_2 |
|---|---|---|---|
| Encode Speed | 1.1369s | 0.3499 s | 0.3499 s |
| Decode Speed | 3.1268 s | 0.0891 s | 0.0891 s |
| GPU Memory | Wan2.2_VAE | taew2_2 | lighttaew2_2 |
|---|---|---|---|
| Encode Memory | 6.1991 GB | 0.0064 GB | 0.0064 GB |
| Decode Memory | 12.3487 GB | 0.4120 GB | 0.4120 GB |
|
Wan2.2_VAE |
taew2_2 |
lighttaew2_2 |
🏆 Pursuing Best QualityRecommended:
Wan2.1_VAE / Wan2.2_VAE
|
⚖️ Best Balance 🏆Recommended:
lightvaew2_1
Use Cases: Daily production, strongly recommended ⭐
|
⚡ Speed + Quality Balance ✨Recommended:
lighttaew2_1 / lighttaew2_2
Use Cases: Development testing, rapid iteration
|
| Comparison | Open Source TAE | LightTAE (Ours) | Official VAE | LightVAE (Ours) |
|---|---|---|---|---|
| Architecture | Conv2D | Conv2D | Causal Conv3D | Causal Conv3D |
| Memory Usage | Minimal (~0.4 GB) | Minimal (~0.4 GB) | Large (~8-12 GB) | Medium (~4-5 GB) |
| Inference Speed | Extremely Fast ⚡⚡⚡⚡⚡ | Extremely Fast ⚡⚡⚡⚡⚡ | Slow ⚡⚡ | Fast ⚡⚡⚡⚡ |
| Generation Quality | Average ⭐⭐⭐ | Close to Official ⭐⭐⭐⭐ | Highest ⭐⭐⭐⭐⭐ | Close to Official ⭐⭐⭐⭐ |
1# Download Wan2.1 official VAE
2huggingface-cli download lightx2v/Autoencoders \
3 --local-dir ./models/vae/vid_recon.py to test VAE models independently. This script reads a video, encodes it through VAE, then decodes it back to verify the reconstruction quality.LightX2V/lightx2v/models/video_encoders/hf/vid_recon.py1git clone https://github.com/ModelTC/LightX2V.git
2cd LightX2V1python -m lightx2v.models.video_encoders.hf.vid_recon \
2 input_video.mp4 \
3 --checkpoint ./models/vae/Wan2.1_VAE.pth \
4 --model_type vaew2_1 \
5 --device cuda \
6 --dtype bfloat161python -m lightx2v.models.video_encoders.hf.vid_recon \
2 input_video.mp4 \
3 --checkpoint ./models/vae/Wan2.2_VAE.pth \
4 --model_type vaew2_2 \
5 --device cuda \
6 --dtype bfloat161python -m lightx2v.models.video_encoders.hf.vid_recon \
2 input_video.mp4 \
3 --checkpoint ./models/vae/lighttaew2_1.pth \
4 --model_type taew2_1 \
5 --device cuda \
6 --dtype bfloat161python -m lightx2v.models.video_encoders.hf.vid_recon \
2 input_video.mp4 \
3 --checkpoint ./models/vae/lighttaew2_2.pth \
4 --model_type taew2_2 \
5 --device cuda \
6 --dtype bfloat161python -m lightx2v.models.video_encoders.hf.vid_recon \
2 input_video.mp4 \
3 --checkpoint ./models/vae/lightvaew2_1.pth \
4 --model_type vaew2_1 \
5 --device cuda \
6 --dtype bfloat16 \
7 --use_lightvae1python -m lightx2v.models.video_encoders.hf.vid_recon \
2 input_video.mp4 \
3 --checkpoint ./models/vae/taew2_1.pth \
4 --model_type taew2_1 \
5 --device cuda \
6 --dtype bfloat161python -m lightx2v.models.video_encoders.hf.vid_recon \
2 input_video.mp4 \
3 --checkpoint ./models/vae/taew2_2.pth \
4 --model_type taew2_1 \
5 --device cuda \
6 --dtype bfloat161{
2
3 "vae_path": "./models/vae/Wan2.1_VAE.pth"
4}1{
2 "use_lightvae": true,
3 "vae_path": "./models/vae/lightvaew2_1.pth"
4}1{
2 "use_tae": true,
3 "need_scaled": true,
4 "tae_path": "./models/vae/lighttaew2_1.pth"
5}1{
2 "use_tae": true,
3 "tae_path": "./models/vae/taew2_1.pth"
4}1cd LightX2V/scripts
2bash wan/run_wan_i2v.sh # or other inference scripts