GithubHelp home page GithubHelp logo

lijiasheng11 / srgan-with-wgan-loss-tensorflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mingtaoguo/srgan-with-wgan-loss-tensorflow

0.0 1.0 0.0 1.49 MB

SRGAN (super resolution generative adversarial networks) with WGAN loss function in TensorFlow

License: MIT License

Python 100.00%

srgan-with-wgan-loss-tensorflow's Introduction

SRGAN-with-WGAN-Loss-TensorFlow

SRGAN with WGAN loss function in TensorFlow

Introduction

This code mainly address the problem of super resolution, Super Resolution Generative Adversarial Networks

There are four different from the paper:

  1. The loss function, we use WGAN loss, instead of standard GAN loss.
  2. The network architecture, Because of our poor device, in generator, we just use 5 residual block (paper: 16), and in discriminator, we use the standard DCGAN's discriminator.
  3. The training set, device problem again,:cry: we just use a part of ImageNet (ImageNet Val) which just contains 50,000 images.
  4. The max iteration, we just train the model about 100,000 iterations, instead of the paper 600,000.

How to use

  1. Download the dataset ImageNet Val
  2. unzip dataset and put it into the folder 'ImageNet'
├── test
├── save_para
├── results
├── vgg_para
├── ImageNet
     ├── ILSVRC2012_val_00000001.JPEG
     ├── ILSVRC2012_val_00000002.JPEG
     ├── ILSVRC2012_val_00000003.JPEG
     ├── ILSVRC2012_val_00000004.JPEG
     ├── ILSVRC2012_val_00000005.JPEG
     ├── ILSVRC2012_val_00000006.JPEG
     ...
  1. execute the file main.py

Requirements

  • python3.5
  • tensorflow1.4.0
  • pillow
  • numpy
  • scipy
  • skimage

Results

Train procedure WGAN Loss

Down sampled Bicubic (x4) SRGAN (x4)

Reference

[1] Ledig C, Theis L, Huszár F, et al. Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network[C]//CVPR. 2017, 2(3): 4.

srgan-with-wgan-loss-tensorflow's People

Contributors

mingtaoguo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.