RSIR
May 22, 2024 · View on GitHub
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.
Requirements
python=3.7
pytorch=1.13.1
cuda=11.1
opencv-python=4.7.0.68
timm (for Swin Transformer)
tqdm
matplotlib
tensorboardX
Usage
test
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.
train
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 , and calculated by cal_para function.
Acknowledgement
This implementations are inspired by following projects:
- [EMVD] (https://github.com/Baymax-chen/EMVD)
- [Swin-Transformer] (https://github.com/microsoft/Swin-Transformer)