# SRCNN
This repository is implementation of the ["Image Super-Resolution Using Deep Convolutional Networks"](https://arxiv.org/abs/1501.00092)(SRCNN)by PyTorch.
![](assets/markdown-img-paste-20190716211816899.png)
## Requirements
- PyTorch 1.0.0
- Numpy 1.15.4
- Pillow 5.4.1
- h5py 2.8.0
- tqdm 4.30.0
## Train
The 91-image, Set5 dataset converted to HDF5 can be downloaded from the links below.
[links:](https://pan.baidu.com/s/11XMR3rjXZuZHWX7yMeAqfw)
Fetch Code:do34
Otherwise, you can use `prepare.py` to create custom dataset.
```bash
python train.py --train-file "path_to_train_file" \
--eval-file "path_to_eval_file" \
--outputs-dir "path_to_outputs_file" \
--scale 3 \
--lr 1e-4 \
--batch-size 16 \
--num-epochs 400 \
--num-workers 0 \
--seed 123
```
## Test
```bash
python test.py --weights-file "path_to_pth_file" \
--image-file "path_to_test_image_file" \
--scale 3
```
## Results
We used the network settings for experiments, i.e., <a href="https://www.codecogs.com/eqnedit.php?latex={&space;f&space;}_{&space;1&space;}=9,{&space;f&space;}_{&space;2&space;}=5,{&space;f&space;}_{&space;3&space;}=5,{&space;n&space;}_{&space;1&space;}=64,{&space;n&space;}_{&space;2&space;}=32,{&space;n&space;}_{&space;3&space;}=1" target="_blank"><img src="https://latex.codecogs.com/gif.latex?{&space;f&space;}_{&space;1&space;}=9,{&space;f&space;}_{&space;2&space;}=5,{&space;f&space;}_{&space;3&space;}=5,{&space;n&space;}_{&space;1&space;}=64,{&space;n&space;}_{&space;2&space;}=32,{&space;n&space;}_{&space;3&space;}=1" title="{ f }_{ 1 }=9,{ f }_{ 2 }=5,{ f }_{ 3 }=5,{ n }_{ 1 }=64,{ n }_{ 2 }=32,{ n }_{ 3 }=1" /></a>.
PSNR was calculated on the Y channel.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
神经网络 该存储库是PyTorch编写的 (SRCNN)的实现。 要求 PyTorch 1.0.0 脾气暴躁的1.15.4 枕头5.4.1 h5py 2.8.0 tqdm 4.30.0 火车 可以从下面的链接下载转换为HDF5的91图像Set5数据集。 提取代码:do34 否则,您可以使用prepare.py创建自定义数据集。 python train.py --train-file " path_to_train_file " \ --eval-file " path_to_eval_file " \ --outputs-dir " path_to_outputs_file " \ --scale 3 \ --lr 1e-4 \
资源推荐
资源详情
资源评论
收起资源包目录
srcnn_pytorch_1_0-master.zip (18个子文件)
SRCNN_Pytorch_1.0-master
outputs
x3
epoch_399.pth 225KB
best.pth 225KB
data
zebra_srcnn_x3.bmp 669KB
ppt3_bicubic_x3.bmp 1012KB
zebra.bmp 672KB
butterfly_GT.bmp 192KB
zebra_bicubic_x3.bmp 669KB
butterfly_GT_srcnn_x3.bmp 191KB
ppt3_srcnn_x3.bmp 1012KB
ppt3.bmp 1017KB
butterfly_GT_bicubic_x3.bmp 191KB
datasets.py 997B
prepare.py 3KB
utils.py 3KB
README.md 2KB
test.py 2KB
model.py 607B
train.py 4KB
共 18 条
- 1
资源评论
吉莫吉鱼
- 粉丝: 15
- 资源: 4591
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 老飞飞搭建基础通用数据库V19数据库.rar
- jquery.js
- 机械设计多工位ACF贴胶带&预压设备sw18可编辑非常好的设计图纸100%好用.zip
- 基于Pytorch复现Point-Transformer,用于ShapeNet数据集点云分割
- 【医学影像分析】2D超声图像的分割检测(Ultrasound Nerve Segmentation - Kaggle数据集)
- 嘎嘎香的五款神仙谷歌插件
- .arch书源导入教程.mp4
- 贪心算法介绍及代码示例讲解
- CR13SP35MSI64 Crystal 水晶报表运行组件最后版本64位
- 图像分类数据集:玉米叶是否感染分类数据集(2分类,包含训练集、验证集)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功