YingqianWang / LF-DAnet

[arXiv 2022] Learning a Degradation-Adaptive Network for Light Field Image Super-Resolution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LF-DAnet: Learning a Degradation-Adaptive Network for Light Field Image Super-Resolution


This is the PyTorch implementation of the method in our paper "Learning a Degradation-Adaptive Network for Light Field Image Super-Resolution". [project], [paper].

News and Updates:

  • 2022-06-21: Codes and models are released. Welcome to try our codes and report the bugs/mistakes you meet.
  • 2022-06-17: Website is online, on which we provided comparative videos and an interactive demo.
  • 2022-06-14: Paper is posted on arXiv. Codes are under final preparation and will be released soon.
  • 2022-05-25: Repository is created.

Demo Videos:

We show the SR results of our LF-DAnet on real LFs captured by Lytro Illum cameras. More examples are available here. Note that, these videos have been compressed, and the results shown below are inferior to the original outputs of our LF-DAnet.

ISO-Chart.mp4
General-11.mp4

Preparation:

1. Requirement:

  • PyTorch 1.3.0, torchvision 0.4.1. The code is tested with python=3.7, cuda=9.0.
  • Matlab for training/validation data generation.

2. Datasets:

  • We used the HCInew, HCIold and STFgantry datasets for training and validation. Please first download the aforementioned datasets via Baidu Drive (key:7nzy) or OneDrive, and place these datasets to the folder ../Datasets/.
  • We used the EPFL, INRIA and STFlytro datasets (which are developed by using Lytro cameras) to test the practical value of our method.

3. Generating training/validation data:

  • Run GenerateDataForTraining.m to generate training data. The generated data will be saved in ../Data/Train_MDSR_5x5/.
  • Please download the validation data via OneDrive and place these data to the folder ../Data/Validation_MDSR_5x5/.

Train:

  • Set the hyper-parameters in parse_args() if needed. We have provided our default settings in the realeased codes.
  • Run train.py to perform network training.
  • Checkpoint will be saved to ./log/.

Validation (synthetic degradation):

  • Run validation.py to perform validation on each dataset.
  • The metric scores will be printed on the screen.

Test on your own LFs:

  • Place the input LFs into ./input (see the attached examples).
  • Run test.py to perform SR.
  • The super-resolved LF images will be automatically saved to ./output.

Citiation

If you find this work helpful, please consider citing:

@Article{LF-DAnet,
    author    = {Wang, Yingqian and Liang, Zhengyu and Wang, Longguang and Yang, Jungang and An, Wei and Guo, Yulan},
    title     = {Learning a Degradation-Adaptive Network for Light Field Image Super-Resolution},
    journal   = {arXiv preprint arXiv:2206.06214}, 
    year      = {2022},   
}

Contact

Welcome to raise issues or email to wangyingqian16@nudt.edu.cn for any question regarding this work.

statistics

visitors

About

[arXiv 2022] Learning a Degradation-Adaptive Network for Light Field Image Super-Resolution


Languages

Language:Python 95.6%Language:MATLAB 4.4%