Code Monkey home page Code Monkey logo

lfasr-elfr's Introduction

LFASR-ELFR

This project provides the code for 'Enhanced Light Field Reconstruction by Combining Disparity and Texture Information in PSVs via Disparity-Guided Fusion', IEEE TCI, 2023. paper link

Framework Overview

Note: The explicit-depth-based and implicit-depth-based pipelines adopt the basic structure of GA-Net and MALFRNet (w/o their refinement), respectively.

Requirements

  • Python=3.7
  • PyTorch=1.8.0
  • scikit-image=0.14.2
  • Matlab (for .h5 file generation)

Dataset

  1. Download the TrainingSet (code: 3f2x) and TestSet (code: 6c31) and put them under './LFData/' folder.
  2. Run PrepareData_xxx.m to generate .h5 file for training and test.
  3. Or directly download our generated .h5 file (code: sgca).

Training

model_HCI for synthetic datasets, 2x2→7x7 interpolation

python train_HCI.py --train_dataset HCI --disp_range 4 --num_planes 50 --angular_in 2 --angular_out 7 --epoch 50000 --learning_rate 1e-4 --decay_rate 0.5 --decay_epoch 5000 --batch_size 1 --patch_size 64

model_SIG for real-world datasets, 2x2→7x7 interpolation

python train.py --train_dataset SIG --disp_range 1.5 --num_planes 32 --angular_in 2 --angular_out 7 --epoch 10000 --learning_rate 1e-4 --decay_rate 0.5 --decay_epoch 1000 --batch_size 1 --patch_size 64

The training curve for disp_thres appears like:

Test using pre-trained model

Synthetic datasets (HCI, HCI old and Inria DLFD), 2x2→7x7 interpolation

python test_HCI.py --model_dir pretrained_model --train_dataset HCI --disp_range 4 --num_planes 50 --angular_in 2 --angular_out 7 --input_ind 0 6 42 48 --crop 1

Real-world datasets (30scenes, occlusions and reflective), 2x2→7x7 interpolation

python test.py --model_dir pretrained_model --train_dataset SIG --disp_range 1.5 --num_planes 32 --angular_in 2 --angular_out 7 --input_ind 0 6 42 48 --crop 0

Performance

Our performance under the 2x2→7x7 interpolation task:

Citation

@ARTICLE{LFASR-ELFR,  
  title={Enhanced Light Field Reconstruction by Combining Disparity and Texture Information in PSVs via Disparity-Guided Fusion},
  author={Yilei Chen and Xinpeng Huang and Ping An and Qiang Wu},
  journal={IEEE Transactions on Computational Imaging},
  year={2023},
  volume={9},
  pages={665-677},
  month={Jul.}}            

Any questions regarding this work can contact [email protected].

lfasr-elfr's People

Contributors

gilbertrc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

liufaguo

lfasr-elfr's Issues

The results of Extra. 1 task.

Hi GilbertRC,
After replacing --input_ind 0 6 42 48 with --input_ind 8 12 36 40 in test_HCI.py, I did not get the results of Extra. 1 shown in the paper.
Are there any other modifications I should do to achieve the results reported in the paper?

Below is the output of HCI Extra. 1:
LFI,psnr Y,ssim Y
0,39.4963407211571,0.9595029273990493
1,32.0238825467615,0.9322727299913178
2,34.23968230354304,0.9294495023165589
3,37.044423086288035,0.9722200084303851
summary,psnr Y,ssim Y
avg,35.70108216443742,0.9483612920343278

Thanks.

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.