Anime-Super-Resolution
Anime-Super-Resolution copied to clipboard
动漫图片超分辨率(SISR)——基于WDSR (2019-4-30)
Anime-Super-Resolution
动漫图片超分辨率——基于WDSR (2019-4-30)
环境
- tensorflow-gpu 1.12.0
- Keras 2.2.4
实现动漫图片4倍的图片放大及超分辨率
- utils.py -- 图像降采样与数据导入
- model.py -- wdsr模型
- optimizer.py -- 权重归一化Adam优化器
- train.py -- 模型训练
- predict.py -- 测试集预测
- evaluate.py -- 在不同难度等级下测试网络表现
图像降采样
- 使用NEAREST, BICUBIC, BILINEAR, HAMMING, LANCZOS插值方法将图像缩减4~12倍
- 使用半径1~3的核进行高斯模糊
Demo(LR, SR)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_lr_1.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_sr_1.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_lr_2.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_sr_2.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_lr_3.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_sr_3.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_lr_4.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/demo_sr_4.jpg)
难度测试
Easy(缩减倍率 4 ~ 6,模糊半径 1 ~ 1.5)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/easy_lr.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/easy_sr.jpg)
Normal(缩减倍率 6 ~ 8,模糊半径 1.5 ~ 2)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/normal_lr.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/normal_sr.jpg)
Hard(缩减倍率 8 ~ 10,模糊半径 2 ~ 2.5)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/hard_lr.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/hard_sr.jpg)
Lunatic(缩减倍率 10 ~ 12,模糊半径 2.5 ~ 3)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/lunatic_lr.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/images/lunatic_sr.jpg)
测试集表现
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/outputs/lr_22.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/outputs/sr_22.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/outputs/lr_11.jpg)
![](https://github.com/wmylxmj/Anime-Super-Resolution/raw/master/outputs/sr_11.jpg)