Views
No views yet


1git clone https://github.com/csbhr/Vivid-VR.git
2cd Vivid-VR1# create new conda env
2conda create -n Vivid-VR python=3.10
3conda activate Vivid-VR
4
5# install pytorch
6pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121
7
8# install python dependencies
9pip install -r requirements.txt
10
11# install easyocr [Optional, for text fix]
12pip install easyocr
13pip install numpy==1.26.4 # numpy2.x maybe installed when installing easyocr, which will cause conflictsmodeling_cogvlm.py with ./VRDiT/cogvlm2-llama3-caption/modeling_cogvlm.py to remove the dependency on pytorchvideo../ckpts folder.ckpts directory structure should be arranged as:├── ckpts
│ ├── CogVideoX1.5-5B
│ │ ├── ...
│ ├── cogvlm2-llama3-caption
│ │ ├── ...
│ ├── Vivid-VR
│ │ ├── controlnet
│ │ ├── config.json
│ │ ├── diffusion_pytorch_model.safetensors
│ │ ├── connectors.pt
│ │ ├── control_feat_proj.pt
│ │ ├── control_patch_embed.pt
│ ├── easyocr
│ │ ├── craft_mlt_25k.pth
│ │ ├── english_g2.pth
│ │ ├── zh_sim_g2.pth
│ ├── RealESRGAN
│ │ ├── RealESRGAN_x2plus.pth1python VRDiT/inference.py \
2 --ckpt_dir=./ckpts \
3 --cogvideox_ckpt_path=./ckpts/CogVideoX1.5-5B \
4 --cogvlm2_ckpt_path=./ckpts/cogvlm2-llama3-caption \
5 --input_dir=/dir/to/input/videos \
6 --output_dir=/dir/to/output/videos \
7 --num_temporal_process_frames=121 \ # For long video inference, if video longer than num_temporal_process_frames, aggregate sampling will be enabled in the temporal dimension
8 --upscale=0 \ # Optional, if set to 0, the short-size of output videos will be 1024
9 --textfix \ # Optional, if given, the text region will be replaced by the output of Real-ESRGAN
10 --save_images # Optional, if given, the video frames will be saved
11./VRDiT/inference.py. GPU memory usage is reduced to 25GB, but the inference time is longer.1@article{bai2025vividvr,
2 title={Vivid-VR: Distilling Concepts from Text-to-Video Diffusion Transformer for Photorealistic Video Restoration},
3 author={Bai, Haoran and Chen, Xiaoxu and Yang, Canqian and He, Zongyao and Deng, Sibin and Chen, Ying},
4 journal={arXiv preprint arXiv:2508.14483},
5 year={2025},
6 url={https://arxiv.org/abs/2508.14483}
7 }