Datasets:
snow imagewidth (px) 640 640 | clean imagewidth (px) 640 640 | mask imagewidth (px) 640 640 | id stringlengths 1 4 |
|---|---|---|---|
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 |
CSD: Comprehensive Snow Dataset (Unofficial Mirror)
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's dataset pipeline. This is ClearView's first desnowing dataset, distinct from its existing deraining-focused mirrors.
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 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Γ480,
.png(lossless, converted from the official.tif, see below).
Changes from the Official Release
Added: one metadata.jsonl per split folder (Train/ and Test/). Each line links the files of one sample, so the Dataset Viewer and load_dataset show every sample as one row: snow, clean and mask (the binary snow mask), plus its id. The image files themselves are untouched.
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
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Γ480 | .png |
Test |
2,000 | 640Γ480 | .png |
| Total | 10,000 |
Usage with π€ Datasets
from datasets import load_dataset
ds = load_dataset("dronefreak/CSD", split="train") # splits: train, test
row = ds[0]
row["snow"], row["clean"], row["mask"] # PIL images
row["id"] # e.g. "1"
Usage with ClearView
This dataset is designed to be used directly with 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:
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β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:
@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.
- Downloads last month
- 990