Skip to content

Codes for MM 2023 paper "Recurrent Spike-based Image Restoration under General Illumination"

Notifications You must be signed in to change notification settings

BIT-Vision/RSIR

Repository files navigation

RSIR

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 $D_{dark}$, $Q_r$ and $R$ calculated by cal_para function.

Acknowledgement

This implementations are inspired by following projects:

About

Codes for MM 2023 paper "Recurrent Spike-based Image Restoration under General Illumination"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages