- To download GoPro training and testing data, run
python download_data.py --data train-test
- Generate image patches from full-resolution training images of GoPro dataset
python generate_patches_gopro.py
- To train Restormer, run
cd Restormer
./train.sh Motion_Deblurring/Options/Deblurring_Restormer.yml
Note: The above training script uses 8 GPUs by default. To use any other number of GPUs, modify Restormer/train.sh and Motion_Deblurring/Options/Deblurring_Restormer.yml
Download the pre-trained model and place it in ./pretrained_models/
- Download GoPro testset, run
python download_data.py --data test --dataset GoPro
- Testing
python test.py --dataset GoPro
- Download HIDE testset, run
python download_data.py --data test --dataset HIDE
- Testing
python test.py --dataset HIDE
- Download RealBlur-J testset, run
python download_data.py --data test --dataset RealBlur_J
- Testing
python test.py --dataset RealBlur_J
- Download RealBlur-R testset, run
python download_data.py --data test --dataset RealBlur_R
- Testing
python test.py --dataset RealBlur_R
To reproduce PSNR/SSIM scores of the paper (Table 2) on GoPro and HIDE datasets, run this MATLAB script
evaluate_gopro_hide.m
evaluate_realblur.py