dronefreak commited on
Commit
d9f3d95
·
verified ·
1 Parent(s): e4506cd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +210 -0
README.md ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+
5
+ license: unknown
6
+
7
+ pretty_name: RainDrop / DeRaindrop (Unofficial Mirror)
8
+
9
+ task_categories:
10
+ - image-to-image
11
+
12
+ tags:
13
+ - image-restoration
14
+ - raindrop-removal
15
+ - rain-removal
16
+ - computer-vision
17
+ - real-world
18
+ - pytorch
19
+ - clearview
20
+
21
+ size_categories:
22
+ - 1K<n<10K
23
+
24
+ configs:
25
+ - config_name: rain
26
+ data_files:
27
+ - split: train
28
+ path: train/data/*
29
+ - split: test_a
30
+ path: test_a/data/*
31
+ - split: test_b
32
+ path: test_b/data/*
33
+ - config_name: clean
34
+ data_files:
35
+ - split: train
36
+ path: train/gt/*
37
+ - split: test_a
38
+ path: test_a/gt/*
39
+ - split: test_b
40
+ path: test_b/gt/*
41
+ ---
42
+
43
+ # RainDrop / DeRaindrop: Lens-Adherent Raindrop Removal Dataset (Unofficial Mirror)
44
+
45
+ <p align="center">
46
+ <img src="banner.jpg" alt="RainDrop sample raindrop/clean pairs"/>
47
+ </p>
48
+
49
+ ![Task](https://img.shields.io/badge/Task-Image%20Restoration-blue?style=flat-square)
50
+ ![Domain](https://img.shields.io/badge/Domain-Raindrop%20Removal-0aa1a7?style=flat-square)
51
+ ![Dataset](https://img.shields.io/badge/Dataset-RainDrop-orange?style=flat-square)
52
+ ![Pairs](https://img.shields.io/badge/Pairs-1%2C168-success?style=flat-square)
53
+ ![Splits](https://img.shields.io/badge/Splits-Train%20%7C%20Test--A%20%7C%20Test--B-blueviolet?style=flat-square)
54
+ ![License](https://img.shields.io/badge/License-Not%20Formally%20Specified-lightgrey?style=flat-square)
55
+
56
+ > **Unofficial redistribution of RainDrop (also known as DeRaindrop)**, the lens-adherent raindrop removal dataset from Qian et al. (CVPR 2018), packaged for direct use with [ClearView](https://github.com/dronefreak/clearview)'s dataset pipeline. This is ClearView's first **raindrop removal** dataset, a physically distinct degradation from rain streaks or general haze.
57
+
58
+ ## Dataset Description
59
+
60
+ - **Repository:** https://github.com/rui1996/DeRaindrop
61
+ - **Paper:** https://arxiv.org/abs/1711.10098
62
+
63
+ ## Disclaimer
64
+
65
+ This repository is **not** an official release of RainDrop/DeRaindrop.
66
+
67
+ RainDrop was created by Rui Qian, Robby T. Tan, Wenhan Yang, Jiajun Su, and Jiaying Liu. 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.)
68
+
69
+ **On licensing, please read before relying on this mirror.** We looked for a formal license covering this dataset (project page, code repository, paper supplementary material) and found **none**, the original distribution is a plain Google Drive link with no accompanying terms of use. This is the same situation as this collection's [Rain13K](https://huggingface.co/datasets/dronefreak/Rain13K) and [DDN-Data](https://huggingface.co/datasets/dronefreak/DDN-Data) mirrors: no formal license found anywhere, but no stated restriction either (contrast this with a dataset that explicitly says "research purposes only", which we treat differently and do not mirror). 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:
70
+
71
+ - Full attribution and citation to the original creators (below).
72
+ - No claim of any rights beyond hosting a copy.
73
+ - **If the copyright holder, or an authorized representative, requests removal, we will comply promptly.**
74
+
75
+ 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.
76
+
77
+ ---
78
+
79
+ # Dataset Overview
80
+
81
+ RainDrop is a **real-world** raindrop removal benchmark, physically distinct from rain-streak deraining: instead of streaks falling through a scene, it captures droplets adhered to a glass pane or camera lens. The authors captured pairs using two panes of glass side by side, one clean, one sprayed with water, so the background scene stays spatially aligned between each pair.
82
+
83
+ - **Training**: 861 pairs.
84
+ - **Testing (A)**: 58 pairs, `.png`.
85
+ - **Testing (B)**: 249 pairs, `.jpg` (a superset benchmark; Test-A is commonly used for well-aligned qualitative comparison, Test-B for the fuller quantitative benchmark).
86
+
87
+ Note: some downstream papers cite Test-B at 239 pairs; this mirror's actual file count is 249, verified directly against the official download rather than the commonly-repeated figure.
88
+
89
+ ---
90
+
91
+ # Changes from the Official Release
92
+
93
+ None beyond repackaging. No images added, removed, or modified. No relabeling. The `train/{data,gt}`, `test_a/{data,gt}`, and `test_b/{data,gt}` directory layout matches the official archive's structure exactly.
94
+
95
+ ---
96
+
97
+ # Dataset Structure
98
+
99
+ ```text
100
+ raindrop/
101
+ ├── README.md
102
+ ├── banner.jpg
103
+ ├── train/
104
+ │ ├── data/ # {id}_rain.png (861 images)
105
+ │ └── gt/ # {id}_clean.png (861 images)
106
+ ├── test_a/
107
+ │ ├── data/ # {id}_rain.png (58 images)
108
+ │ └── gt/ # {id}_clean.png (58 images)
109
+ └── test_b/
110
+ ├── data/ # {id}_rain.jpg (249 images)
111
+ └── gt/ # {id}_clean.jpg (249 images)
112
+ ```
113
+
114
+ Rainy and clean images share a common numeric ID but different filename **suffixes** (`{id}_rain.ext` / `{id}_clean.ext`), not identical stems, this is why ClearView ships a dedicated `RainDropDataset` parser rather than relying on the generic `ImagePairDataset` (which expects exact-stem matches).
115
+
116
+ | Split | Pairs | Format |
117
+ |---|---|---|
118
+ | `train` | 861 | `.png` |
119
+ | `test_a` | 58 | `.png` |
120
+ | `test_b` | 249 | `.jpg` |
121
+ | **Total** | **1,168** | |
122
+
123
+ ---
124
+
125
+ # Usage with ClearView
126
+
127
+ This dataset is designed to be used directly with [ClearView](https://github.com/dronefreak/clearview), an open-source PyTorch framework for image restoration.
128
+
129
+ ```python
130
+ from huggingface_hub import snapshot_download
131
+ from clearview.data import RainDropDataset, get_train_transforms, get_val_transforms
132
+
133
+ data_dir = snapshot_download(repo_id="dronefreak/RainDrop", repo_type="dataset")
134
+
135
+ train_ds = RainDropDataset(root_dir=data_dir, split="train", transform=get_train_transforms(crop_size=(256, 256)))
136
+ test_a_ds = RainDropDataset(root_dir=data_dir, split="test_a", transform=get_val_transforms())
137
+ test_b_ds = RainDropDataset(root_dir=data_dir, split="test_b", transform=get_val_transforms())
138
+
139
+ rainy, clean = train_ds[0]
140
+ ```
141
+
142
+ Or directly via the training CLI:
143
+
144
+ ```bash
145
+ clearview-train \
146
+ --data-dir <path-to-downloaded-snapshot> \
147
+ --dataset-type pair \
148
+ --train-rainy train/data --train-clean train/gt \
149
+ --val-rainy test_a/data --val-clean test_a/gt \
150
+ --model unet --batch-size 16 --crop-size 256 --epochs 100 \
151
+ --loss l1 --mixed-precision \
152
+ --output-dir ./runs/raindrop_unet_baseline
153
+ ```
154
+
155
+ Note: `--dataset-type pair` maps to the generic `ImagePairDataset`, which expects identical filename stems and will **not** match this dataset's `{id}_rain`/`{id}_clean` suffix convention out of the box. Use the Python API above (`RainDropDataset`) for correct pairing until a dedicated CLI `--dataset-type raindrop` is wired in.
156
+
157
+ ---
158
+
159
+ # Dataset Sources
160
+
161
+ ## Original Paper
162
+
163
+ **Attentive Generative Adversarial Network for Raindrop Removal from a Single Image**
164
+
165
+ Rui Qian, Robby T. Tan, Wenhan Yang, Jiajun Su, Jiaying Liu
166
+
167
+ IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
168
+
169
+ - **arXiv:** https://arxiv.org/abs/1711.10098
170
+ - **CVPR Open Access (PDF):** https://openaccess.thecvf.com/content_cvpr_2018/papers/Qian_Attentive_Generative_Adversarial_CVPR_2018_paper.pdf
171
+
172
+ ## Official Resources
173
+
174
+ - **Code + Dataset:** https://github.com/rui1996/DeRaindrop
175
+
176
+ ---
177
+
178
+ # Attribution
179
+
180
+ **All credit for the dataset belongs entirely to the original authors: Rui Qian, Robby T. Tan, Wenhan Yang, Jiajun Su, and Jiaying Liu.**
181
+
182
+ If you use this dataset in your research, **please cite the original publication below.**
183
+
184
+ ---
185
+
186
+ # License
187
+
188
+ **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.
189
+
190
+ ---
191
+
192
+ # Citation
193
+
194
+ If you use this dataset, please cite:
195
+
196
+ ```bibtex
197
+ @InProceedings{Qian_2018_CVPR,
198
+ author = {Qian, Rui and Tan, Robby T. and Yang, Wenhan and Su, Jiajun and Liu, Jiaying},
199
+ title = {Attentive Generative Adversarial Network for Raindrop Removal From a Single Image},
200
+ booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
201
+ month = {June},
202
+ year = {2018}
203
+ }
204
+ ```
205
+
206
+ ---
207
+
208
+ # Acknowledgements
209
+
210
+ We sincerely thank Rui Qian, Robby T. Tan, Wenhan Yang, Jiajun Su, and Jiaying Liu for creating and publicly releasing this foundational raindrop-removal benchmark.