Show each sample as one viewer row: add per-split metadata pairing input and target

#2
Files changed (3) hide show
  1. README.md +24 -9
  2. testing/metadata.jsonl +0 -0
  3. training/metadata.jsonl +0 -0
README.md CHANGED
@@ -22,18 +22,18 @@ size_categories:
22
  - 10K<n<100K
23
 
24
  configs:
25
- - config_name: rainy
26
  data_files:
27
  - split: train
28
- path: training/rainy_image/*/*.jpg
 
 
 
29
  - split: test
30
- path: testing/rainy_image/*.jpg
31
- - config_name: clean
32
- data_files:
33
- - split: train
34
- path: training/ground_truth/*.jpg
35
- - split: test
36
- path: testing/ground_truth/*.jpg
37
  ---
38
 
39
  # DDN-Data / Rain1400: Synthetic Single-Image Deraining Dataset (Unofficial Mirror)
@@ -87,6 +87,8 @@ DDN-Data (Rain1400) is a **synthetic** single-image deraining dataset: 1,000 cle
87
 
88
  # Changes from the Official Release
89
 
 
 
90
  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.
91
 
92
  ---
@@ -120,6 +122,19 @@ Each clean image maps to 14 rainy variants via filename pattern `{clean_id}_{var
120
 
121
  ---
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  # Usage with ClearView
124
 
125
  This dataset is designed to be used directly with [ClearView](https://github.com/dronefreak/clearview), an open-source PyTorch framework for image deraining.
 
22
  - 10K<n<100K
23
 
24
  configs:
25
+ - config_name: default
26
  data_files:
27
  - split: train
28
+ path:
29
+ - training/metadata.jsonl
30
+ - training/ground_truth/*.jpg
31
+ - training/rainy_image/*/*.jpg
32
  - split: test
33
+ path:
34
+ - testing/metadata.jsonl
35
+ - testing/ground_truth/*.jpg
36
+ - testing/rainy_image/*.jpg
 
 
 
37
  ---
38
 
39
  # DDN-Data / Rain1400: Synthetic Single-Image Deraining Dataset (Unofficial Mirror)
 
87
 
88
  # Changes from the Official Release
89
 
90
+ **Added: one `metadata.jsonl` per split folder** (`training/` and `testing/`). Each line links the files of one sample, so the Dataset Viewer and `load_dataset` show every sample as one row: `rainy` and `clean`, plus `id` (`{clean_id}_{variant}`), `clean_id` and `rain_variant` (1 to 14). Each clean image therefore appears in 14 rows, once per rain variant. The image files themselves are untouched.
91
+
92
  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.
93
 
94
  ---
 
122
 
123
  ---
124
 
125
+ # Usage with 🤗 Datasets
126
+
127
+ ```python
128
+ from datasets import load_dataset
129
+
130
+ ds = load_dataset("dronefreak/DDN-Data", split="train") # splits: train, test
131
+ row = ds[0]
132
+ row["rainy"], row["clean"] # PIL images
133
+ row["clean_id"], row["rain_variant"] # e.g. "1", 1
134
+ ```
135
+
136
+ ---
137
+
138
  # Usage with ClearView
139
 
140
  This dataset is designed to be used directly with [ClearView](https://github.com/dronefreak/clearview), an open-source PyTorch framework for image deraining.
testing/metadata.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
training/metadata.jsonl ADDED
The diff for this file is too large to render. See raw diff