Datasets:
Convert images to lossless PNG and add viewer configs
#7
by dronefreak - opened
This view is limited to 50 files because it contains too many changes. See the raw diff here.
Files changed (50)
- README.md+38-15
- Test/Gt/1.pngAdded
- Test/Gt/1.tifDeleted
- Test/Gt/10.pngAdded
- Test/Gt/10.tifDeleted
- Test/Gt/100.pngAdded
- Test/Gt/100.tifDeleted
- Test/Gt/1000.pngAdded
- Test/Gt/1000.tifDeleted
- Test/Gt/1001.pngAdded
- Test/Gt/1001.tifDeleted
- Test/Gt/1002.pngAdded
- Test/Gt/1002.tifDeleted
- Test/Gt/1003.pngAdded
- Test/Gt/1003.tifDeleted
- Test/Gt/1004.pngAdded
- Test/Gt/1004.tifDeleted
- Test/Gt/1005.pngAdded
- Test/Gt/1005.tifDeleted
- Test/Gt/1006.pngAdded
- Test/Gt/1006.tifDeleted
- Test/Gt/1007.pngAdded
- Test/Gt/1007.tifDeleted
- Test/Gt/1008.pngAdded
- Test/Gt/1008.tifDeleted
- Test/Gt/1009.pngAdded
- Test/Gt/1009.tifDeleted
- Test/Gt/101.pngAdded
- Test/Gt/101.tifDeleted
- Test/Gt/1010.pngAdded
- Test/Gt/1010.tifDeleted
- Test/Gt/1011.pngAdded
- Test/Gt/1011.tifDeleted
- Test/Gt/1012.pngAdded
- Test/Gt/1012.tifDeleted
- Test/Gt/1013.pngAdded
- Test/Gt/1013.tifDeleted
- Test/Gt/1014.pngAdded
- Test/Gt/1014.tifDeleted
- Test/Gt/1015.pngAdded
- Test/Gt/1015.tifDeleted
- Test/Gt/1016.pngAdded
- Test/Gt/1016.tifDeleted
- Test/Gt/1017.pngAdded
- Test/Gt/1017.tifDeleted
- Test/Gt/1018.pngAdded
- Test/Gt/1018.tifDeleted
- Test/Gt/1019.pngAdded
- Test/Gt/1019.tifDeleted
- Test/Gt/102.pngAdded
19 unmodified lines20212223242531 unmodified lines575859606162636465666768694 unmodified lines7475767778798081828384858687888990919293942 unmodified lines9798991001011021035 unmodified lines10911011111211311411511611711811912012112212312412512612719 unmodified linessize_categories:- 10K<n<100K---# CSD: Comprehensive Snow Dataset (Unofficial Mirror)31 unmodified lines- **Training**: 8,000 pairs.- **Testing**: 2,000 pairs.- **Resolution**: 640×480, `.tif` (LZW-compressed, lossless).---# Changes from the Official ReleaseNone beyond repackaging. No images added, removed, or modified. 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.---4 unmodified lines├── README.md├── banner.jpg├── Train/│ ├── Gt/ # {id}.tif — 8,000 clean images│ ├── Snow/ # {id}.tif — 8,000 synthetic snow images│ └── Mask/ # {id}.tif — 8,000 binary snow masks└── Test/├── Gt/ # {id}.tif — 2,000 clean images├── Snow/ # {id}.tif — 2,000 synthetic snow images└── Mask/ # {id}.tif — 2,000 binary snow masks````Gt`/`Snow`/`Mask` share identical filenames within each split (e.g. `1000.tif` appears in all three), exact-stem matching, no custom parser needed.| Split | Pairs | Resolution | Format ||---|---|---|---|| `Train` | 8,000 | 640×480 | `.tif` || `Test` | 2,000 | 640×480 | `.tif` || **Total** | **10,000** | | |---2 unmodified linesThis 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, **no dedicated parser needed**, unlike SPA-Data or DDN-Data. The one thing to set explicitly is the file extension, since CSD ships `.tif` rather than `ImagePairDataset`'s `.png`/`.jpg`/`.jpeg` default:```pythonfrom huggingface_hub import snapshot_download5 unmodified linesrainy_dir=f"{data_dir}/Train/Snow", # "rainy_dir" is just the degraded-image arg name; snow works the same wayclean_dir=f"{data_dir}/Train/Gt",transform=get_train_transforms(crop_size=(256, 256)),extensions=(".tif",),)test_ds = ImagePairDataset(rainy_dir=f"{data_dir}/Test/Snow",clean_dir=f"{data_dir}/Test/Gt",transform=get_val_transforms(),extensions=(".tif",),)snowy, clean = train_ds[0]```**A caveat on the `clearview-train` CLI specifically**: `--dataset-type pair` instantiates `ImagePairDataset` without passing through an `extensions` argument (see `clearview/scripts/train.py`'s `_build_dataset` helper), so it's hardcoded to the `.png`/`.jpg`/`.jpeg` default and won't find this dataset's `.tif` files as-is. Until a `--extensions` flag is wired through the CLI, use the Python API above directly (which does accept `extensions=(".tif",)`), or convert the `.tif` files to `.png` first.---19 unmodified lines202122232425262728293031323334353637383940414243444546474831 unmodified lines8081828384858687888990919293944 unmodified lines991001011021031041051061071081091101111121131141151161171181192 unmodified lines1221231241251261271285 unmodified lines13413513613713813914014114214314414514614714814915019 unmodified linessize_categories:- 10K<n<100Kconfigs:- config_name: snowdrop_labels: truedata_files:- split: trainpath: Train/Snow/*.png- split: testpath: Test/Snow/*.png- config_name: gtdrop_labels: truedata_files:- split: trainpath: Train/Gt/*.png- split: testpath: Test/Gt/*.png- config_name: maskdrop_labels: truedata_files:- split: trainpath: Train/Mask/*.png- split: testpath: Test/Mask/*.png---# CSD: Comprehensive Snow Dataset (Unofficial Mirror)31 unmodified lines- **Training**: 8,000 pairs.- **Testing**: 2,000 pairs.- **Resolution**: 640×480, `.png` (lossless, converted from the official `.tif`, see below).---# Changes from the Official ReleaseNo 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.---4 unmodified lines├── 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** | | |---2 unmodified linesThis 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:```pythonfrom huggingface_hub import snapshot_download5 unmodified linesrainy_dir=f"{data_dir}/Train/Snow", # "rainy_dir" is just the degraded-image arg name; snow works the same wayclean_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`.---
README.md+38-15
Test/Gt/1.pngAdded

Large File Pointer Details
- SHA256: 26c780d2c842ea49f979d64f296b7f9976403801a134757db886b633e8273a78
- Pointer size: 131 Bytes
- Size of remote file: 451 kB
Test/Gt/1.tifDeleted
Large File Pointer Details
- SHA256: 87a133dfb6b1ae50ac8b6f23f603ab09e26184ea01e6f9f46bfdbecc9797b0e2
- Pointer size: 131 Bytes
- Size of remote file: 553 kB
Test/Gt/10.pngAdded

Large File Pointer Details
- SHA256: 240513c95578c2a7cb95b589a4fdc9ec39b91ab4b4cf7eca696c657c2e60cc13
- Pointer size: 131 Bytes
- Size of remote file: 344 kB
Test/Gt/10.tifDeleted
Large File Pointer Details
- SHA256: 9fd07bf6e898fe70d7ab5441328b8ad6c2453cf22c3ce169c791f24b90021f9a
- Pointer size: 131 Bytes
- Size of remote file: 415 kB
Test/Gt/100.pngAdded

Large File Pointer Details
- SHA256: 5a214e3fa38e375d228b5284faf9c8fcf23e84bc2e9aaca468f6877361dab581
- Pointer size: 131 Bytes
- Size of remote file: 456 kB
Test/Gt/100.tifDeleted
Large File Pointer Details
- SHA256: 705b7d0bb002ff979bd076068d6f811b9995235634e14fbec024d87d5457a38f
- Pointer size: 131 Bytes
- Size of remote file: 536 kB
Test/Gt/1000.pngAdded

Large File Pointer Details
- SHA256: a3ccd02353802d3b3105ee567be5a871f1f82f76283666347590dcec5410e7ad
- Pointer size: 131 Bytes
- Size of remote file: 391 kB
Test/Gt/1000.tifDeleted
Large File Pointer Details
- SHA256: 4a988e6b282273d22ea279ffb925c22f09943c61f448f2441acdf1cf54eabdee
- Pointer size: 131 Bytes
- Size of remote file: 471 kB
Test/Gt/1001.pngAdded

Large File Pointer Details
- SHA256: 26c780d2c842ea49f979d64f296b7f9976403801a134757db886b633e8273a78
- Pointer size: 131 Bytes
- Size of remote file: 451 kB
Test/Gt/1001.tifDeleted
Large File Pointer Details
- SHA256: 87a133dfb6b1ae50ac8b6f23f603ab09e26184ea01e6f9f46bfdbecc9797b0e2
- Pointer size: 131 Bytes
- Size of remote file: 553 kB
Test/Gt/1002.pngAdded

Large File Pointer Details
- SHA256: 9257f51d6967788080b5f6b3a7bcf396acc5b1cca6ab8f755b08da84f2d62807
- Pointer size: 131 Bytes
- Size of remote file: 344 kB
Test/Gt/1002.tifDeleted
Large File Pointer Details
- SHA256: ac40a5150624f0a9fc7c111de4f999cbee6e87613221b589816f428b1f270cdb
- Pointer size: 131 Bytes
- Size of remote file: 399 kB
Test/Gt/1003.pngAdded

Large File Pointer Details
- SHA256: a7d78d811a30698bb7b21faf24e23957cabdfe092c0914f3eea92c73f86dccae
- Pointer size: 131 Bytes
- Size of remote file: 273 kB
Test/Gt/1003.tifDeleted
Large File Pointer Details
- SHA256: a290cd121a79f223c9ceb11f51b877b6ae6d128a340f9a23859557bdcd321d7b
- Pointer size: 131 Bytes
- Size of remote file: 358 kB
Test/Gt/1004.pngAdded

Large File Pointer Details
- SHA256: 2f56e767881044a9d681ab382439e3de1ec61503b4fbe02ccd43bd1d8b752491
- Pointer size: 131 Bytes
- Size of remote file: 446 kB
Test/Gt/1004.tifDeleted
Large File Pointer Details
- SHA256: c10934f5c36e04e8d10075815ddfdcadde64ea832e56d53a31dc87c641ae0637
- Pointer size: 131 Bytes
- Size of remote file: 546 kB
Test/Gt/1005.pngAdded

Large File Pointer Details
- SHA256: 4ec253f390f94c853867963af2df404acbf06c5e517c5f5aa1381d4439599b40
- Pointer size: 131 Bytes
- Size of remote file: 371 kB
Test/Gt/1005.tifDeleted
Large File Pointer Details
- SHA256: 3f2663202feae4890297daebce9d47e7574a3384c42211d987390910bfb2bd22
- Pointer size: 131 Bytes
- Size of remote file: 460 kB
Test/Gt/1006.pngAdded

Large File Pointer Details
- SHA256: 3dd3fcb4f8727869dfa7721767551e22a34558245fb3fa18296d9303472d517b
- Pointer size: 131 Bytes
- Size of remote file: 344 kB
Test/Gt/1006.tifDeleted
Large File Pointer Details
- SHA256: 7498dffb880a5ed8022de55231c2b65a1f61b46d1e6db7436103f436bddce204
- Pointer size: 131 Bytes
- Size of remote file: 426 kB
Test/Gt/1007.pngAdded

Large File Pointer Details
- SHA256: 0f4f1d7e715b2ced1be3f654453e37a1a89c80b8aafbc2b4c7adeddc2d4c68d2
- Pointer size: 131 Bytes
- Size of remote file: 460 kB
Test/Gt/1007.tifDeleted
Large File Pointer Details
- SHA256: f0841e9a176266892de50efe6276eef8ef6ab037d41ad2476f23cabedc0ea8a8
- Pointer size: 131 Bytes
- Size of remote file: 585 kB
Test/Gt/1008.pngAdded

Large File Pointer Details
- SHA256: f48aa9dba92322f5b35e2a1ca43a71a5ec503d6eed588385dfc6c11a5e5d5120
- Pointer size: 131 Bytes
- Size of remote file: 391 kB
Test/Gt/1008.tifDeleted
Large File Pointer Details
- SHA256: c7aedb5729471df062ad69c3683b2f3f1e5335829151e52131b9282b56d8516e
- Pointer size: 131 Bytes
- Size of remote file: 479 kB
Test/Gt/1009.pngAdded

Large File Pointer Details
- SHA256: 92f12187f304fd9ec0da7d8d3bae04a55785324a32715a68f59b8c2fa6a49b88
- Pointer size: 131 Bytes
- Size of remote file: 276 kB
Test/Gt/1009.tifDeleted
Large File Pointer Details
- SHA256: d0756bffe92eb58dd9293d666d982b4eed5ffb5e4986d97e14b539ce26780e37
- Pointer size: 131 Bytes
- Size of remote file: 320 kB
Test/Gt/101.pngAdded

Large File Pointer Details
- SHA256: 2e07780aee375b7e302c05c184836f301db5d80494a3ddd9fdc2ba6231039d2d
- Pointer size: 131 Bytes
- Size of remote file: 389 kB
Test/Gt/101.tifDeleted
Large File Pointer Details
- SHA256: 25439ae2d9f791cdecadc6e8a17a0c60ad0d4c910addabdb37f0b9b674090ff8
- Pointer size: 131 Bytes
- Size of remote file: 471 kB
Test/Gt/1010.pngAdded

Large File Pointer Details
- SHA256: 240513c95578c2a7cb95b589a4fdc9ec39b91ab4b4cf7eca696c657c2e60cc13
- Pointer size: 131 Bytes
- Size of remote file: 344 kB
Test/Gt/1010.tifDeleted
Large File Pointer Details
- SHA256: 9fd07bf6e898fe70d7ab5441328b8ad6c2453cf22c3ce169c791f24b90021f9a
- Pointer size: 131 Bytes
- Size of remote file: 415 kB
Test/Gt/1011.pngAdded

Large File Pointer Details
- SHA256: bd684d4e57e31f90c703128429acc095b919aa25e50696b87b26ad2d922eaf22
- Pointer size: 131 Bytes
- Size of remote file: 432 kB
Test/Gt/1011.tifDeleted
Large File Pointer Details
- SHA256: a11f2da59413020e6766a4fb5e26f3eb5ddc97d6415288fbaba97ad1cb476b3d
- Pointer size: 131 Bytes
- Size of remote file: 506 kB
Test/Gt/1012.pngAdded

Large File Pointer Details
- SHA256: baf74bb635ce5ea402040277957cf0315193f3d0c825c12275ac7566843e6baf
- Pointer size: 131 Bytes
- Size of remote file: 378 kB
Test/Gt/1012.tifDeleted
Large File Pointer Details
- SHA256: b91e8ee8b3bf62c055868f0a625d3693e558527611a6089227c322ba7935694f
- Pointer size: 131 Bytes
- Size of remote file: 435 kB
Test/Gt/1013.pngAdded

Large File Pointer Details
- SHA256: 056b66ecec87ba1255fd8c1ffe1a6726dcd860d79a835d6c82b954b00bcbff56
- Pointer size: 131 Bytes
- Size of remote file: 429 kB
Test/Gt/1013.tifDeleted
Large File Pointer Details
- SHA256: 286b94b7fe6b36612980f2877e898b96fa2af7c332f205ea777e50c747849b9d
- Pointer size: 131 Bytes
- Size of remote file: 529 kB
Test/Gt/1014.pngAdded

Large File Pointer Details
- SHA256: 03f2ed2d660bb932bac080f0593620a6e97bd8cdf00d3e82b163e8c7542dd689
- Pointer size: 131 Bytes
- Size of remote file: 408 kB
Test/Gt/1014.tifDeleted
Large File Pointer Details
- SHA256: cac40e10e7b3b107a4ba4eed9d673920bf5f3c28b19e03b58fe245db22dd8752
- Pointer size: 131 Bytes
- Size of remote file: 483 kB
Test/Gt/1015.pngAdded

Large File Pointer Details
- SHA256: 2d191bc51e66898d0a5766d4b0c470c984906dda45b13f3158d546d4fe906719
- Pointer size: 131 Bytes
- Size of remote file: 345 kB
Test/Gt/1015.tifDeleted
Large File Pointer Details
- SHA256: 8b862715da181f2687cd3422049406b50d0b72a7f82e69776bd8d13553363d6b
- Pointer size: 131 Bytes
- Size of remote file: 427 kB
Test/Gt/1016.pngAdded

Large File Pointer Details
- SHA256: 9297067ffaded2d43ce511011348896ac8c7237ca3fdd9a55c40f77f564732f8
- Pointer size: 131 Bytes
- Size of remote file: 350 kB
Test/Gt/1016.tifDeleted
Large File Pointer Details
- SHA256: b206f418ce13ebabd152fbe57a9e8c6733bd33e4ae3b0be225d69d6cd18ae753
- Pointer size: 131 Bytes
- Size of remote file: 417 kB
Test/Gt/1017.pngAdded

Large File Pointer Details
- SHA256: cffc27f465993c0a01a929751ccd766136ba76f094e6180106ca0d62984a1de3
- Pointer size: 131 Bytes
- Size of remote file: 224 kB
Test/Gt/1017.tifDeleted
Large File Pointer Details
- SHA256: d8c6bb1072ef6a1fe76f798e96bc4f4ecbbb6c335f8e1896a65383519943ab73
- Pointer size: 131 Bytes
- Size of remote file: 278 kB
Test/Gt/1018.pngAdded

Large File Pointer Details
- SHA256: a921c9cd18040ff9b1b4b97cbf5b684fb497c7fbcff8d6f8e4e32b39a52ec759
- Pointer size: 131 Bytes
- Size of remote file: 218 kB
Test/Gt/1018.tifDeleted
Large File Pointer Details
- SHA256: dd570850e8b38d5b57c25704e3e4d9fcaa319b7869ded60a925aa877cbef0410
- Pointer size: 131 Bytes
- Size of remote file: 276 kB
Test/Gt/1019.pngAdded

Large File Pointer Details
- SHA256: dbd33e201d8440acf6a6c920d953c6becf06d6da808c70120dbf9f0524a0b869
- Pointer size: 131 Bytes
- Size of remote file: 383 kB
Test/Gt/1019.tifDeleted
Large File Pointer Details
- SHA256: e083cc6f856a951fd2daa46f5655fa2d81acb66597b030ce40b620c95e25a367
- Pointer size: 131 Bytes
- Size of remote file: 483 kB
Test/Gt/102.pngAdded

Large File Pointer Details
- SHA256: f4789e14f07310eafff388f0265525c225f0d43b891cc75468f86c3fb22e8a6e
- Pointer size: 131 Bytes
- Size of remote file: 376 kB