# 1. Clone the repository and create a conda environment:
git clone https://github.com/yyang181/CoDiVSR.git
cd CoDiVSR
conda create -n codivsr python=3.10 -y
conda activate codivsr
# 2. Install PyTorch. We recommend PyTorch 2.5.1 with CUDA 12.4:
pip3 install torch==2.5.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
# 3. Install other requirements:
pip install -r requirements.txt
pip install modelscope
# Pre-trained CogVideoX1.5-5B-I2V
modelscope download ZhipuAI/CogVideoX1.5-5B-I2V --local_dir ./checkpoints/CogVideoX1.5-5B-I2V
# CoDiVSR checkpoints
modelscope download yyang181/CoDiVSR --local_dir ./checkpoints/codivsr/transformer
The inference code has been tested on:
We use PLLaVa-13B to extract captions.
# NTIRE 2026 SUGC-VR
CUDA_VISIBLE_DEVICES=0 python inference.py \
--input_dir data/input \
--input_json data/csv/input_text.csv \
--output_path data/output/codivsr \
--model_path checkpoints/codivsr \
--is_vae_st \
--save_format yuv420p \
--upscale 1 \
--load_skipconv1d \
--use_low_pass_guidance \
--enable_midresidual
This project builds upon several excellent open-source projects:
We thank the authors and contributors of these projects for their valuable contributions to the open-source community!
8 commits
Python
100.0%
# 1. Clone the repository and create a conda environment:
git clone https://github.com/yyang181/CoDiVSR.git
cd CoDiVSR
conda create -n codivsr python=3.10 -y
conda activate codivsr
# 2. Install PyTorch. We recommend PyTorch 2.5.1 with CUDA 12.4:
pip3 install torch==2.5.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
# 3. Install other requirements:
pip install -r requirements.txt
pip install modelscope
# Pre-trained CogVideoX1.5-5B-I2V
modelscope download ZhipuAI/CogVideoX1.5-5B-I2V --local_dir ./checkpoints/CogVideoX1.5-5B-I2V
# CoDiVSR checkpoints
modelscope download yyang181/CoDiVSR --local_dir ./checkpoints/codivsr/transformer
The inference code has been tested on:
We use PLLaVa-13B to extract captions.
# NTIRE 2026 SUGC-VR
CUDA_VISIBLE_DEVICES=0 python inference.py \
--input_dir data/input \
--input_json data/csv/input_text.csv \
--output_path data/output/codivsr \
--model_path checkpoints/codivsr \
--is_vae_st \
--save_format yuv420p \
--upscale 1 \
--load_skipconv1d \
--use_low_pass_guidance \
--enable_midresidual
This project builds upon several excellent open-source projects:
We thank the authors and contributors of these projects for their valuable contributions to the open-source community!
8 commits
Python
100.0%