IDN-tensorflow

December 20, 2018 · View on GitHub

[Original Caffe version]

Testing

  • Install Tensorflow 1.11, Matlab R2017a
  • Download Test datasets
  • Modify config.py (if you want to test x3 model on Set14, config.TEST.model_path = 'checkpoint_x3/model.ckpt' config.TEST.dataset = 'Set14') and test.py (scale = 3).
  • Run testing:
python test.py

Training

  • Download Training dataset
  • Modify config.py (if you want to train x4 model, config.TRAIN.hr_img_path = '/path/to/DIV2K_train_HR/' config.TRAIN.checkpoint_dir = 'checkpoint_x4/' config.VALID.hr_img_path = '/path/to/DIV2K_valid_HR/' config.VALID.lr_img_path = '/path/to/DIV2K_valid_LR_x4/') and train_SR.py (scale = 4)
  • Run training:
python train_SR.py

Note

This TensorFlow version is trained with DIV2K training dataset on RGB channels. Additionally, We modify the upsample layer to subpixel convolution (the original version is transposed convolution).

Results

Test_results

The following PSNR/SSIMs are evaluated on Matlab R2017a and the code can be referred to Evaluate_PSNR_SSIM.m.

Training datasetScaleSet5Set14B100Urban100
291 ×237.83 / 0.960033.30 / 0.914832.08 / 0.898531.27 / 0.9196
DIV2K ×237.85 / 0.959833.58 / 0.917832.11 / 0.898931.95 / 0.9266
291 ×334.11 / 0.925329.99 / 0.835428.95 / 0.801327.42 / 0.8359
DIV2K ×334.24 / 0.926030.27 / 0.840829.03 / 0.803827.99 / 0.8489
291 ×431.82 / 0.890328.25 / 0.773027.41 / 0.729725.41 / 0.7632
DIV2K ×431.99 / 0.892828.52 / 0.779427.52 / 0.733925.92 / 0.7801

Model Parameters

ScaleModel size
×2579,276
×3587,931
×4600,048

Citation

If you find IDN useful in your research, please consider citing:

@inproceedings{Hui-IDN-2018,
  title={Fast and Accurate Single Image Super-Resolution via Information Distillation Network},
  author={Hui, Zheng and Wang, Xiumei and Gao, Xinbo},
  booktitle={CVPR},
  pages = {723--731},
  year={2018}
}