# AR-CNN, Fast AR-CNN
This repository is implementation of the "Deep Convolution Networks for Compression Artifacts Reduction". <br />
In contrast with original paper, It use RGB channels instead of luminance channel in YCbCr space and smaller(16) batch size.
## Requirements
- PyTorch
- Tensorflow
- tqdm
- Numpy
- Pillow
**Tensorflow** is required for quickly fetching image in training phase.
## Results
<table>
<tr>
<td><center>Input</center></td>
<td><center>JPEG (Quality 10)</center></td>
</tr>
<tr>
<td>
<center><img src="./data/monarch.bmp" height="300"></center>
</td>
<td>
<center><img src="./data/monarch_jpeg_q10.png" height="300"></center>
</td>
</tr>
<tr>
<td><center><b>AR-CNN</b></center></td>
<td><center><b>Fast AR-CNN</b></center></td>
</tr>
<tr>
<td>
<center><img src="./data/monarch_ARCNN.png" height="300"></center>
</td>
<td>
<center><img src="./data/monarch_FastARCNN.png" height="300"></center>
</td>
</tr>
</table>
## Usages
### Train
When training begins, the model weights will be saved every epoch. <br />
Data augmentation option **--use_augmentation** performs random rescale and rotation. <br />
If you want to train quickly, you should use **--use_fast_loader** option.
```bash
python main.py --arch "ARCNN" \ # ARCNN, FastARCNN
--images_dir "" \
--outputs_dir "" \
--jpeg_quality 10 \
--patch_size 24 \
--batch_size 16 \
--num_epochs 20 \
--lr 5e-4 \
--threads 8 \
--seed 123 \
--use_augmentation \
--use_fast_loader
```
### Test
Output results consist of image compressed with JPEG and image with artifacts reduced.
```bash
python example --arch "ARCNN" \ # ARCNN, FastARCNN
--weights_path "" \
--image_path "" \
--outputs_dir "" \
--jpeg_quality 10
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
保姆级使用教程:https://blog.csdn.net/qq_36584673/article/details/138668792 data:测试单张图像以及超分结果文件夹 datasets:数据集存放文件夹,包含训练集、验证集和测试集 Plt:Loss、PSNR、SSIM与Epoch关系曲线图存放位置 weights:模型权重文件存放位置 dataset.py:制作数据集,在线数据增强 draw_evaluation.py:绘制Loss、PSNR、SSIM与Epoch的关系曲线图 example.py:测试单张图像超分结果 imresize.py:python实现matlab中的imresize main.py:训练ARCNN model.py:ARCNN与FastARCNN模型实现 test_benchmark.py:测试benchmarks,控制台输出平均PSNR和SSIM utils.py:图像处理,计算指标工具集 详细使用说明见教程文章
资源推荐
资源详情
资源评论
收起资源包目录
ARCNN-pytorch-master.zip (29个子文件)
ARCNN-pytorch-master
utils.py 7KB
weights
best_FastARCNN_40.pth 338KB
best_ARCNN_40.pth 463KB
best_FastARCNN_20.pth 338KB
best_ARCNN_10.pth 463KB
best_ARCNN_20.pth 463KB
best_ARCNN_30.pth 463KB
best_FastARCNN_30.pth 338KB
best_FastARCNN_10.pth 338KB
main.py 8KB
imresize.py 5KB
data
dataset.py 4KB
model.py 2KB
.idea
workspace.xml 4KB
misc.xml 288B
ARCNN-pytorch-master.iml 316B
inspectionProfiles
profiles_settings.xml 174B
modules.xml 299B
deployment.xml 3KB
.gitignore 50B
datasets
Plt
draw_evaluation.py 3KB
test_benchmark.py 3KB
utils.zip 2.92MB
example.py 3KB
.gitignore 16B
__pycache__
model.cpython-38.pyc 2KB
utils.cpython-38.pyc 6KB
imresize.cpython-38.pyc 5KB
README.md 2KB
共 29 条
- 1
资源评论
十小大
- 粉丝: 1w+
- 资源: 1518
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- maven下载、安装、配置与使用教程(windows、Linux)
- html css网页制作成品案例.zip
- 神经网络介绍及教程&案例.docx
- 重庆市首席信息官(CIO)协会 《软件及信息化工程造价规范V5.0》T/CQCIO 001-2019
- 联想Y471老A卡笔记本开机黑屏 需等待黑屏结束才能进入桌面,解决方法
- elasticsearch-7.14.0和ik分词器
- 利用MPI计算任意范围内的质数
- EnviroSkyandWeather v2.1.1(u2017.1.2)真实动态天气系统包
- React框架介绍及相关教程、案例.docx
- 基于Springboot和Vue教务评教系统(PC端+server端源码+数据库MySQL脚本+环境部署步骤讲解+运行步骤讲解)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功