- 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 pretrain DiffIR_S1, run
sh trainS1.sh
- To train DiffIR_S2, run
#set the 'pretrain_network_g' and 'pretrain_network_S1' in ./options/train_DiffIRS2.yml to be the path of DiffIR_S1's pre-trained model
sh trainS2.sh
Note: The above training script uses 8 GPUs by default.
Download the pre-trained model and place it in ./experiments/
- Download GoPro testset, run
python download_data.py --data test --dataset GoPro
- Testing
# modify the dataset path in ./options/test_DiffIRS2.yml
sh test.sh
- Download HIDE testset, run
python download_data.py --data test --dataset HIDE
- Testing
# modify the dataset path in ./options/test_DiffIRS2.yml
sh test.sh
evaluate_gopro_hide.m