Code Monkey home page Code Monkey logo

tensorflow-vdsr's Introduction

tensorflow-vdsr

Overview

This is a Tensorflow implementation for "Accurate Image Super-Resolution Using Very Deep Convolutional Networks", CVPR 16'.

  • The author's project page
  • To download the required data for training/testing, please refer to the README.md at data directory.

Files

  • VDSR.py : main training file.
  • MODEL.py : model definition.
  • MODEL_FACTORIZED.py : model definition for Factorized CNN. (not recommended to use. for record purpose only)
  • PSNR.py : define how to calculate PSNR in python
  • TEST.py : test all the saved checkpoints
  • PLOT.py : plot the test result from TEST.py

How To Use

Training

# if start from scratch
python VDSR.py
# if start with a checkpoint
python VDSR.py --model_path ./checkpoints/CHECKPOINT_NAME.ckpt

Testing

# this will test all the checkpoint in ./checkpoint directory.
# and save the results in ./psnr directory
python TEST.py

Plot Result

# plot the psnr result stored in ./psnr directory
python PLOT.py

Result

The checkpoint is file is here

Results on Set 5
Scale Bicubic VDSR tf_VDSR
2x - PSNR/SSIM 33.66/0.9929 37.53/0.9587 37.24
3x - PSNR/SSIM 30.39/0.8682 33.66/0.9213 33.37
4x - PSNR/SSIM 28.42/0.8104 31.35/0.8838 31.09
Results on Set 14
Scale Bicubic VDSR tf_VDSR
2x - PSNR/SSIM 30.24/0.8688 33.03/0.9124 32.80
3x - PSNR/SSIM 27.55/0.7742 29.77/0.8314 29.67
4x - PSNR/SSIM 26.00/0.7027 28.01/0.7674 27.87

Remarks

  • The training is further accelerated with asynchronous data fetch.
  • Tried to accelerate the network with the idea from Factorized CNN. It is possible to implement with tf.nn.depthwise_conv2d and 1x1 convolution, but not so effective.
  • Thanks to @harungunaydin 's comment, AdamOptimizer gives a much more stable training. There's an option added.

tensorflow-vdsr's People

Contributors

jongchan avatar

Watchers

James Cloos 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.