Code Monkey home page Code Monkey logo

ddrnet's Introduction

[AAAI 2024] DDRNet

This is the official PyTorch implementation of the paper Decoupling Degradations with Recurrent Network for Video Restoration in Under-Display Camera.

Contents

Introduction

Contribution

  • We propose a novel network with long- and short-term video representation learning by decoupling video degradations for the UDC video restoration task (D$^2$RNet), which is the first work to address UDC video degradation. The core decoupling attention module (DAM) enables a tailored solution to the degradation caused by different incident light intensities in the video.
  • We propose a large-scale UDC video restoration dataset (VidUDC33K), which includes numerous challenging scenarios. To the best of our knowledge, this is the first dataset for UDC video restoration.
  • Extensive quantitative and qualitative evaluations demonstrate the superiority of D$^2$RNet. In the proposed VidUDC33K dataset, D$^2$RNet gains 1.02db PSNR improvements more than other restoration methods.

Overview

Visual

Dataset

  1. Download the original HDR video and real video from google drive and baidu drive(4k84) under ./dataset.
  2. Unzip the original HDR video and real video.
cd ./dataset
unzip Video.zip
unzip Real_Video.zip
  1. Generate the sequences for training and testing based on synthvideo_meta.txt and ZTE_new_psf_5.npy, run
python generate_synthvideo.py

The principle of obtaining synthetic dataset is as follows:

  1. Generate the sequences for real scenario validation based on realvideo_meta.txt, run
python generate_realdata.py
  1. Make VidUDC33K structure be:
        ├────dataset
                ├────VidUDC33K
                        ├────Input
                                ├────000
                                        ├────000.npy
                                        ├────...
                                        ├────049.npy
                                ├────001
                                ├────...
                                ├────676
                        ├────GT
                                ├────000
                                        ├────000.npy
                                        ├────...
                                        ├────049.npy
                                ├────001
                                ├────...
                                ├────676
                ├────VidUDC33K_real
                        ├────Input
                                ├────000
                                        ├────000.npy
                                        ├────...
                                        ├────049.npy
                                ├────001
                                ├────...
                                ├────009
                        ├────GT
                                ├────000
                                        ├────000.npy
                                        ├────...
                                        ├────049.npy
                                ├────001
                                ├────...
                                ├────009
                ├────synthvideo_meta.txt
                ├────realvideo_meta.txt
                ├────ZTE_new_psf_5.npy

The distribution of the dataset is as follows:

Test

  1. Clone this github repo
git clone https://github.com/ChengxuLiu/DDRNet.git
cd DDRNet
  1. Prepare testing dataset and modify "folder_lq" and "folder_lq" in ./test.py
  2. Run test
python test.py --save_result
  1. The result are saved in ./results

Train

  1. Clone this github repo
git clone https://github.com/ChengxuLiu/DDRNet.git
cd DDRNet
  1. Prepare training dataset and modify "dataroot_gt" and "dataroot_lq" in ./options/DDRNet/train_DDRNet.json
  2. Run training
python train.py --opt ./options/DDRNet/train_DDRNet.json
or
python -m torch.distributed.launch --nproc_per_node=4 --master_port=23333 train.py --opt ./options/DDRNet/train_DDRNet.json --dist True
  1. The models are saved in ./experiments

Results

The output results on VidUDC33K testing set can be downloaded from google drive and baidu drive(4k84).

Citation

If you find the code and pre-trained models useful for your research, please consider citing our paper. 😊

@inproceedings{liu2024decoupling, 
    title = {Decoupling Degradations with Recurrent Network for Video Restoration in Under-Display Camera},
    author = {Liu, Chengxu and Wang, Xuan and Fan, Yuanting Fan and Li, Shuai and Qian, Xueming}, 
    booktitle = {Proceedings of the 38th AAAI Conference on Artificial Intelligence}, 
    year = {2024}
    }

Contact

If you meet any problems, please describe them in issues or contact:

Acknowledgement

The code of DDRNet is built upon RVRT, DISCNet, and MMagic, and we express our gratitude to these awesome projects.

ddrnet's People

Contributors

chengxuliu avatar

Stargazers

 avatar Yutong Wang avatar 火花骑士 avatar Jiping Jin avatar An-zhi WANG avatar Jisoo Kim avatar Yuanting Fan avatar kunkun avatar Shuang Song avatar  avatar

Watchers

 avatar

Forkers

ip-dehaze

ddrnet's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.