All Projects → yjn870 → RDN-pytorch

yjn870 / RDN-pytorch

Licence: MIT license
PyTorch implementation of Residual Dense Network for Image Super-Resolution (CVPR 2018)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to RDN-pytorch

PESR
Official code (Pytorch) for paper Perception-Enhanced Single Image Super-Resolution via Relativistic Generative Networks
Stars: ✭ 28 (-69.23%)
Mutual labels:  image-super-resolution
Awesome-low-level-vision-resources
A curated list of resources for Low-level Vision Tasks
Stars: ✭ 35 (-61.54%)
Mutual labels:  image-super-resolution
Image Super Resolution
🔎 Super-scale your images and run experiments with Residual Dense and Adversarial Networks.
Stars: ✭ 3,293 (+3518.68%)
Mutual labels:  image-super-resolution
SwinIR
SwinIR: Image Restoration Using Swin Transformer (official repository)
Stars: ✭ 1,260 (+1284.62%)
Mutual labels:  image-super-resolution
SRCNN-pytorch
PyTorch implementation of Image Super-Resolution Using Deep Convolutional Networks (ECCV 2014)
Stars: ✭ 176 (+93.41%)
Mutual labels:  image-super-resolution
FSRCNN-pytorch
PyTorch implementation of Accelerating the Super-Resolution Convolutional Neural Network (ECCV 2016)
Stars: ✭ 115 (+26.37%)
Mutual labels:  image-super-resolution
HCFlow
Official PyTorch code for Hierarchical Conditional Flow: A Unified Framework for Image Super-Resolution and Image Rescaling (HCFlow, ICCV2021)
Stars: ✭ 140 (+53.85%)
Mutual labels:  image-super-resolution
NLRN
Code for Non-Local Recurrent Network for Image Restoration (NeurIPS 2018)
Stars: ✭ 165 (+81.32%)
Mutual labels:  image-super-resolution
IDN-pytorch
paper implement : Fast and Accurate Single Image Super-Resolution via Information Distillation Network
Stars: ✭ 40 (-56.04%)
Mutual labels:  image-super-resolution

RDN

This repository is implementation of the "Residual Dense Network for Image Super-Resolution".

Requirements

  • PyTorch 1.0.0
  • Numpy 1.15.4
  • Pillow 5.4.1
  • h5py 2.8.0
  • tqdm 4.30.0

Train

The DIV2K, Set5 dataset converted to HDF5 can be downloaded from the links below.

Dataset Scale Type Link
DIV2K 2 Train Download
DIV2K 3 Train Download
DIV2K 4 Train Download
Set5 2 Eval Download
Set5 3 Eval Download
Set5 4 Eval Download

Otherwise, you can use prepare.py to create custom dataset.

python train.py --train-file "BLAH_BLAH/DIV2K_x4.h5" \
                --eval-file "BLAH_BLAH/Set5_x4.h5" \
                --outputs-dir "BLAH_BLAH/outputs" \
                --scale 4 \
                --num-features 64 \
                --growth-rate 64 \
                --num-blocks 16 \
                --num-layers 8 \
                --lr 1e-4 \
                --batch-size 16 \
                --patch-size 32 \
                --num-epochs 800 \
                --num-workers 8 \
                --seed 123                

Test

Pre-trained weights can be downloaded from the links below.

Model Scale Link
RDN (D=16, C=8, G=64, G0=64) 2 Download
RDN (D=16, C=8, G=64, G0=64) 3 Download
RDN (D=16, C=8, G=64, G0=64) 4 Download

The results are stored in the same path as the query image.

python test.py --weights-file "BLAH_BLAH/rdn_x4.pth" \
               --image-file "data/119082.png" \
               --scale 4 \
               --num-features 64 \
               --growth-rate 64 \
               --num-blocks 16 \
               --num-layers 8

Results

PSNR was calculated on the Y channel.

Set5

Eval. Mat Scale RDN (Paper) RDN (Ours)
PSNR 2 38.24 38.18
PSNR 3 34.71 34.73
PSNR 4 32.47 32.40
Original BICUBIC x4 RDN x4 (25.08 dB)
Original BICUBIC x4 RDN x4 (32.98 dB)

Citation

@InProceedings{Lim_2017_CVPR_Workshops,
  author = {Lim, Bee and Son, Sanghyun and Kim, Heewon and Nah, Seungjun and Lee, Kyoung Mu},
  title = {Enhanced Deep Residual Networks for Single Image Super-Resolution},
  booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
  month = {July},
  year = {2017}
}

@inproceedings{zhang2018residual,
    title={Residual Dense Network for Image Super-Resolution},
    author={Zhang, Yulun and Tian, Yapeng and Kong, Yu and Zhong, Bineng and Fu, Yun},
    booktitle={CVPR},
    year={2018}
}

@article{zhang2020rdnir,
    title={Residual Dense Network for Image Restoration},
    author={Zhang, Yulun and Tian, Yapeng and Kong, Yu and Zhong, Bineng and Fu, Yun},
    journal={TPAMI},
    year={2020}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].