The official implementation of paper "Joint Upsampling for Refocusing Light Fields Derived With Hybrid Lenses". You can visit our paper in link
CPU: Intel(R) Core(TM) i7-8700K
GPU: GTX 1080
RAM: 8G*2 2666
torchvision==0.7.0+cu101
torch==1.6.0+cu101
opencv_python==4.4.0.46
numpy==1.18.5
scikit_image==0.18.1
Pillow==8.1.1
skimage==0.0
The raw Lytro Dataset can be downloaded from Google Drive. You can use Lytro Desktop to refocus the raw lytro photos. Our dataset contains scenes with thin structures and rich textures (see below), which are difficult for refocused image upsampling.
Input (GT) in Training Dataset | Guidance (GT) in Training Dataset |
Input (GT) in Testing Dataset | Guidance (GT) in Testing Dataset |
Input (GT) in Additional Dataset | Guidance (GT) in Additional Dataset |
The pretrained model is already uploaded in repo, ./Model/LFN.pth
Customize the trainConfig
in train.py
and run it
python train.py
Customize the evalPngConfig
in test.py
and run it
python test.py
In test.py
, you can use testAllInOne
to test x2/x4/x8 for both shallow & deep testing dataset at one time. Or use evalPng
to test the selected scale.
If you have any question, please leave an issue.
@ARTICLE{10064040,
author={Yang, Yang and Wu, Lianxiong and Zeng, Lanling and Yan, Tao and Zhan, Yongzhao},
journal={IEEE Transactions on Instrumentation and Measurement},
title={Joint Upsampling for Refocusing Light Fields Derived With Hybrid Lenses},
year={2023},
volume={72},
number={},
pages={1-12},
doi={10.1109/TIM.2023.3253880}}