prenet.md 2.6 KB
Newer Older
S
simonsLiang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# PReNet

## 1 Introduction
"Progressive Image Deraining Networks: A Better and Simpler Baseline" provides a better and simpler baseline deraining network by considering network architecture, input and output, and loss functions.

<div align="center">
    <img src="https://github.com/simonsLiang/PReNet_paddle/blob/main/data/net.jpg" width=800">
</div>

## 2 How to use

### 2.1 Prepare dataset

  The dataset(RainH.zip) used by PReNet can be downloaded from [here](https://pan.baidu.com/s/1_vxCatOV3sOA6Vkx1l23eA?pwd=vitu),uncompress it and get two folders(RainTrainH、Rain100H).

  The structure of dataset is as following:

```
W
wangna11BD 已提交
19
    ├── RainH
S
simonsLiang 已提交
20
        ├── RainTrainH
W
wangna11BD 已提交
21 22 23 24 25 26 27 28 29 30
        |    ├── rain
        |    |    ├── 1.png
        |    |    └── 2.png
        |    |        .
        |    |        .
        |    └── norain
        |        ├── 1.png
        |        └── 2.png
        |            .
        |            .
S
simonsLiang 已提交
31 32
        └── Rain100H
            ├── rain
W
wangna11BD 已提交
33 34 35 36
            |    ├── 001.png
            |    └── 002.png
            |        .
            |        .
S
simonsLiang 已提交
37 38 39 40 41
            └── norain
                ├── 001.png
                └── 002.png
                    .
                    .
W
wangna11BD 已提交
42
  ```
S
simonsLiang 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57

### 2.2 Train/Test


  train model:
  ```
     python -u tools/main.py --config-file configs/prenet.yaml
  ```

  test model:
  ```
     python tools/main.py --config-file configs/prenet.yaml --evaluate-only --load ${PATH_OF_WEIGHT}
  ```

## 3 Results
W
wangna11BD 已提交
58 59 60 61 62 63 64 65
Evaluated on RGB channels, scale pixels in each border are cropped before evaluation.

The metrics are PSNR / SSIM.

| Method | Rain100H | 
|---|---|
| PReNet  | 29.5037 / 0.899 | 

S
simonsLiang 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79

Input:

<div align="center">
    <img src="https://github.com/simonsLiang/PReNet_paddle/blob/main/data/rain-001.png" width=300">
</div>

Output:

<div align="center">
    <img src="https://github.com/simonsLiang/PReNet_paddle/blob/main/data/derain-rain-001.png" width=300">
</div>

## 4 Model Download
S
simonsLiang 已提交
80

S
simonsLiang 已提交
81 82 83 84 85 86 87
| model | dataset |
|---|---|
| [PReNet](https://paddlegan.bj.bcebos.com/models/PReNet.pdparams)  | [RainH.zip](https://pan.baidu.com/s/1_vxCatOV3sOA6Vkx1l23eA?pwd=vitu) |




S
simonsLiang 已提交
88

S
simonsLiang 已提交
89 90 91 92 93 94 95 96 97 98 99 100
# References

- 1. [Progressive Image Deraining Networks: A Better and Simpler Baseline](https://arxiv.org/pdf/1901.09221v3.pdf)


```
@inproceedings{ren2019progressive,
   title={Progressive Image Deraining Networks: A Better and Simpler Baseline},
   author={Ren, Dongwei and Zuo, Wangmeng and Hu, Qinghua and Zhu, Pengfei and Meng, Deyu},
   booktitle={IEEE Conference on Computer Vision and Pattern Recognition},
   year={2019},
 }
S
simonsLiang 已提交
101