Skip to content
/ QRSC Public

The implementation of ICCV 2023 paper: Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction

Notifications You must be signed in to change notification settings

DelinQu/QRSC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction

Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction
Delin Qu*, Yizhen Lao*, Zhigang Wang*, Dong Wang, Bin Zhao†, Xuelong Li†, ICCV 2023

This repository contains the code for the paper Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction, a geometry-based quadratic rolling shutter motion solver that precisely estimates the high-order correction field of individual pixels and a self-alignment 3D video architecture $RSA^2$-Net for high-quality frame aggregation and synthesis against extreme scene occlusion.

Update

  • Code for QRSC [2023-8-03]
  • Project Pages for Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction [2023-8-16]
  • Youtube video for Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction [2023-8-16]

Installation

  • Note 📢: We do not provide checkpoints due to the time schedule in the master branch, but you can find checkpoints and old version code in commit_e9a9.
  • Please follow the instructions below to install the repo and dependencies.
git clone https://github.com/DelinQu/QRSC.git
cd QRSC
pip install -r requirements.txt

Install the environment

# Create conda environment
conda create -n qrsc python=3.9.12
conda activate qrsc

# Install all the dependencies via pip
pip install -r requirements.txt

# Build extensions: LPIPS and package_core for evaluation
cd src/lib
bash install.sh

Install MMFlow

Please refer to the installation for optical flow support. After that, please download the RAFT and GMA model by:

mim download mmflow --config gma_plus-p_8x2_120k_mixed_368x768
mim download mmflow --config raft_8x2_100k_mixed_368x768

The model will be automatically downloaded at $HOME/.cache

Dataset

Plase follow DeepUnrollNet and BSRSC to download the Carla-RS, Fastec-RS and BSRSC datasets. The update the dataset configurations:

# @package data_loader
_target_: src.dataset.Carla.get_data_loaders
train_dir: path_to_carla_train
val_dir: path_to_carla_val
test_dir: path_to_carla_test
batch_size: ${batch_size}
seq_len: ${arch.n_inputs}
load_mask: true
training: true
shuffle: true
num_workers: ${n_cpu}
load_middle_gs: true

data_aug: 
  _target_: src.dataset.transforms.ToTensor

Evaluation

The script provides evaluation methods of all the three datasets. Before run the following code, please download the checkpoints to the checkpoint dir.

bash run_test.sh

Traning

We provides the training scripts on all the three datasets.

bash run_test.sh

Acknowledgement

We adapt codes from some awesome repositories, including BS-RSC, Video-Frame-Interpolation-Transformer and DeepUnrollNet. Thanks for making the code available.

This work is supported by the Shanghai AI Laboratory, National Key R&D Program of China (2022ZD0160100) and the National Natural Science Foundation of China (62106183 and 62102145).

Citation

If you find our code or paper useful for your research, please consider citing:

@InProceedings{Qu_2023_ICCV,
    author    = {Qu, Delin and Lao, Yizhen and Wang, Zhigang and Wang, Dong and Zhao, Bin and Li, Xuelong},
    title     = {Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2023},
    pages     = {10680-10688}
}

About

The implementation of ICCV 2023 paper: Towards Nonlinear-Motion-Aware and Occlusion-Robust Rolling Shutter Correction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages