Giter Club home page Giter Club logo

srgan-keras's Introduction

SRGAN-Keras

Keras implementation of "Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network"

1. Architecture

The generator creates a high-resolution (HR) image (4x upscaled) from a corresponding low-resolution (LR) image. The discriminator distinguishes the generated (fake) HR images from the original HR images.

1.1. Generator & Discriminator

Figure 4 from paper: Architecture of Generator and Discriminator Network with corresponding kernel size (k), number of feature maps (n) and stride (s) indicated for each convolutional layer.

1.2. Overview of input / outputs

Code Overview: Overview of the three networks; generator, discriminator, and VGG19. Generator create SR image from LR, discriminator predicts whether it's a SR or original HR, and VGG19 extracts features from generated SR and original HR images.

2. Content & Adversarial Loss

Losses Overview: The perceptual loss is a combination of content loss (based on VGG19 features) and adversarial loss. Equations are taken directly from "original paper".

3. Using this repository

3.1. Training

A command-line interface can be found in train.py. To train run e.g.:

python train.py \
    --train <TRAINING_IMAGES_PATH> \
    --validation <VALIDATION_IMAGES_PATH> \
    --scale 4 \
    --test_path images/samples_4X \
    --stage all

3.2. Testing

Check the example_usage notebook: example_usage.ipynb

srgan-keras's People

Contributors

mathiasgruber 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.