Skip to content
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
Branch: master
Clone or download
Latest commit 34ebf0f Oct 13, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore TF 1.2 Jun 19, 2017
.style.yapf update readme Jun 18, 2017 improve the case the remove the broken files Jun 20, 2017 update for TF1.3, TL1.8.0+ Mar 10, 2018 Update Jun 10, 2018 Update Oct 13, 2018

Super Resolution Examples

We run this script under TensorFlow 1.4 and the TensorLayer 1.8.0+.

🚀 This repo will be moved to here (please star) for life-cycle management soon. More cool Computer Vision applications such as pose estimation and style transfer can be found in this organization.

SRGAN Architecture

TensorFlow Implementation of "Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network"


Prepare Data and Pre-trained VGG

    1. You need to download the pretrained VGG19 model in here as show.
    1. You need to have the high resolution images for training.
    • In this experiment, I used images from DIV2K - bicubic downscaling x4 competition, so the hyper-paremeters in (like number of epochs) are seleted basic on that dataset, if you change a larger dataset you can reduce the number of epochs.
    • If you dont want to use DIV2K dataset, you can also use Yahoo MirFlickr25k, just simply download it using train_hr_imgs = tl.files.load_flickr25k_dataset(tag=None) in
    • If you want to use your own images, you can set the path to your image folder via config.TRAIN.hr_img_path in


config.TRAIN.img_path = "your_image_folder/"
  • Start training.
python --mode=evaluate 




If you find this project useful, we would be grateful if you cite the TensorLayer paper:

author = {Dong, Hao and Supratak, Akara and Mai, Luo and Liu, Fangde and Oehmichen, Axel and Yu, Simiao and Guo, Yike},
journal = {ACM Multimedia},
title = {{TensorLayer: A Versatile Library for Efficient Deep Learning Development}},
url = {},
year = {2017}

Other Projects



You can’t perform that action at this time.