Git Product home page Git Product logo

srgan-tf2's Introduction

Using a GAN with a Perceptual Loss function for Image Super Resolution

This project focuses on reimplementing the paper by Ledig, et al. (2017) in which a GAN is trained on an unspecified subset of 350,000 images from the ImageNet dataset.

Implementation details

In this implementation, I decided to use the DIV2K dataset consisting of 900 High Resolution (2K) images, which are then downsampled bicubically by a factor of 4, and then fed into the GAN as input. The first 800 images were used for training and the final 100 were used for testing. The Generator and Discriminator were trained for 50,000 steps in increments of 50, and their losses were reported and visualized accordingly.

Requirements

This implementation was run on Google Colab, but nevertheless has the following libraries as requirements:

  • TensorFlow 2.3.1 or above
  • Matplotlib 3.1.1 or above
  • Python 3.5 or above
  • Pillow 6.0.0 or above
  • Numpy 1.21.4 or above

The above requirements can be installed by

$ cd <project-root>
$ pip install -r requirements.txt

Results

Screenshot 2021-12-20 at 9 02 11 PM

References

https://github.com/jlaihong/image-super-resolution

https://github.com/krasserm/super-resolution

https://arxiv.org/pdf/1609.04802v5.pdf

https://medium.com/@ramyahrgowda/srgan-paper-explained-3d2d575d09ff

srgan-tf2's People

Contributors

vigneshsundararajan avatar dependabot[bot] 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.