This repository contains the official source code for our paper:
Spk2ImgNet: Learning to Reconstruct Dynamic Scene from Continuous Spike Stream. CVPR 2021
Paper:
Spk2ImgNet-CVPR2021
You will have to choose cudatoolkit version to match your compute environment. The code is tested on PyTorch 1.10.2+cu113 and spatial-correlation-sampler 0.3.0 but other versions might also work.
conda create -n steflow python==3.9
conda activate steflow
conda install pytorch torchvision cudatoolkit=11.3 -c pytorch
pip3 install matplotlib opencv-python h5py
We don't ensure that all the PyTorch versions can work well.
The pretrained model can be downloaded in the Google Drive link below
You can download the pretrained models to ./ckpt
The training data can be downloaded in the Google Drive link below
You can set the data path in the .py files or through argparser (--data)
python3 main_steflow_dt1.py \
--test_data 'Spk2ImgNet_test2' \
--model_name 'model_061.pth'
All the command line arguments for hyperparameter tuning can be found in the train.py
file.
You can set the data path in the .py files or through argparser (--data)
python3 train.py
If you find this code useful in your research, please consider citing our paper:
@inproceedings{zhao2021spike,
title={Spk2ImgNet: Learning to Reconstruct Dynamic Scene from Continuous Spike Stream},
author={Zhao, Jing and Xiong, Ruiqin and Liu, Hangfan and Zhang, Jian and Huang, Tiejun},
booktitle={2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2021}
}