Giter Club home page Giter Club logo

srgan's Introduction

SRGAN

This is implementation of SRGAN under working.

Currently only generator part is implemented. SRResNet is implemented but not benchmarked yet. SRGAN is hopefully implementation soon. I can't reproduce PSNR of bicubic in the paper, thus haven't measured the PSNR.

The paper is Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network.

These images are generated from LR images into 4x SR with trained with with the code. Check 23K results Reproduce result 2 3

There more experiments going on. For ex, using preactivation ResNet, 4x4 deconvolution layer to remove artifacts.

This repository started from altering Torch7-Network Profiler. Used ResNet but changed a lot from original. Final using model is models/resnet-deconv2.lua. The model trained uses 9x9 conv for first and last Conv layers and 15 residual blocks.

LR Patch is 3x24x24 and SR Patch is 3x96x96. It was vague in the paper that 96x96x is either LR or SR but LR96 was untrainable because of not enough memory (GTX1080).

Trained with ImageNet (50 images from 1000 classes that have 3 channel and bigger than 3x288x288). For first time, just uncomment prepImageNet to have paths to images. Save it as imgBatch.t7 After then, comment these as original code and load it.

Only supports, cuda/cudnn backend.

To profile network,

th profile-model.lua -m models/resnet-deconv2.lua -r 16x3x24x24 -p cuda

To train network,

th train-SRResNet.lua -model_name 9x9-15res-LR24 It will save checkpoints in model_name directory.

To resume training,

th train-SRResNet.lua -model_name 9x9-15res-LR24 -checkpoint_start_from models/9x9-15res-LR24/230000.t7

To run/test model,

th run-SRResNet.lua -checkpoint_path models/9x9-15res-LR24/230000.t7 -dataset BSD100 -result_path results_23K

-dataset can be BSD100|Set5|Set14.

If memory is not big enough, will print 'oom' and move on.

srgan's People

Contributors

bmartini avatar culurciello avatar atcold avatar codeac29 avatar junhocho avatar syed-ahmed avatar jhjin avatar spk921 avatar

Watchers

 avatar paper2code - 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.