Please download the pretrained model to checkpoints, then modify the test_model with your download model name. You should add your test videos and edited instruction like provided in data/test_list.txt. Then run the following command:
Then generate the instruction using the code provided in InstructPix2pix and generate the editing videos using CoDeF.
Bibtex
Please cite this paper if you find the code is useful for your research:
@misc{zhang2024effived,
title={EffiVED:Efficient Video Editing via Text-instruction Diffusion Models},
author={Zhenghao Zhang and Zuozhuo Dai and Long Qin and Weizhi Wang},
year={2024},
eprint={2403.11568},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
EffiVED:Efficient Video Editing via Text-instruction Diffusion Models
Arxiv Link: https://arxiv.org/abs/2403.11568
News
2024.6.5: Release the inference code
To Do List
Release the training dataset and code
Getting Started
This repository is based on I2VGen-XL.
Create Conda Environment (Optional)
It is recommended to install Anaconda.
Windows Installation: https://docs.anaconda.com/anaconda/install/windows/
Linux Installation: https://docs.anaconda.com/anaconda/install/linux/
Python Requirements
Running inference
Please download the pretrained model to checkpoints, then modify the test_model with your download model name. You should add your test videos and edited instruction like provided in data/test_list.txt. Then run the following command:
Training
Obtaining data from image editing datasets.
You can run the following command to generate the video editing pairs:
Here we provide a demo to generate the data from MagicBrush. You can download this dataset following this MagicBrush.
Obtaining data from narrow videos.
You can automatically caption the videos using the Video-BLIP2-Preprocessor Script and set the dataset_types and json_path like this:
Then generate the instruction using the code provided in InstructPix2pix and generate the editing videos using CoDeF.
Bibtex
Please cite this paper if you find the code is useful for your research:
Shoutouts