UniVid: Unifying Vision Tasks with Pre-trained Video Generation Models
Lan Chen, Yuchao Gu and Qi Mao
MIPG, Communication University of China; Show Lab, National University of Singapore
git clone https://github.com/CUC-MIPG/UniVid.git
cd Univid
conda create -n Univid python=3.11
conda activate Unividpip install requirements.txtWe use the open-source DiffSynth-Studio codebase to train UniVid. Please merge the diffSynth folder from this repository into the corresponding folder in DiffSynth-Studio.
Then, run:
pip install -e .
We provide an example dataset of camera movement task.
Each video contains four clips arranged in the order
Make sure the folder structure follows:
data/
train/
camera_movement/
metadata.csv
train/
To prepare your customized data, please ensure that each clip has exactly
Run the script data_process.sh to preprocess the dataset.
Run the script train.sh to start training.
An example UniVid model for the camera movement task can be downloaded from this link
Run the script inference.sh for inference.
@article{chen2025univid,
title={UniVid: Unifying Vision Tasks with Pre-trained Video Generation Models},
author={Chen, Lan and Gu, Yuchao and Mao, Qi},
journal={arXiv preprint arXiv:2509.21760},
year={2025}
}

