# EDRNet
source code for our IEEE TIM 2020 paper entitled [EDRNet: Encoder-Decoder Residual Network for Salient Object Detection of Strip Steel Surface Defects](https://ieeexplore.ieee.org/document/9116810) (**DOI:10.1109/TIM.2020.3002277**) by Guorong Song, Kechen Song and Yunhui Yan.
## Requirement
- Python 3.6
- Pytorch 0.4.1 or 1.0.1(**default**)
- numpy
- torchvision
- glob
- PIL
- scikit-image
**This code is tested on Ubuntu 16.04.**
## Training
1. cd to `./Data`, and Unzip the file of `trainingDataset.zip` into this folder.
2. **path of training images:**`./Data/trainingDataset/imgs_train/` **path of training labels:**`./Data/trainingDataset/masks_train/`
3. run`python edrnet_train.py` to start training
4. the trained model will be saved in `./trained_models`
## Testing
1. download the test dataset [SD-saliency-900.zip](https://drive.google.com/file/d/1yQdfow1-WvDilQTZ1zj1EbbErN1DksVF/view?usp=sharing), then Unzip it to the directory of `./Data`
2. download the pre-trained model [EDRNet_epoch_600.pth](https://drive.google.com/file/d/1FJe9j-F7r3kdlEJgBC-Izi37ANytwLF-/view?usp=sharing), then put it to the directory of `./trained_models`
3. **path of testing dataset:** `./Data/SD-saliency-900/imgs/` **path of pre-trained model:** `./trained_models/EDRNet_epoch_600.pth`
4. run`python edrnet_test.py` to start testing
5. the predict results will be saved in `./Data/test_results/`
**Note: If you use `SD-saliency-900` dataset in your paper, please cite [Saliency detection for strip steel surface defects using multiple constraints and improved texture features](https://www.sciencedirect.com/science/article/abs/pii/S0143816619317361)**
## Results
We also provide the experimental results of all the comparative methods in our paper.([Results](https://drive.google.com/file/d/1XAFLIPbgJQpX2QiL2JZtnoK0QY2ARWTn/view?usp=sharing))
**You can also download all the files including `SD-saliency-900.zip, EDRNet_epoch_600.pth, Results` in BaiduYun Drive.(link:https://pan.baidu.com/s/1RSgkzNKxXA11ajtoFnk6Mw code: z91m)**
## Supplement
Here, we provide the results tested on **Noisy Images** with *Salt and Pepper noise*. ([GoogleDrive](https://drive.google.com/drive/folders/1_ZHQabyt-ndrLnAOauXUqov9Yxp5Gsyl?usp=sharing)) BaiduYun Drive: (**link:https://pan.baidu.com/s/1jw8jHEpa_AWgf2rMpmsebQ code:c9gb**)
- mat_Results.zip
- NoisyImages.zip
- NoisyTestResults.zip
## Performance Preview
**Visual comparison**
![visual_comparison.jpg](https://storage.live.com/items/72AB557781850244!8964?authkey=AFAbVUdk1jyWqZA)
**Quantitative comparison**
![quantitative_evaluation.png](https://storage.live.com/items/72AB557781850244!8966?authkey=AFAbVUdk1jyWqZA)
## Citation
```
@InProceedings{SGR_2020_TIM,
author = {Song, Guorong and Song, Kechen and Yan, Yunhui},
title = {EDRNet: Encoder-Decoder Residual Network for Salient Object Detection of Strip Steel Surface Defects},
booktitle = {IEEE Transactions on Instrumentation & Measurement (IEEE TIM)},
month = {June},
year = {2020}
}
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Python基于残差网络用于带钢表面缺陷显着目标检测的编码器、解码器源码+数据集 Requirement Python 3.6 Pytorch 0.4.1 or 1.0.1(default) numpy torchvision glob PIL scikit-image Training cd to ./Data, and Unzip the file of trainingDataset.zip into this folder. path of training images:./Data/trainingDataset/imgs_train/ path of training labels:./Data/trainingDataset/masks_train/ runpython edrnet_train.py to start training the trained model will be saved in ./trained_models
资源推荐
资源详情
资源评论
收起资源包目录
EDRNet-master.zip (14个子文件)
EDRNet-master
edrnet_test.py 2KB
pytorch_ssim
__init__.py 4KB
utils
__init__.py 18B
func.py 156B
pytorch_iou
__init__.py 685B
data_loader.py 8KB
trained_models
.gitkeep 72B
model
__init__.py 15B
EDRNet.py 12KB
resattention.py 8KB
edrnet_train.py 5KB
README.md 3KB
Data
test_results
.gitkeep 72B
trainingDataset.zip 26.78MB
共 14 条
- 1
资源评论
程序员柳
- 粉丝: 6567
- 资源: 1443
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功