File size: 9,058 Bytes
49d8ca6
 
 
65be879
49d8ca6
65be879
49d8ca6
65be879
49d8ca6
 
65be879
49d8ca6
 
 
 
 
 
 
 
65be879
49d8ca6
 
aaf8f66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49d8ca6
 
 
 
 
13756e0
49d8ca6
 
 
 
 
 
 
 
 
 
 
28e1849
 
 
 
 
 
49d8ca6
 
 
 
 
 
 
 
65be879
49d8ca6
 
 
 
 
aaf8f66
49d8ca6
 
 
 
 
aaf8f66
 
 
49d8ca6
 
 
 
 
 
 
 
 
 
aaf8f66
 
 
49d8ca6
aaf8f66
 
 
49d8ca6
 
aaf8f66
49d8ca6
 
 
aaf8f66
 
49d8ca6
 
 
 
 
 
 
 
aaf8f66
49d8ca6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aaf8f66
49d8ca6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- en

license: mit

pretty_name: CSD - Comprehensive Snow Dataset (Unofficial Mirror)

task_categories:
- image-to-image

tags:
- image-restoration
- desnowing
- snow-removal
- computer-vision
- synthetic
- pytorch
- clearview

size_categories:
- 10K<n<100K

configs:
- config_name: snow
  drop_labels: true
  data_files:
  - split: train
    path: Train/Snow/*.png
  - split: test
    path: Test/Snow/*.png
- config_name: gt
  drop_labels: true
  data_files:
  - split: train
    path: Train/Gt/*.png
  - split: test
    path: Test/Gt/*.png
- config_name: mask
  drop_labels: true
  data_files:
  - split: train
    path: Train/Mask/*.png
  - split: test
    path: Test/Mask/*.png
---

# CSD: Comprehensive Snow Dataset (Unofficial Mirror)

<p align="center">
  <video controls autoplay loop muted playsinline width="900" poster="https://huggingface.co/datasets/dronefreak/CSD/resolve/main/assets/demo_banner_poster.jpg" src="https://huggingface.co/datasets/dronefreak/CSD/resolve/main/assets/demo_banner.mp4"><img src="banner.jpg" alt="CSD sample synthetic snow/clean pairs"/></video>
</p>

![Task](https://img.shields.io/badge/Task-Image%20Restoration-blue?style=flat-square)
![Domain](https://img.shields.io/badge/Domain-Synthetic%20Snow-0aa1a7?style=flat-square)
![Dataset](https://img.shields.io/badge/Dataset-CSD-orange?style=flat-square)
![Pairs](https://img.shields.io/badge/Pairs-10%2C000-success?style=flat-square)
![Splits](https://img.shields.io/badge/Splits-Train%20%7C%20Test-blueviolet?style=flat-square)
![License](https://img.shields.io/badge/License-MIT-lightgrey?style=flat-square)

> **Unofficial redistribution of CSD (Comprehensive Snow Dataset)**, the synthetic single-image desnowing dataset from Chen et al. (ICCV 2021), packaged for direct use with [ClearView](https://github.com/dronefreak/clearview)'s dataset pipeline. This is ClearView's first **desnowing** dataset, distinct from its existing deraining-focused mirrors.

## Dataset Description

- **Homepage:** https://github.com/weitingchen83/ICCV2021-Single-Image-Desnowing-HDCWNet
- **Repository:** https://github.com/weitingchen83/ICCV2021-Single-Image-Desnowing-HDCWNet
- **Paper:** https://openaccess.thecvf.com/content/ICCV2021/papers/Chen_ALL_Snow_Removed_Single_Image_Desnowing_Algorithm_Using_Hierarchical_Dual-Tree_ICCV_2021_paper.pdf

## Disclaimer

This repository is **not** an official release of CSD.

CSD was created by Wei-Ting Chen, Hao-Yu Fang, Cheng-Lin Hsieh, Cheng-Che Tsai, I-Hsiang Chen, Jian-Jiun Ding, and Sy-Yen Kuo. 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. The official repository's MIT license, discussed under [License](#license) below, is what actually governs redistribution here.)

---

# Dataset Overview

CSD is a **synthetic** single-image desnowing benchmark, built by compositing rendered snow particles (varying transparency, size, and position, with Gaussian blur applied for realistic focus falloff) onto clean photographs, alongside a mild haze layer to better approximate the look of a real snowfall scene rather than isolated falling-snow streaks. Each pair also ships a binary snow mask locating exactly where the synthetic snow was composited, useful for auxiliary supervision (e.g. a mask-prediction loss) even though ClearView's own training pipeline doesn't currently consume it.

- **Training**: 8,000 pairs.
- **Testing**: 2,000 pairs.
- **Resolution**: 640&times;480, `.png` (lossless, converted from the official `.tif`, see below).

---

# Changes from the Official Release

No images added or removed, and no relabeling. The `Train/{Gt,Mask,Snow}` and `Test/{Gt,Mask,Snow}` directory layout matches the official archive's structure exactly, this is a full mirror, not a subsample.

**File format only:** the official archive ships LZW-compressed `.tif` files, which most browsers (and so the Hugging Face Dataset Viewer) cannot display. Every image was converted to `.png`, which is also lossless. Each conversion was checked pixel for pixel (identical values, color mode and size) against its source `.tif`, and each source `.tif` was first matched by SHA-256 against the file previously mirrored here. Filenames are unchanged apart from the extension (`1000.tif` is now `1000.png`). The PNGs take less than half the space of the original TIFFs (9.8 GB vs 23.7 GB). The original `.tif` files remain available in this repository's commit history.

---

# Dataset Structure

```text
csd/
├── README.md
├── banner.jpg
├── Train/
│   ├── Gt/      # {id}.png, 8,000 clean images
│   ├── Snow/    # {id}.png, 8,000 synthetic snow images
│   └── Mask/    # {id}.png, 8,000 binary snow masks
└── Test/
    ├── Gt/      # {id}.png, 2,000 clean images
    ├── Snow/    # {id}.png, 2,000 synthetic snow images
    └── Mask/    # {id}.png, 2,000 binary snow masks
```

`Gt`/`Snow`/`Mask` share identical filenames within each split (e.g. `1000.png` appears in all three), exact-stem matching, no custom parser needed.

| Split | Pairs | Resolution | Format |
|---|---|---|---|
| `Train` | 8,000 | 640&times;480 | `.png` |
| `Test` | 2,000 | 640&times;480 | `.png` |
| **Total** | **10,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 restoration.

CSD's `Gt`/`Snow` folders share identical filenames, so ClearView's generic `ImagePairDataset` works directly, with its default extensions and **no dedicated parser needed**, unlike SPA-Data or DDN-Data:

```python
from huggingface_hub import snapshot_download
from clearview.data import ImagePairDataset, get_train_transforms, get_val_transforms

data_dir = snapshot_download(repo_id="dronefreak/CSD", repo_type="dataset")

train_ds = ImagePairDataset(
    rainy_dir=f"{data_dir}/Train/Snow",   # "rainy_dir" is just the degraded-image arg name; snow works the same way
    clean_dir=f"{data_dir}/Train/Gt",
    transform=get_train_transforms(crop_size=(256, 256)),
)
test_ds = ImagePairDataset(
    rainy_dir=f"{data_dir}/Test/Snow",
    clean_dir=f"{data_dir}/Test/Gt",
    transform=get_val_transforms(),
)

snowy, clean = train_ds[0]
```

The `clearview-train` CLI works too: `--dataset-type pair --data-dir <snapshot> --train-rainy Train/Snow --train-clean Train/Gt --val-rainy Test/Snow --val-clean Test/Gt`.

---

# Dataset Sources

## Original Paper

**ALL Snow Removed: Single Image Desnowing Algorithm Using Hierarchical Dual-Tree Complex Wavelet Representation and Contradict Channel Loss**

Wei-Ting Chen, Hao-Yu Fang, Cheng-Lin Hsieh, Cheng-Che Tsai, I-Hsiang Chen, Jian-Jiun Ding, Sy-Yen Kuo

IEEE/CVF International Conference on Computer Vision (ICCV), 2021, pp. 4196&ndash;4205.

- **CVF Open Access (PDF):** https://openaccess.thecvf.com/content/ICCV2021/papers/Chen_ALL_Snow_Removed_Single_Image_Desnowing_Algorithm_Using_Hierarchical_Dual-Tree_ICCV_2021_paper.pdf

## Official Resources

- **Code + Dataset:** https://github.com/weitingchen83/ICCV2021-Single-Image-Desnowing-HDCWNet
- **Dataset download (Google Drive):** linked from the official repository's README

---

# Attribution

**All credit for the dataset belongs entirely to the original authors: Wei-Ting Chen, Hao-Yu Fang, Cheng-Lin Hsieh, Cheng-Che Tsai, I-Hsiang Chen, Jian-Jiun Ding, and Sy-Yen Kuo.**

If you use this dataset in your research, **please cite the original publication below.**

---

# License

The official repository ships an explicit **MIT License**. This repository is distributed under the same terms.

MIT is a permissive license: you're free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies, provided the original copyright notice and permission notice are retained. No non-commercial restriction, no access-request gate, the cleanest licensing situation of any dataset mirrored into this collection so far.

---

# Citation

If you use this dataset, please cite:

```bibtex
@InProceedings{Chen_2021_ICCV,
  author = {Chen, Wei-Ting and Fang, Hao-Yu and Hsieh, Cheng-Lin and Tsai, Cheng-Che and Chen, I-Hsiang and Ding, Jian-Jiun and Kuo, Sy-Yen},
  title = {ALL Snow Removed: Single Image Desnowing Algorithm Using Hierarchical Dual-Tree Complex Wavelet Representation and Contradict Channel Loss},
  booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
  month = {October},
  year = {2021},
  pages = {4196-4205}
}
```

---

# Acknowledgements

We sincerely thank Wei-Ting Chen, Hao-Yu Fang, Cheng-Lin Hsieh, Cheng-Che Tsai, I-Hsiang Chen, Jian-Jiun Ding, and Sy-Yen Kuo for creating and publicly releasing this dataset, and for licensing it permissively.