Skip to content

irasin/SuperResolution-Chainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperResolution-Chainer

Super Resolution by Chainer(v3) and python3.
I used a DenseNet-based Generator and SNGAN by Chainer to train this model.
This repository just provides the generator model, however, I have used GAN to train it indeed.
If you have any question, please feel free to contact me.

Usage

compare

python compare_image --input_file/-i  filename

It will downsize the given image to the low resolution image with a factor=2, then upsize it by bicubic and SR-method respectively to generate super resolution image with a factor=2 and compare the PSNR/SSIM between the SR image and ground truth.

generate

python generate_2x --input_file/-i  filename

It will generate a 2x SR image of the given image by SR-method.

Result

compare

ground truth

image

low resolution

image

bicubic

image

super resolution

image

generate 2x

image