OliverOnHF commited on
Commit
b42f393
·
verified ·
1 Parent(s): 7946674

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +64 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: KSDD2 (Kolektor Surface-Defect Dataset 2)
3
+ license: cc-by-nc-sa-4.0
4
+ tags:
5
+ - computer-vision
6
+ - image-classification
7
+ - image-segmentation
8
+ - anomaly-detection
9
+ - industrial-inspection
10
+ task_categories:
11
+ - image-classification
12
+ - image-segmentation
13
+ configs:
14
+ - config_name: classification
15
+ description: "Binary good/defect classification."
16
+ - config_name: with_mask
17
+ description: "Binary classification + optional defect masks if present."
18
+ ---
19
+
20
+ # KSDD2 (manual-download loader)
21
+
22
+ This repository provides a **manual-download** loading script for the
23
+ **Kolektor Surface-Defect Dataset 2 (KSDD2)**.
24
+ It **does not** host images; users must **download the dataset from the official ViCoS page** and then load it via `load_dataset(..., data_dir=...)`.
25
+
26
+ - **Official page (license & download):** https://www.vicos.si/resources/kolektorsdd2/
27
+ - **License:** Creative Commons **BY-NC-SA 4.0** (non-commercial; attribution; share-alike).
28
+ For commercial use, please contact the authors as instructed on the official page.
29
+
30
+ ## How to use
31
+
32
+ ```python
33
+ from datasets import load_dataset
34
+
35
+ # After you manually download & extract KSDD2 to /data/KSDD2
36
+ ds = load_dataset("OliverOnHF/ksdd2", name="classification", data_dir="/data/KSDD2")
37
+ print(ds)
38
+ print(ds["train"][0])
39
+ ```
40
+
41
+ ### Expected folder layout (example)
42
+
43
+ ```
44
+ KSDD2/
45
+ train/
46
+ ok/*.png|jpg
47
+ defect/*.png|jpg
48
+ [masks|masks_defect|ground_truth]/*.png # optional for with_mask
49
+ test/
50
+ ok/*.png|jpg
51
+ defect/*.png|jpg
52
+ [masks|masks_defect|ground_truth]/*.png # optional for with_mask
53
+ ```
54
+
55
+ If your local structure differs, adapt the paths accordingly.
56
+
57
+ ## Citation
58
+
59
+ Please cite the KSDD2 paper as requested by the authors on the official page.
60
+
61
+ ## Acknowledgments
62
+
63
+ KSDD2 is created and maintained by the ViCoS Lab / Kolektor Group. This repo only provides a loader script
64
+ and **does not redistribute** the dataset files.