# ESPCN-TensorFlow
**Repository Path**: yjz2458608317/ESPCN-TensorFlow
## Basic Information
- **Project Name**: ESPCN-TensorFlow
- **Description**: An implementation of the Efficient Sub-Pixel Convolutional Neural Network in TensorFlow
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2021-01-28
- **Last Updated**: 2021-04-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ESPCN-TensorFlow
TensorFlow implementation of the Efficient Sub-Pixel Convolutional Neural Network in TensorFlow (ESPCN). Network based on this [paper](https://arxiv.org/pdf/1609.05158.pdf) and code adapted from this [repo](https://github.com/JesseYang/Espcn).
This network can achieve the real-time performance of the [FSRCNN](https://arxiv.org/abs/1608.00367) while also surpassing the quality of the [SRCNN](https://arxiv.org/abs/1501.00092).
## Prerequisites
* Python 2.7
* TensorFlow
* Numpy
* Scipy version > 0.18
## Usage
Run `prepare_data.py` to format the training and validation data before training each new model
For training: `python train.py`
Can specify epochs, learning rate, batch size etc:
`python train.py --epochs 10 --learning_rate 0.0001 --batch_size 32`
For generating: `python generate.py`
Must specify checkpoint, low-resolution image, and output path
`python generate.py --checkpoint logdir_2x/train --lr_image images/butterfly_GT.png --out_path result/butterfly_HR`
Check `params.json` for parameter values and to change the upscaling ratio (2x, 3x, ...) the model is operating on.
## Result
Original butterfly image:

Bicubic interpolated image:

Super-resolved image:

## References
* [JesseYang/Espcn](https://github.com/JesseYang/Espcn)