Skip to content

PyTorch implementation of sub-pixel convolutional neural network with the combination of pixel-wise and perceptual loss for Super-resolution (SR) problem.

Notifications You must be signed in to change notification settings

faziletgokbudak/ESPCN-with-perceptual-loss

Repository files navigation

ESPCN with Perceptual Loss

This repository implements the combination of two works:

Flow Chart of the SR System

Requirements

  • PyTorch 1.10
  • Numpy 1.16.1
  • Pillow 6.0.0
  • h5py 2.9.0
  • matplotlib 3.1.1

Datasets

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.

Train

python train.py --training_set ".../DIV2K_x4.h5" \
--val_set ".../Set5_x4.h5" \
--scale 4 \
--patch_size 56 \
--epoch 200

Test

python test.py --weights "best_path.pth" \
--test_img "img.png" \
--scale 4

Results

  • 'comic' image results and FFT-Error plots:

'comic' image results and FFT-Error plots

About

PyTorch implementation of sub-pixel convolutional neural network with the combination of pixel-wise and perceptual loss for Super-resolution (SR) problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages