Recurrent Spike-based Image Restoration under General Illumination (ACM MM 2023)
RSIR is a fully supervised learning algorithm based on noise modeling and data synthesis for spike camera. It is used for reconstructing clean images from high-density spike stream captured under different lighting conditions.
This is an official implementation of RSIR with Pytorch.
python=3.7
pytorch=1.13.1
cuda=11.1
opencv-python=4.7.0.68
timm (for Swin Transformer)
tqdm
matplotlib
tensorboardX
For test our model directly, please download checkpoint and data form the Google Drive first.
Then run test.py
after making sure all from the config.py
are correct.
If you want to retrain our model to adjust your own camera, please calibrate three uniform light first, following the details of our paper.
Then run data_generation.py
to synthesize the spike data and run train.py
after making sure all from the config.py
are correct.
You can retrain NIM module for the best performace or just use nim.pt
with new cal_para
function.
This implementations are inspired by following projects:
- [EMVD] (https://github.com/Baymax-chen/EMVD)
- [Swin-Transformer] (https://github.com/microsoft/Swin-Transformer)