GithubHelp home page GithubHelp logo

dsrn's Introduction

Image Super-resolution via Dual-state Recurrent Neural Networks (CVPR 2018)

Citation

@inproceedings{han2018image,  
	title={Image super-resolution via dual-state recurrent networks},
	author={Han, Wei and Chang, Shiyu and Liu, Ding and Yu, Mo and Witbrock, Michael and Huang, Thomas S},
	booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
	year={2018}
}

Dependencies

  • Common python dependencies can be installed via pip install -r requirements.txt
  • Lingvo (for inference only), see linvgo project page for installation instructions.

Data

There is a very helpful repo collected download links for all the training and test sets needed here.

Training

The training data is specified by a file list of HR images. No futher pre-processing is needed as we perform downsampling and augmentation on-the-fly.

Use train.py and the model specification file model_recurrent_s2_u128_avg_t7.py to start a training job.

Inference

We release our models in tensorflow lingvo format such that the models are self contained for inference tasks. Each model consists of by a inference_graph.pbtxt and a checkpoint file.

To run the inference with provided pre-trained models on an image, use provided predictor.py: Example:

`python predictor.py --checkpoint=models/x3/ckpt-00754300 --inference_graph=models/x3/inference.pbtxt --image_path=./cat.png --output_dir=./`

The script will write super-resolved images to output_dir.

Evaluation

Use evaluate.py to compute average PSNR on a test set after saving all the model predicted images. Eval set is also specified by a file list. Example:

`python evaluate.py --hr_flist=flists/set5.list --prediction_dir=${your_pred_dir}`

Acknowledgement

This code is partly based on a previous work from our group [here]

dsrn's People

Watchers

James Cloos avatar 落难道长 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.