# ESRGAN-pytorch
This repository implements a deep-running model for super resolution.
Super resolution allows you to pass low resolution images to CNN and restore them to high resolution.
We refer to the following article.
[ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks](https://arxiv.org/abs/1809.00219)
## architecture
[Overall Architecture]
![ESRGAN architecture](./image/architecture.PNG)
[Basic block]
![BasicBlock](./image/basicBlock.PNG)
### Test Code
```bash
python test.py --lr_dir LR_DIR --sr_dir SR_DIR
```
## Prepare dataset
### Use Flicker2K and DIV2K
```bash
cd datasets
python prepare_datasets.py
cd ..
```
### custom dataset
Make dataset like this; size of hr is 128x128 ans lr is 32x32
```
datasets/
hr/
0001.png
sdf.png
0002.png
0003.png
0004.png
...
lr/
0001.png
sdf.png
0002.png
0003.png
0004.png
...
```
## how to train
run main file
```bash
python main.py --is_perceptual_oriented True --num_epoch=10
python main.py --is_perceptual_oriented False --epoch=10
```
## Sample
we are in training on this code and train is not complete yet.
this is intermediate result.
<img src="image/lr.png" width="200">
<img src="image/hr.png" width="800">
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该资源为ESRGAN-图像超分辨率-pytorch,复现论文为: ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks。
资源推荐
资源详情
资源评论
收起资源包目录
ESRGAN-图像超分辨率-pytorch.zip (31个子文件)
ESRGAN-pytorch-master
loss
loss.py 651B
image
hr.png 5.26MB
architecture.PNG 39KB
lr.png 420KB
basicBlock.PNG 28KB
main.py 715B
src
train.py 7KB
test.py 2KB
LICENSE 1KB
.idea
vcs.xml 180B
misc.xml 197B
modules.xml 314B
encodings.xml 135B
super-resolution-ESRGAN-pytorch.iml 398B
dataloader
dataloader.py 342B
datasets.py 1KB
datasets
preparation
utils.py 830B
__init__.py 0B
download_image.py 2KB
make_patches.py 1KB
prepare_datasets.py 175B
model
Discriminator.py 1KB
ESRGAN.py 1KB
block.py 2KB
parameters
gan.pth 63.72MB
psnr.pth 63.72MB
.gitignore 2KB
test.py 2KB
util
util.py 2KB
README.md 1KB
config
config.py 4KB
共 31 条
- 1
假技术po主
- 粉丝: 515
- 资源: 4220
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页