PI2RNet is used for image restoration of unfolded panoramic images taken from Panoramic Annular Lens (PAL) composed of few lenses, which is degraded by optical aberrations and unfolding process.
Paper (IEEE-TCI): https://ieeexplore.ieee.org/document/10021856?source=authoralert
Introduction of our work: We design a framework to capture clear panoramic images through simple lens.
The implementation of our work is based on BasicSR, which is an open source toolbox for image/video restoration tasks.
python 3.8.15
pytorch 1.8.1
cuda 11.1
conda create -n ACI python=3.8
conda activate ACI
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
python setup.py develop --no_cuda_ext
PYTHONPATH="./:${PYTHONPATH}" CUDA_VISIBLE_DEVICES=0 python basicsr/demo.py -opt options/demo/demo.yml
The input image and related physical information can be found in ./demo/Input while the restored results will be generated in ./demo/Output.
-
prepare data
- We have simulated the degraded imaging results of our chosen PAL system and produce the DIVPano datasets. As a novel model for restoration of aberration images, PI2RNet can also be applied for other optical lenses with different aberrations distributions. If you want to use PI2RNet for other optical systems, the physical information and datasets should be re-constructed based on simulation pipeline. We welcome readers who are interested in the simulation pipeline to discuss with us, but the related codes are not available here.
- If you want to use DIVPano for experiments, please contact us for the access to it.
-
eval
PYTHONPATH="./:${PYTHONPATH}" CUDA_VISIBLE_DEVICES=0 python basicsr/test.py -opt options/test/DIVPano/PI2RNet.yml
-
train
PYTHONPATH="./:${PYTHONPATH}" CUDA_VISIBLE_DEVICES=0 python basicsr/train.py -opt options/train/DIVPano/PI2RNet.yml
PI2RNet has set new state of the art in image restoration of unfolded PAL images both quantitatively and qualitatively.
This project is under the MIT license, and it is based on BasicSR which is under the Apache 2.0 license.
If ACI-PI2RNet helps your research or work, please consider citing ACI-PI2RNet.
@ARTICLE{10021856,
author={Jiang, Qi and Shi, Hao and Sun, Lei and Gao, Shaohua and Yang, Kailun and Wang, Kaiwei},
journal={IEEE Transactions on Computational Imaging},
title={Annular Computational Imaging: Capture Clear Panoramic Images Through Simple Lens},
year={2022},
volume={8},
number={},
pages={1250-1264},
doi={10.1109/TCI.2022.3233467}}
If you have any questions, please contact [email protected].