Datasets:
Show each sample as one viewer row: add per-split metadata pairing input and target
#8
by dronefreak - opened
Files changed (3)
- README.md+22-18
- Test/metadata.jsonlAdded
- Train/metadata.jsonlAdded
21 unmodified lines2223242526252627292829303131323334353637383940414243444532333435363737 unmodified lines757677787980818226 unmodified lines10911011111211311411511611711811912012112212312412512612721 unmodified lines- 10K<n<100K
configs:- config_name: snow drop_labels: true- config_name: default data_files: - split: train path: Train/Snow/*.png path: - Train/metadata.jsonl - Train/*/*.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 path: - Test/metadata.jsonl - Test/*/*.png---
# CSD: Comprehensive Snow Dataset (Unofficial Mirror)37 unmodified lines
# 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.26 unmodified lines
---
# Usage with 🤗 Datasets
```pythonfrom datasets import load_dataset
ds = load_dataset("dronefreak/CSD", split="train") # splits: train, testrow = ds[0]row["snow"], row["clean"], row["mask"] # PIL imagesrow["id"] # e.g. "1"```
---
# 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.README.md+22-18
Test/metadata.jsonlAdded
Train/metadata.jsonlAdded