Datasets:
Tasks:
Image-to-Image
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
ArXiv:
License:
File size: 12,201 Bytes
aa5a107 fb91cf7 aa5a107 fb91cf7 aa5a107 fb91cf7 aa5a107 fb91cf7 aa5a107 fb91cf7 aa5a107 46ea265 aa5a107 46ea265 aa5a107 46ea265 aa5a107 46ea265 aa5a107 3d38196 aa5a107 fb91cf7 aa5a107 46ea265 3d38196 aa5a107 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | ---
language:
- en
license: other
license_name: unspecified-see-card
pretty_name: DDN-Data / Rain1400 (Unofficial Mirror)
task_categories:
- image-to-image
tags:
- image-restoration
- deraining
- rain-removal
- computer-vision
- synthetic
- pytorch
- clearview
size_categories:
- 10K<n<100K
---
# DDN-Data / Rain1400: Synthetic Single-Image Deraining Dataset (Unofficial Mirror)
<p align="center">
<img src="banner.jpg" alt="DDN-Data sample synthetic rain/clean pairs"/>
</p>






> **Unofficial redistribution of DDN-Data (also widely known as "Rain1400")**, the synthetic single-image deraining dataset from Fu et al. (CVPR 2017), packaged for direct use with [ClearView](https://github.com/dronefreak/clearview)'s dataset pipeline.
## Disclaimer
This repository is **not** an official release of DDN-Data/Rain1400.
DDN-Data was created by Xueyang Fu, Jiabin Huang, Delu Zeng, Yue Huang, Xinghao Ding, and John Paisley. This repository does **not** claim ownership of any images or metadata, and attributes the dataset to its original creators. (We describe them as "creators" rather than "copyright holders" deliberately — copyright in academic datasets can rest with an author's university, a funding body, or otherwise, under arrangements we have no way to verify from the outside.)
**On licensing — please read before relying on this mirror.** We looked for a formal license covering this dataset (project page, associated code repositories, paper supplementary material) and found **none** — the original distribution is a plain Baidu Cloud / Google Drive link with no accompanying terms of use. This is not unique to this dataset: it's common across this research niche (see our [SPA-Data](https://huggingface.co/datasets/dronefreak/SPA-Data) and [RealRain-1k](https://huggingface.co/datasets/dronefreak/RealRain-1k) mirrors for the two datasets in this collection where we *did* find explicit licenses, by contrast). In the absence of an explicit license, we have chosen to preserve this dataset for research reproducibility while providing full attribution and making the mirror removable on request — this is a decision we're making under that uncertainty, not a claim that we've established a legal right to redistribute it. Concretely:
- Full attribution and citation to the original creators (below).
- No claim of any rights beyond hosting a copy.
- **If the copyright holder, or an authorized representative, requests removal, we will comply promptly.**
Separately, another unofficial mirror of this same dataset ([jinnovation/rainy-image-dataset](https://github.com/jinnovation/rainy-image-dataset)) has been publicly available since 2018, suggesting this style of redistribution has existed within the research community for some time — though we recognize that this alone doesn't establish any redistribution right; the absence of an objection is not the same as permission.
If you need certainty about redistribution rights (e.g. for commercial use), contact the dataset's creators or their institution directly rather than relying on this mirror.
**A related data point**: the raw download includes the authors' own `readme.txt` (reproduced verbatim as [`original_readme.txt`](original_readme.txt) in this repo), which asks anyone using the dataset to cite their two papers. This indicates the authors expected the dataset to be used in subsequent research — it does not, on its own, constitute an explicit redistribution license.
---
# Dataset Description
DDN-Data (Rain1400) is a **synthetic** single-image deraining dataset: 1,000 clean real photographs, each with 14 synthetically rendered rain streaks overlaid at different orientations and magnitudes (per the authors' own `readme.txt`, generated using Photoshop's rain-effect technique). It was introduced alongside the "Deep Detail Network" (DDN) architecture and remains one of the most widely used deraining benchmarks — it's also one of the four datasets composited into the [Rain13K](https://huggingface.co/datasets/dronefreak/Rain13K) training set used by MPRNet, Restormer, and most subsequent SOTA deraining papers (there listed as "Rain14000").
- **Training**: 900 clean images (randomly selected by the authors) × 14 rain variants = **12,600** rainy images.
- **Testing**: the remaining 100 clean images × 14 rain variants = **1,400** rainy images.
---
# Changes from the Official Release
None beyond repackaging for direct download. No images added, removed, or modified. No relabeling. The `training/{rainy_image,ground_truth}` and `testing/{rainy_image,ground_truth}` directory layout matches the dataset's conventional distribution structure exactly.
---
# Dataset Structure
```text
ddn-data/
├── README.md
├── banner.jpg
├── original_readme.txt
├── training/
│ ├── rainy_image/
│ │ ├── part_1/ # {clean_id}_{variant}.jpg — 6,300 images
│ │ └── part_2/ # {clean_id}_{variant}.jpg — 6,300 images
│ └── ground_truth/ # {clean_id}.jpg — 900 images
└── testing/
├── rainy_image/ # {clean_id}_{variant}.jpg — 1,400 images
└── ground_truth/ # {clean_id}.jpg — 100 images
```
**Note on `training/rainy_image`'s `part_1`/`part_2` split**: this is *not* a meaningful data split (not a train/val split, not grouped by variant or scene) — it exists purely because Hugging Face Hub rejects any single directory containing more than 10,000 files, and the flat 12,600-file `rainy_image` folder exceeds that. The two subfolders are an arbitrary alternating-file split of the same flat set. ClearView's `Rain1400Dataset`/`DDNDataDataset` parser scans `rainy_dir` recursively, so pointing it at `training/rainy_image` (the parent of both subfolders) finds all 12,600 files transparently — no manual merging needed.
Each clean image maps to 14 rainy variants via filename pattern `{clean_id}_{variant}.jpg → {clean_id}.jpg` (e.g. `100_1.jpg` through `100_14.jpg` → `100.jpg`) — this is why ClearView ships a dedicated `Rain1400Dataset`/`DDNDataDataset` parser rather than a generic exact-stem matcher.
| Split | Clean images | Rainy images (pairs) |
|---|---|---|
| `training` | 900 | 12,600 |
| `testing` | 100 | 1,400 |
| **Total** | **1,000** | **14,000** |
---
# Usage with ClearView
This dataset is designed to be used directly with [ClearView](https://github.com/dronefreak/clearview), an open-source PyTorch framework for image deraining.
```python
from huggingface_hub import snapshot_download
from clearview.data import Rain1400Dataset, get_train_transforms, get_val_transforms
data_dir = snapshot_download(repo_id="dronefreak/DDN-Data", repo_type="dataset")
train_ds = Rain1400Dataset(
rainy_dir=f"{data_dir}/training/rainy_image",
clean_dir=f"{data_dir}/training/ground_truth",
transform=get_train_transforms(crop_size=(256, 256)),
)
test_ds = Rain1400Dataset(
rainy_dir=f"{data_dir}/testing/rainy_image",
clean_dir=f"{data_dir}/testing/ground_truth",
transform=get_val_transforms(),
)
rainy, clean = train_ds[0]
```
Or directly via the training CLI:
```bash
clearview-train \
--data-dir <path-to-downloaded-snapshot> \
--dataset-type rain1400 \
--train-rainy training/rainy_image --train-clean training/ground_truth \
--val-rainy testing/rainy_image --val-clean testing/ground_truth \
--model unet --batch-size 16 --crop-size 256 --epochs 100 \
--loss l1 --mixed-precision \
--output-dir ./runs/ddn_unet_baseline
```
Note that `evaluate.py` applies no resize/crop by default, and this dataset's test images are **native (variable) resolution** — keep `--batch-size 1` for evaluation (its default) to avoid a batch-collation crash.
---
# Dataset Sources
The authors report this same dataset across **two** papers — please cite both if you use it (see [Citation](#citation)).
## Original Papers
**Removing Rain from Single Images via a Deep Detail Network**
Xueyang Fu, Jiabin Huang, Delu Zeng, Yue Huang, Xinghao Ding, John Paisley
IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2017, pp. 1715–1723.
- **CVF Open Access (PDF):** https://openaccess.thecvf.com/content_cvpr_2017/papers/Fu_Removing_Rain_From_CVPR_2017_paper.pdf
- No arXiv preprint is available for this paper (CVPR proceedings only).
**Clearing the Skies: A Deep Network Architecture for Single-Image Rain Removal**
Xueyang Fu, Jiabin Huang, Xinghao Ding, Yinghao Liao, John Paisley
IEEE Transactions on Image Processing, vol. 26, no. 6, pp. 2944–2956, 2017.
- **arXiv:** https://arxiv.org/abs/1609.02087
## Official Resources
- **Author's project page:** https://xueyangfu.github.io/projects/cvpr2017.html (dataset download links: Baidu Cloud, Google Drive)
- **Research group homepage:** https://xmu-smartdsp.github.io/
- **Original `readme.txt`** (bundled with the raw download, reproduced verbatim in this repo as [`original_readme.txt`](original_readme.txt))
## Precedent Unofficial Mirror
- **GitHub:** https://github.com/jinnovation/rainy-image-dataset — public since 2018, credits the same original authors, no formal license stated there either.
---
# Attribution
**All credit for the dataset belongs entirely to the original authors: Xueyang Fu, Jiabin Huang, Delu Zeng, Yue Huang, Xinghao Ding, Yinghao Liao, and John Paisley** (across the two papers that report this dataset).
If you use this dataset in your research, **please cite both original publications below.**
---
# License
**No formal license was located** for this dataset — see the [Disclaimer](#disclaimer) above for our reasoning for mirroring it anyway under that uncertainty (full attribution, reproducibility purpose, removable on request). This repository makes no claim to any rights over the dataset content beyond hosting a copy.
---
# Citation
If you use this dataset, please cite **both** papers, per the authors' own request in their original `readme.txt`:
```bibtex
@InProceedings{Fu_2017_CVPR,
author = {Fu, Xueyang and Huang, Jiabin and Zeng, Delu and Huang, Yue and Ding, Xinghao and Paisley, John},
title = {Removing Rain From Single Images via a Deep Detail Network},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {July},
year = {2017},
pages = {1715-1723}
}
@article{Fu_2017_TIP,
author = {Fu, Xueyang and Huang, Jiabin and Ding, Xinghao and Liao, Yinghao and Paisley, John},
title = {Clearing the Skies: A Deep Network Architecture for Single-Image Rain Removal},
journal = {IEEE Transactions on Image Processing},
volume = {26},
number = {6},
pages = {2944-2956},
year = {2017}
}
@article{DBLP:journals/corr/FuHDLP16,
author = {Xueyang Fu and
Jiabin Huang and
Xinghao Ding and
Yinghao Liao and
John W. Paisley},
title = {Clearing the Skies: {A} deep network architecture for single-image
rain removal},
journal = {CoRR},
volume = {abs/1609.02087},
year = {2016},
url = {http://arxiv.org/abs/1609.02087},
eprinttype = {arXiv},
eprint = {1609.02087},
timestamp = {Sat, 24 Jun 2023 08:49:12 +0200},
biburl = {https://dblp.org/rec/journals/corr/FuHDLP16.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
---
# Acknowledgements
We sincerely thank Xueyang Fu, Jiabin Huang, Delu Zeng, Yue Huang, Xinghao Ding, Yinghao Liao, and John Paisley for creating and publicly releasing this foundational deraining benchmark.
|