Minggui Teng, Chu Zhou, Hanyue Lou, and Boxin Shi.
pip install -r requirements.txt
python train.py --mode deblur --TrainImgPath `Path of Train Image` --TrainEvePath `Path of Events` --TrainGTPath `Path of Ground Truth Image`
python train.py --mode sr --upsample_scale 4 --TrainImgPath `Path of Train Image` --TrainEvePath `Path of Events` --TrainGTPath `Path of Ground Truth Image`
Pretrained model can be download in PKU Disk or Google Drive, and copy to pretrained
file folder.
python test.py --mode deblur --ckp pretrained/model_deblur_best.pth --TestImgPath demo_input/blur --TestEvePath demo_input/events
python test.py --mode sr --upsample_scale 4 --ckp pretrained/model_sr_best.pth --TestImgPath demo_input/lr --TestEvePath demo_input/events
configurations can be changed in utils/options.py
More visual results are in the subfolder demo
.
If you have any questions, please send an email to minggui_teng@pku.edu.cn