knifeandcj commited on
Commit
05b9355
·
verified ·
1 Parent(s): 3b57a8a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +98 -0
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ task_categories:
6
+ - anomaly-detection
7
+ - image-segmentation
8
+ tags:
9
+ - industrial-anomaly-detection
10
+ - anomaly-detection
11
+ - mvtec
12
+ - visa
13
+ - real-iad
14
+ - patchcore
15
+ - reproducibility
16
+ size_categories:
17
+ - 10M<n<100M
18
+ ---
19
+
20
+ # seg-gap-iad-data
21
+
22
+ Pre-computed anomaly energy maps for reproducing all experiments in:
23
+
24
+ > **Hu Xiaojun.** "The Segmentation Gap in Industrial Anomaly Detection: A Halo-Plateau Diagnosis." *Pattern Recognition Letters* (under review).
25
+
26
+ **Code:** https://github.com/knifecaojia/seg-gap-iad
27
+
28
+ ## Contents
29
+
30
+ This dataset stores the **intermediate outputs** of running three anomaly-detection
31
+ method families on five IAD benchmarks (225 categories total, ~310k images).
32
+ It is **not** the raw images — those must be obtained from the original dataset
33
+ publishers (see the code repo's `DATA.md`).
34
+
35
+ | Component | Size | Files |
36
+ |---|---|---|
37
+ | PatchCore energy maps (.npy, 224×224 float32) | ~58 GB | 305,803 |
38
+ | Dinomaly maps (MVTec AD + VisA) | ~0.8 GB | — |
39
+ | EfficientAD maps (MVTec AD, anomalib + direct) | ~0.7 GB | — |
40
+ | Per-method `_meta.json` + `_eval_summary_*.json` | small | — |
41
+ | `dinomaly_mvtec_model.pth` (trained weights) | 0.25 GB | 1 |
42
+
43
+ **Total:** 61.79 GB / 306,136 files.
44
+
45
+ ## Why pre-computed?
46
+
47
+ Re-running PatchCore + Dinomaly + EfficientAD on all 225 categories takes ~1 day
48
+ of GPU time. These energy maps let you skip that step and go straight to
49
+ evaluation / halo analysis / figure generation in the code repo.
50
+
51
+ ## Download & extract
52
+
53
+ ```bash
54
+ # Download (set HF_ENDPOINT=https://hf-mirror.com if you are in mainland China)
55
+ hf download knifeandcj/seg-gap-iad-data --repo-type dataset --local-dir seg-gap-iad-data
56
+
57
+ # Extract every part into the same target dir; they reconstruct outputs/ with
58
+ # no filename collisions. Each part-NNNNN.zip is a standalone standard zip.
59
+ cd seg-gap-iad-data
60
+ mkdir ../outputs
61
+ for p in part-*.zip; do unzip -q "$p" -d ../outputs; done
62
+ ```
63
+
64
+ The resulting `outputs/` tree matches the layout the code repo's `src/paths.py`
65
+ expects by default (or set `SGAP_OUTPUTS` to point at it).
66
+
67
+ ## Integrity
68
+
69
+ `manifest.json` maps every source file to its `part`, `size`, and `md5`.
70
+ Verify after extraction:
71
+
72
+ ```python
73
+ import json, hashlib, os
74
+ m = json.load(open("manifest.json"))
75
+ # compare md5 of each extracted file against manifest
76
+ ```
77
+
78
+ `README.json` has packing metadata (part count, totals, timestamp).
79
+
80
+ ## License
81
+
82
+ MIT. The energy maps are derived from the following datasets, each under its own
83
+ license — obtain and respect those terms for any redistribution of raw images:
84
+ - MVTec AD / MVTec AD 2 (CC BY-NC-SA / research use)
85
+ - VisA (Apache-2.0)
86
+ - Real-IAD / Real-IAD Variety (research use, see real-iad.org)
87
+
88
+ ## Citation
89
+
90
+ ```bibtex
91
+ @article{hu2026segmentation,
92
+ title={The Segmentation Gap in Industrial Anomaly Detection: A Halo-Plateau Diagnosis},
93
+ author={Hu, Xiaojun},
94
+ journal={Pattern Recognition Letters},
95
+ year={2026},
96
+ note={Under review}
97
+ }
98
+ ```