# SR-Restore
Super resolution and Image restoration.
## Install
Requires `tensorflow==1.1.0` and `keras==2.0.2`
$ pip install -r ./requirements.txt
## Super Resolution example
````
# Resize low-res and high-res images for Super Resolution
$ python -m sr.images data/images/raw/ \
--lr data/images/lr \
--hr data/images/hr \
--lr_size 72x72 \
--hr_size 288x288
# Train Super Resolution model.
# Expects images in /path/images/lr/ and /path/images/hr/
$ python -m sr.train data/images \
--results results/ \
--network espcnn \
--scale 4 \
--epochs 100 \
--batch_size 32
# Predict high-res images using trained model weights.
# (Optional) use `--limit` option to limit num of images to perform on.
$ python -m sr.predict data/images/lr/ \
--output results/output/ \
--weights results/espcnn_20170701_190534/weights.h5 \
--network espcnn \
--scale 4 \
--batch_size 32 \
--limit 20
````
## Image Restore example
````
# Resize a directory of images to single size
# We need /image_path/original/ and /image_path/enhanced/
$ python -m restore.images data/images/raw_original \
--output data/images/original \
--size 288x288
$ python -m restore.images data/images/raw_enhanced \
--output data/images/enhanced \
--size 288x288
# Train Restore model.
# Expects images in /path/images/original/ and /path/images/enhanced/
# Saves model weights, checkpoints, and tensorboard logs to path specified in results.
$ python -m sr.train data/images \
--results results/ \
--network cnn \
--epochs 100 \
--batch_size 32
# Predict original images using trained model weights.
# (Optional) use `--limit` option to limit num of images to perform on.
$ python -m sr.predict data/images/enhanced/ \
--output results/output/ \
--weights results/cnn_20170701_190534/weights.h5 \
--network cnn \
--batch_size 32 \
--limit 20
````
## Dataset
celebA: (link)
## References
- Image Super Resolution (link)
- Perceptual loss (link)
- Efficient Real time convolution (link)
没有合适的资源?快使用搜索试试~ 我知道了~
使用高效超分辨率的图像恢复。凯拉斯,张量流_Python_下载.zip
共15个文件
py:12个
txt:1个
md:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 84 浏览量
2023-04-28
13:43:26
上传
评论
收藏 12KB ZIP 举报
温馨提示
使用高效超分辨率的图像恢复。凯拉斯,张量流_Python_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
使用高效超分辨率的图像恢复。凯拉斯,张量流_Python_下载.zip (15个子文件)
SR-restore-master
requirements.txt 101B
.gitignore 128B
README.md 2KB
restore
__init__.py 0B
predict.py 2KB
models.py 1KB
train.py 2KB
images.py 627B
sr
utils.py 849B
__init__.py 0B
subpixel.py 986B
predict.py 3KB
models.py 3KB
train.py 7KB
images.py 3KB
共 15 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于python+flask+mysql实现的豆瓣电影可视化系统+源代码+文档说明+数据库sql.zip
- 程氏舞曲V4.2程氏舞曲V4.2程氏舞曲V4.2程氏舞曲V4.2
- FPGA读写 AD9708+ AD9280 ADDA实验Verilog逻辑源码Quartus工程文件+文档说明+硬件参考原理图
- 基于CH340C设计USB转TLL串口通信模块PADS 9.5设计硬件(原理图+PCB)文件.zip
- 信号与系统大作业-图像处理 实现了直接滤波法维纳滤波法最小二乘滤波法LR递归法matlab源码.zip
- php-leetcode题解之最小栈.zip
- php-leetcode题解之最长不含重复字符的子字符串.zip
- php-leetcode题解之最长公共前缀.zip
- php-leetcode题解之最小差值.zip
- php-leetcode题解之最小基因变化.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功