This repository implements the combination of two works:
- Sub-pixel Convolutional Neural Network (ESPCN)
- Perceptual Loss
- Flow Chart of the SR System:
- PyTorch 1.10
- Numpy 1.16.1
- Pillow 6.0.0
- h5py 2.9.0
- matplotlib 3.1.1
The DIV2K, Set5 dataset converted to HDF5 can be downloaded from the following link: Datasets
The custom dataset can also be created by following the instruction in the link above.
python train.py --training_set ".../DIV2K_x4.h5" \
--val_set ".../Set5_x4.h5" \
--scale 4 \
--patch_size 56 \
--epoch 200
python test.py --weights "best_path.pth" \
--test_img "img.png" \
--scale 4
- 'comic' image results and FFT-Error plots: