Skip to content
Projets

À propos

[CVPR 2025🔥] Enhancing Video VAE by Wavelet-Driven Energy Flow for Latent Video Diffusion Model

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

WF-VAE: Enhancing Video VAE by Wavelet-Driven Energy Flow for Latent Video Diffusion Model

If you like our project, please give us a star ⭐ on GitHub for latest update.

hf arXiv License GitHub repo stars

📰 News

  • [2025.02.27] 🔥🔥🔥 WF-VAE has been accepted by CVPR 2025, and we will update arXiv with more details soon, keep tuned! We add a more standardized code in causalvideovae/model/vae/modeling_wfvae2.py.
  • [2024.11.27] 🔥🔥🔥 We have published our report, which provides comprehensive training details and includes additional experiments.
  • [2024.11.25] 🔥🔥🔥 We have released our 16-channel WF-VAE-L (316M) model along with the training code. Welcome to download it from Huggingface.
  • [2024.10.16] ⏰⏰⏰ We have released the 8-channel WF-VAE-S (146M) on Open-Sora Plan v1.3. ❗️It is important to emphasize that this version is a distilled form of OD-VAE (293M), so its use is not recommended.

😮 Highlights

WF-VAE utilizes a multi-level wavelet transform to construct an efficient energy pathway, enabling low-frequency information from video data to flow into latent representation. This method achieves competitive reconstruction performance while markedly reducing computational costs.

💡 Simpler Architecture, Faster Encoding

  • This architecture substantially improves speed and reduces training costs in large-scale video generation models and data processing workflows.

🔥 Competitive Reconstruction Performance with SOTA VAEs

  • Our experiments demonstrate competitive performance of our model against SOTA VAEs.

🚀 Main Results

Reconstruction

WF-VAE CogVideoX
WF-VAE CogVideoX

Generation

We use WF-VAE to pretrain on flow model, achieving good generation results.

Efficiency

We conduct efficiency tests at 33-frame videos using float32 precision on an H100 GPU. All models operated without block-wise inference strategies. Our model demonstrated performance comparable to state-of-the-art VAEs while significantly reducing encoding costs.

🛠️ Requirements and Installation

git clone https://github.com/PKU-YuanGroup/WF-VAE
cd WF-VAE
conda create -n wfvae python=3.10 -y
conda activate wfvae
pip install -r requirements.txt

🤖 Reconstructing Video or Image

Warning: Issue #9. Using tiling at specific frames can result in arifacts.

To reconstruct a video or an image, execute the following commands:

Video Reconstruction

CUDA_VISIBLE_DEVICES=1 python scripts/recon_single_video.py \
    --model_name WFVAE \
    --from_pretrained "Your VAE" \
    --video_path "Video Path" \
    --rec_path rec.mp4 \
    --device cuda \
    --sample_rate 1 \
    --num_frames 65 \
    --height 512 \
    --width 512 \
    --fps 30 \
    --enable_tiling

Image Reconstruction

CUDA_VISIBLE_DEVICES=1 python scripts/recon_single_image.py \
    --model_name WFVAE \
    --from_pretrained "Your VAE" \
    --image_path assets/gt_5544.jpg \
    --rec_path rec.jpg \
    --device cuda \
    --short_size 512 

For further guidance, refer to the example scripts: examples/rec_single_video.sh and examples/rec_single_image.sh.

🗝️ Training & Validating

The training & validating instruction is in TRAIN_AND_VALIDATE.md.

👍 Acknowledgement

✏️ Citation

@misc{li2024wfvaeenhancingvideovae,
      title={WF-VAE: Enhancing Video VAE by Wavelet-Driven Energy Flow for Latent Video Diffusion Model}, 
      author={Zongjian Li and Bin Lin and Yang Ye and Liuhan Chen and Xinhua Cheng and Shenghai Yuan and Li Yuan},
      year={2024},
      eprint={2411.17459},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2411.17459}, 
}

🔒 License

This project is released under the Apache 2.0 license as found in the LICENSE file.

Explorer des projets similaires

Chargement…