Skip to content
mdswyzPublic

About

An official implementation of "Edit Temporal-Consistent Videos with Image Diffusion Model" in PyTorch. (ACM TOMM 2024)

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

This repository is the official implementation of TCVE.

Prerequisites

Requirements

pip install -r requirements.txt

Installing xformers is highly recommended for more efficiency and speed on GPUs. To enable xformers, set enable_xformers_memory_efficient_attention=True (default). Please make sure at least 24G GPU memory is available.

Downloading pretrained Stable Diffusion Model

The pretrained Stable Diffusion models can be downloaded from Hugging Face (e.g., Stable Diffusion v1-4). The downloaded model should be placed in the ./checkpoints.

Usage

To edit videos by our TCVE, please run this command:

accelerate launch video_editing.py --config="configs/surfer-on-wave.yaml"

And, the results including well-trained models and edited videos (i.e., ./samples) are saved in ./output.

Citation

If you find the code helpful in your research or work, please cite the following paper.

@article{TCVE,
	author = {Wang, Yuanzhi and Li, Yong and Zhang, Xiaoya and Liu, Xin and Dai, Anbo and Chan, Antoni B. and Cui, Zhen},
	title = {Edit Temporal-Consistent Videos with Image Diffusion Model},
	journal = {ACM Transactions on Multimedia Computing, Communications, and Applications}
  	year = {2024}
}

About

An official implementation of "Edit Temporal-Consistent Videos with Image Diffusion Model" in PyTorch. (ACM TOMM 2024)

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages