yyang181/Vivid-VR

for ntire 2026

0

stars

0

commits

Python

primary language

Mar 22, 2026

updated

README

NTIRE 2026 SUGC-VR Challenge - Vivid-VR Solution

This repository contains the solution for the NTIRE 2026 SUGC-VR Challenge.

πŸ”§ Dependencies and Installation

  1. Create Conda Environment and Install Dependencies

    # create new conda env
    conda create -n Vivid-VR python=3.10
    conda activate Vivid-VR
    
    # install pytorch
    pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121
    
    # install python dependencies
    pip install -r requirements.txt
    
    # install easyocr [Optional, for text fix]
    pip install easyocr
    pip install numpy==1.26.4  # numpy2.x maybe installed when installing easyocr, which will cause conflicts
    
  2. Download Models

    The 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.pth
    

β˜•οΈ Inference

Run the following commands to reproduce the results:

### NTIRE 2026 SUGC-VR final test
CUDA_VISIBLE_DEVICES=0 TORCH_CUDNN_SDPA_ENABLED=0 python VRDiT/inference_new.py --ckpt_dir=./ckpts --cogvideox_ckpt_path=./ckpts/CogVideoX1.5-5B --cogvlm2_ckpt_path=./ckpts/cogvlm2-llama3-caption --input_dir=data/input  --output_dir=data/output/vividvr --upscale=1 --textfix --num_temporal_process_frames 121 --gpu_rank 0 --gpu_num 1 --align_spatial

yyang181/Vivid-VR

for ntire 2026

0

stars

0

commits

Python

primary language

Mar 22, 2026

updated

README

NTIRE 2026 SUGC-VR Challenge - Vivid-VR Solution

This repository contains the solution for the NTIRE 2026 SUGC-VR Challenge.

πŸ”§ Dependencies and Installation

  1. Create Conda Environment and Install Dependencies

    # create new conda env
    conda create -n Vivid-VR python=3.10
    conda activate Vivid-VR
    
    # install pytorch
    pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121
    
    # install python dependencies
    pip install -r requirements.txt
    
    # install easyocr [Optional, for text fix]
    pip install easyocr
    pip install numpy==1.26.4  # numpy2.x maybe installed when installing easyocr, which will cause conflicts
    
  2. Download Models

    The 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.pth
    

β˜•οΈ Inference

Run the following commands to reproduce the results:

### NTIRE 2026 SUGC-VR final test
CUDA_VISIBLE_DEVICES=0 TORCH_CUDNN_SDPA_ENABLED=0 python VRDiT/inference_new.py --ckpt_dir=./ckpts --cogvideox_ckpt_path=./ckpts/CogVideoX1.5-5B --cogvlm2_ckpt_path=./ckpts/cogvlm2-llama3-caption --input_dir=data/input  --output_dir=data/output/vividvr --upscale=1 --textfix --num_temporal_process_frames 121 --gpu_rank 0 --gpu_num 1 --align_spatial

Languages

Python

100.0%