Skip to content

PyTorch implementation of ICCV 2021 paper: "Learning Dynamic Interpolation for Extremely Sparse Light Fields with Wide Baselines"

Notifications You must be signed in to change notification settings

MantangGuo/DI4SLF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DI4SLF

PyTorch implementation of ICCV 2021 paper: "Learning Dynamic Interpolation for Extremely Sparse Light Fields with Wide Baselines"

Requrements

  • Python 3.7.4
  • Pytorch 1.6.0

Train and Test

Data

We provide MATLAB code for preparing the training and test data in the folder ./LFData. We estimate the optical flow of source views using a pre-trained optical-flow model provided by RAFT. Before generating the training and testing datasets, please first put the estimated optical flow of source views in the folder ./LFData/flow_source in the .mat format with the shape [num_lf, an_h, an_w, h, w], where num_lf, [an_h, an_w], [h, w] are the number, angular resolutions, and spatial resolutions of sparse lfs, respectively. Our training dataset can be downloaded from here, and the testing dataset can be downloaded from here.

Test

The testing codes are in the folder ./test

  • model: the trained model which is in this subfolder;
  • Inference:
python lfr_test.py

Train

The testing codes are in the folder ./train

  • Training:
python lfr_train.py

About

PyTorch implementation of ICCV 2021 paper: "Learning Dynamic Interpolation for Extremely Sparse Light Fields with Wide Baselines"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published