This is the original version of the NLRN code. A newer version can be found here.
Under the root directory of this repository
mkdir -p data
Download the compressed 400 training images in grayscale here. They are converted from the color images in BSDS500. Move the compressed file BSDS500.tar.gz
to ./data
Uncompress them and generate the training file name list:
cd data
tar -zxf BSDS500.tar.gz
cd BSDS500
find train_gray_rgb2gray/*.png test_gray_rgb2gray/*.png > ../train.list
These two datasets can be downloaded from here. Move them to ./data
Under the root directory of this repository
bash train.sh
Unzip the downloaded files and move them under ./checkpoints
bash test.sh
The model can be downloaded here.
These two datasets can be downloaded from here. Move them to ./data
Unzip the downloaded files and move them under ./checkpoints
bash test_sr.sh
- Python 2.7
- TensorFlow 1.10
@inproceedings{liu2018non,
title={Non-Local Recurrent Network for Image Restoration},
author={Liu, Ding and Wen, Bihan and Fan, Yuchen and Loy, Chen Change and Huang, Thomas S},
booktitle={Advances in Neural Information Processing Systems},
pages={1680--1689},
year={2018}
}