NUS-HPC-AI-Lab/Enhance-A-Video

Enhance-A-Video: Better Generated Video for Free

601

stars

19

commits

Python

primary language

Mar 17, 2025

updated

README

Enhance-A-Video

Paper | Blog | Twitter | Reddit

This repository is the official implementation of Enhance-A-Video: Better Generated Video for Free.

🎥 Demo

Wan2.1

HunyuanVideo

The video has been heavily compressed to GitHub's policy. For more demos, please visit our blog.

🔥🔥🔥News

🎉 Method

method

We design an Enhance Block as a parallel branch. This branch computes the average of non-diagonal elements of temporal attention maps as cross-frame intensity (CFI). An enhanced temperature parameter multiplies the CFI to enhance the temporal attention output.

🛠️ Dependencies and Installation

Install the dependencies:

conda create -n enhanceAvideo python=3.10
conda activate enhanceAvideo
pip install -r requirements.txt

📜 Requirements

The following table shows the requirements for running HunyuanVideo/CogVideoX model (batch size = 1) to generate videos:

ModelSetting
(height/width/frame)
Denoising stepGPU Memory Usage
Wan2.1480px832px81f5050GB
HunyuanVideo720px1280px129f5060GB
CogVideoX-2B480px720px49f5020GB

🧱 Inference

Generate videos:

python cogvideox.py
python hunyuanvideo.py
python wan.py

🔗 BibTeX

@misc{luo2025enhanceavideobettergeneratedvideo,
      title={Enhance-A-Video: Better Generated Video for Free}, 
      author={Yang Luo and Xuanlei Zhao and Mengzhao Chen and Kaipeng Zhang and Wenqi Shao and Kai Wang and Zhangyang Wang and Yang You},
      year={2025},
      eprint={2502.07508},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2502.07508}, 
}

Contributors

yangluo7

10 commits

oahzxl

8 commits

kaiwang960112

1 commits

NUS-HPC-AI-Lab/Enhance-A-Video

Enhance-A-Video: Better Generated Video for Free

601

stars

19

commits

Python

primary language

Mar 17, 2025

updated

README

Enhance-A-Video

Paper | Blog | Twitter | Reddit

This repository is the official implementation of Enhance-A-Video: Better Generated Video for Free.

🎥 Demo

Wan2.1

HunyuanVideo

The video has been heavily compressed to GitHub's policy. For more demos, please visit our blog.

🔥🔥🔥News

🎉 Method

method

We design an Enhance Block as a parallel branch. This branch computes the average of non-diagonal elements of temporal attention maps as cross-frame intensity (CFI). An enhanced temperature parameter multiplies the CFI to enhance the temporal attention output.

🛠️ Dependencies and Installation

Install the dependencies:

conda create -n enhanceAvideo python=3.10
conda activate enhanceAvideo
pip install -r requirements.txt

📜 Requirements

The following table shows the requirements for running HunyuanVideo/CogVideoX model (batch size = 1) to generate videos:

ModelSetting
(height/width/frame)
Denoising stepGPU Memory Usage
Wan2.1480px832px81f5050GB
HunyuanVideo720px1280px129f5060GB
CogVideoX-2B480px720px49f5020GB

🧱 Inference

Generate videos:

python cogvideox.py
python hunyuanvideo.py
python wan.py

🔗 BibTeX

@misc{luo2025enhanceavideobettergeneratedvideo,
      title={Enhance-A-Video: Better Generated Video for Free}, 
      author={Yang Luo and Xuanlei Zhao and Mengzhao Chen and Kaipeng Zhang and Wenqi Shao and Kai Wang and Zhangyang Wang and Yang You},
      year={2025},
      eprint={2502.07508},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2502.07508}, 
}

Contributors

yangluo7

10 commits

oahzxl

8 commits

kaiwang960112

1 commits

Languages

Python

100.0%