Giter Club home page Giter Club logo

srddn-tie's Introduction

SRDDN-TIE

The implementation of the following paper in Pytorch

Jiayi Ma, Xinya Wang, and Junjun Jiang. "Image Super-Resolution via Dense Discriminative Network", IEEE Transactions on Industrial Electronics, 67(7), pp. 5687-5695, Jul. 2020.

Dependencies

Python 3.6  PyTorch >= 1.0.0  numpy  skimage  imageio  matplotlib  tqdm

Training data

1.Download DIV2K training data (800 training + 100 validtion images) from https://data.vision.ee.ethz.ch/cvl/DIV2K/
2.Specify '--dir_data' based on the HR and LR images path. in option.py, 
	  '--ext' is set as 'sep_reset', which first convert .png to .npy

For training

Cd to 'TrainCode/code
for example
CUDA_VISIBLE_DEVICES=0  python main.py --model SRDDN --save SRDDNX2 --scale 2  --n_resblocks 12 --n_feats 64  --reset --chop --save_results --print_model --patch_size 96

you can change the settings found in option.py

For testing

Download the pre-trained model(SRDDN/x2/x3/x4) in https://pan.baidu.com/s/15sMaYQ3ODUZfwW3jf1aHCA  
password:wau0  
Put it in 'TestCode/model' file.
Cd to 'TestCode/code'  
run python main.py --data_test MyImage --scale 4 --model SRDDN --n_resblocks 12 --n_feats 64 --pre_train ../model/model_x4.pt --test_only --save_results --chop --save 'SRDDNX4' --testpath ../LR/LRBI --testset Set5  
Then you can find the SR result in 'TestCode/SR'. 
Run 'Evaluate_PSNR_SSIM.m'in MATLAB to obtain PSNR/SSIM values for paper

srddn-tie's People

Contributors

wxywhu avatar jiayi-ma avatar

Stargazers

Haonan Wu avatar  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.