lugan commited on
Commit
092c1f4
·
1 Parent(s): dcb9183

NEU-DET-corrected: 1799 images + 1799 VOC annotations + YOLO (1 duplicate image and 3 duplicate boxes removed, dual format, seeded 80/10/10 split)

Browse files
Files changed (2) hide show
  1. ImageSets/train.txt +0 -2
  2. README.md +40 -33
ImageSets/train.txt CHANGED
@@ -888,7 +888,6 @@ pitted_surface_287
888
  pitted_surface_289
889
  pitted_surface_29
890
  pitted_surface_290
891
- pitted_surface_292
892
  pitted_surface_293
893
  pitted_surface_294
894
  pitted_surface_295
@@ -1323,7 +1322,6 @@ scratches_240
1323
  scratches_243
1324
  scratches_244
1325
  scratches_246
1326
- scratches_247
1327
  scratches_248
1328
  scratches_249
1329
  scratches_25
 
888
  pitted_surface_289
889
  pitted_surface_29
890
  pitted_surface_290
 
891
  pitted_surface_293
892
  pitted_surface_294
893
  pitted_surface_295
 
1322
  scratches_243
1323
  scratches_244
1324
  scratches_246
 
1325
  scratches_248
1326
  scratches_249
1327
  scratches_25
README.md CHANGED
@@ -20,6 +20,8 @@ size_categories:
20
 
21
  # NEU-DET-corrected
22
 
 
 
23
  **Hot-rolled steel strip surface defect detection — cleaned version of the NEU Surface Defect Database.**
24
  **热轧带钢表面缺陷检测 —— NEU 表面缺陷数据库的清理修正版。**
25
 
@@ -47,25 +49,27 @@ no official split and a few annotation defects. This release keeps every image p
47
 
48
  | # | Correction | Detail |
49
  |---|---|---|
50
- | 1 | **Removed 1 duplicate image** | `patches_105.jpg` is pixel-identical to `patches_101.jpg` (the same image was annotated twice, with slightly different boxes). `patches_105` removed. |
51
- | 2 | **Removed 3 duplicate boxes** | `crazing_120`, `inclusion_62`, `patches_198` each contained one bounding box listed twice verbatim. |
52
- | 3 | **Added a reproducible split** | Upstream has no split. This release provides a seeded, class-stratified 80/10/10 split. |
53
- | 4 | **Dual format** | Upstream is Pascal VOC only. This release ships **VOC + YOLO** from a single verified conversion. |
54
- | 5 | **Packaging** | `classes.txt`, `data.yaml`, `ImageSets/` added. |
 
55
 
56
- **Image pixels are never modified.** All 1,799 images are byte-for-byte identical to the upstream files.
57
 
58
  **Scope — structural clean-up only.** This is **not** a re-annotation. We remove duplicates and
59
  re-package the data; we do **not** re-verify individual boxes (missed defects, wrong class
60
  labels, box tightness) — that requires domain expertise and is left untouched.
61
 
62
- **Structural checks performed** on the released 1,799-image set:
63
 
64
  | Check | Method | Result |
65
  |---|---|---|
66
  | Exact duplicate images | byte-wise MD5 | **1** found → removed |
67
- | Rotation / mirror duplicates | 8 dihedral transforms, pixel hash | **0** |
68
- | Near-duplicate images | 32×32 and 64×64 grayscale MAE | **0** |
 
69
  | Duplicate boxes within an image | verbatim box comparison | **3** found → removed |
70
  | Empty / invalid labels | 0-box files, out-of-range, zero-area boxes | **0** |
71
  | Image ↔ label ↔ XML pairing | bidirectional | **0** orphans |
@@ -76,14 +80,14 @@ labels, box tightness) — that requires domain expertise and is left untouched.
76
 
77
  | Property | Value |
78
  |---|---|
79
- | Images | **1,799** (200 × 200, grayscale) |
80
  | Classes | **6** — `crazing`, `inclusion`, `patches`, `pitted_surface`, `rolled-in_scale`, `scratches` |
81
- | Bounding boxes | **4,183** (≈ 2.33 per image) |
82
  | Formats | Pascal VOC XML · YOLO TXT |
83
- | Split | train 1,439 / val 180 / test 180 (seeded, class-stratified) |
84
 
85
- **Boxes per class:** `inclusion` 1,010 · `patches` 877 · `crazing` 688 · `rolled-in_scale` 628 ·
86
- `scratches` 548 · `pitted_surface` 432
87
 
88
  ### Structure
89
 
@@ -127,8 +131,9 @@ annotations and are verified to agree.
127
  ```
128
 
129
  **2. This corrected release — please cite it as well.** It is not identical to the official
130
- release: one duplicate image and three duplicate boxes were removed, a reproducible split was
131
- added, and the data was re-packaged, so a citation to the papers alone does not describe this version.
 
132
 
133
  ```bibtex
134
  @misc{neudet_corrected,
@@ -171,8 +176,8 @@ Image pixels are unmodified and remain subject to the upstream terms.
171
 
172
  - Source: official NEU-DET release (Google Drive), retrieved 2026-09-21.
173
  - Upstream: 1,800 images + 1,800 Pascal VOC XML, no split.
174
- - Verified: 1,799 images retained, byte-identical to upstream; 4,183 boxes after removing
175
- 3 duplicate boxes and the duplicate image.
176
 
177
  ---
178
 
@@ -193,24 +198,26 @@ Image pixels are unmodified and remain subject to the upstream terms.
193
 
194
  | # | 修正 | 说明 |
195
  |---|---|---|
196
- | 1 | **删除 1 张重复图** | `patches_105.jpg` 与 `patches_101.jpg` 像素完全相同(同一张图被标注了两次,框略有差异)。删除 `patches_105`。 |
197
- | 2 | **删除 3 个重复框** | `crazing_120`、`inclusion_62`、`patches_198` 各有 1 个边界框**逐字重复出现两次**。 |
198
- | 3 | **补充可复现划分** | 上游无划分;本版提供固定随机种子、按类别分层的 80/10/10 划分。 |
199
- | 4 | **双格式** | 上游仅有 Pascal VOC;本版同时提供 **VOC + YOLO**(由同一次转换生成并校验一致)。 |
200
- | 5 | **规范化打包** | 新增 `classes.txt`、`data.yaml`、`ImageSets/`。 |
 
201
 
202
- **图像像素从不修改**——1,799 张图与上游文件逐字节一致。
203
 
204
  **本版范围——仅结构化清理。** 这是**结构性清理,不是重新标注**。我们只去重、重新打包;
205
  **不**重新核对单个标注框(漏标、类别标错、框松紧)——那需要领域专业知识,一律保持原样。
206
 
207
- **已执行的结构化检查**(针对发布的 1,799 张):
208
 
209
  | 检查 | 方法 | 结果 |
210
  |---|---|---|
211
  | 样本重复 · 精确 | 逐字节 MD5 | **1 组** → 已删 |
212
- | 样本重复 · 旋转/镜像 | 8 种二面体变换逐像素哈希 | **0** |
213
- | 样本重复 · 近似 | 32×32 与 64×64 灰度 MAE | **0** |
 
214
  | 标签重复 · 图内 | 逐字比对同一图内的框 | **3 个** → 已删 |
215
  | 空/非法标签 | 0 框文件、越界框、零面积框 | **0** |
216
  | 图片↔标签↔XML 配对 | 双向 | **0 孤儿** |
@@ -221,14 +228,14 @@ Image pixels are unmodified and remain subject to the upstream terms.
221
 
222
  | 属性 | 值 |
223
  |---|---|
224
- | 图片 | **1,799**(200 × 200 灰度) |
225
  | 类别 | **6** —— `crazing`、`inclusion`、`patches`、`pitted_surface`、`rolled-in_scale`、`scratches` |
226
- | 标注框 | **4,183**(约 2.33 框/图) |
227
  | 格式 | Pascal VOC XML · YOLO TXT |
228
- | 划分 | train 1,439 / val 180 / test 180(固定种子、类别分层) |
229
 
230
- **各类框数**:`inclusion` 1,010 · `patches` 877 · `crazing` 688 · `rolled-in_scale` 628 ·
231
- `scratches` 548 · `pitted_surface` 432
232
 
233
  ### 目录结构
234
 
@@ -315,4 +322,4 @@ NEU-DET-corrected/
315
 
316
  - 来源:官方 NEU-DET 发布(Google Drive),获取于 2026-09-21
317
  - 上游:1,800 图 + 1,800 Pascal VOC XML,无划分
318
- - 已校验:保留 1,799 图,与上游逐字节一致;删除 3 个重复框与 1 张重复图后共 4,183 框
 
20
 
21
  # NEU-DET-corrected
22
 
23
+ [![DOI](https://img.shields.io/badge/DOI-10.57967%2Fhf%2F10536-blue)](https://doi.org/10.57967/hf/10536)
24
+
25
  **Hot-rolled steel strip surface defect detection — cleaned version of the NEU Surface Defect Database.**
26
  **热轧带钢表面缺陷检测 —— NEU 表面缺陷数据库的清理修正版。**
27
 
 
49
 
50
  | # | Correction | Detail |
51
  |---|---|---|
52
+ | 1 | **Removed 1 exact-duplicate image** | `patches_105.jpg` is pixel-identical to `patches_101.jpg` (the same image annotated twice, with slightly different boxes). |
53
+ | 2 | **Removed 2 near-duplicate images** | `scratches_247.jpg` is a 90°-rotated copy of `scratches_232.jpg`; `pitted_surface_292.jpg` is a 2-px-shifted copy of `pitted_surface_171.jpg`. Both show a sharp, isolated minimum in the alignment profile (random same-class pairs never drop below MAE ≈ 13). |
54
+ | 3 | **Removed 3 duplicate boxes** | `crazing_120`, `inclusion_62`, `patches_198` each contained one bounding box listed twice verbatim. |
55
+ | 4 | **Added a reproducible split** | Upstream has no split. This release provides a seeded, class-stratified 80/10/10 split. |
56
+ | 5 | **Dual format** | Upstream is Pascal VOC only. This release ships **VOC + YOLO** from a single verified conversion. |
57
+ | 6 | **Packaging** | `classes.txt`, `data.yaml`, `ImageSets/` added. |
58
 
59
+ **Image pixels are never modified.** All 1,797 images are byte-for-byte identical to the upstream files.
60
 
61
  **Scope — structural clean-up only.** This is **not** a re-annotation. We remove duplicates and
62
  re-package the data; we do **not** re-verify individual boxes (missed defects, wrong class
63
  labels, box tightness) — that requires domain expertise and is left untouched.
64
 
65
+ **Structural checks performed** on the released 1,797-image set:
66
 
67
  | Check | Method | Result |
68
  |---|---|---|
69
  | Exact duplicate images | byte-wise MD5 | **1** found → removed |
70
+ | Rotation / mirror duplicates | 8 dihedral transforms, perceptual hash | **1** found → removed |
71
+ | Shifted duplicates | aligned pixel MAE + sharp-minimum test | **1** found → removed |
72
+ | Near-duplicate images | 32×32/64×64 MAE + full aligned scan | **0** remaining |
73
  | Duplicate boxes within an image | verbatim box comparison | **3** found → removed |
74
  | Empty / invalid labels | 0-box files, out-of-range, zero-area boxes | **0** |
75
  | Image ↔ label ↔ XML pairing | bidirectional | **0** orphans |
 
80
 
81
  | Property | Value |
82
  |---|---|
83
+ | Images | **1,797** (200 × 200, grayscale) |
84
  | Classes | **6** — `crazing`, `inclusion`, `patches`, `pitted_surface`, `rolled-in_scale`, `scratches` |
85
+ | Bounding boxes | **4,177** (≈ 2.32 per image) |
86
  | Formats | Pascal VOC XML · YOLO TXT |
87
+ | Split | train 1,437 / val 180 / test 180 (seeded, class-stratified) |
88
 
89
+ **Boxes per class:** `inclusion` 1,010 · `patches` 875 · `crazing` 688 · `rolled-in_scale` 628 ·
90
+ `scratches` 546 · `pitted_surface` 430
91
 
92
  ### Structure
93
 
 
131
  ```
132
 
133
  **2. This corrected release — please cite it as well.** It is not identical to the official
134
+ release: 3 duplicate images (1 exact, 2 near-duplicates under rotation / shift) and 3 duplicate
135
+ boxes were removed, a reproducible split was added, and the data was re-packaged, so a citation
136
+ to the papers alone does not describe this version.
137
 
138
  ```bibtex
139
  @misc{neudet_corrected,
 
176
 
177
  - Source: official NEU-DET release (Google Drive), retrieved 2026-09-21.
178
  - Upstream: 1,800 images + 1,800 Pascal VOC XML, no split.
179
+ - Verified: 1,797 images retained, byte-identical to upstream; 4,177 boxes after removing
180
+ 3 duplicate boxes and 3 duplicate images (1 exact, 2 near-duplicates).
181
 
182
  ---
183
 
 
198
 
199
  | # | 修正 | 说明 |
200
  |---|---|---|
201
+ | 1 | **删除 1 张完全重复图** | `patches_105.jpg` 与 `patches_101.jpg` 像素完全相同(同一张图被标注两次,框略有差异)。 |
202
+ | 2 | **删除 2 张近似重复图** | `scratches_247.jpg` 是 `scratches_232.jpg` 旋转 90° 的副本;`pitted_surface_292.jpg` 是 `pitted_surface_171.jpg` 平移 2px 的副本。两者在对齐剖面中都呈**尖锐唯一极小值**(随机同类对从未低于 MAE ≈ 13)。 |
203
+ | 3 | **删除 3 个重复框** | `crazing_120`、`inclusion_62`、`patches_198` 各有 1 个边界框**逐字重复出现两次**。 |
204
+ | 4 | **补充可复现划分** | 上游无划分;本版提供固定随机种子、按类别分层的 80/10/10 划分。 |
205
+ | 5 | **双格式** | 上游仅有 Pascal VOC;本版同时提供 **VOC + YOLO**(由同一次转换生成并校验一致)。 |
206
+ | 6 | **规范化打包** | 新增 `classes.txt`、`data.yaml`、`ImageSets/`。 |
207
 
208
+ **图像像素从不修改**——1,797 张图与上游文件逐字节一致。
209
 
210
  **本版范围——仅结构化清理。** 这是**结构性清理,不是重新标注**。我们只去重、重新打包;
211
  **不**重新核对单个标注框(漏标、类别标错、框松紧)——那需要领域专业知识,一律保持原样。
212
 
213
+ **已执行的结构化检查**(针对发布的 1,797 张):
214
 
215
  | 检查 | 方法 | 结果 |
216
  |---|---|---|
217
  | 样本重复 · 精确 | 逐字节 MD5 | **1 组** → 已删 |
218
+ | 样本重复 · 旋转/镜像 | 8 种二面体变换感知哈希 | **1 组** → 已删 |
219
+ | 样本重复 · 平移 | 对齐像素 MAE + 尖锐极小值判定 | **1 组** → 已删 |
220
+ | 样本重复 · 近似 | 32×32/64×64 MAE + 全库对齐扫描 | **0 剩余** |
221
  | 标签重复 · 图内 | 逐字比对同一图内的框 | **3 个** → 已删 |
222
  | 空/非法标签 | 0 框文件、越界框、零面积框 | **0** |
223
  | 图片↔标签↔XML 配对 | 双向 | **0 孤儿** |
 
228
 
229
  | 属性 | 值 |
230
  |---|---|
231
+ | 图片 | **1,797**(200 × 200 灰度) |
232
  | 类别 | **6** —— `crazing`、`inclusion`、`patches`、`pitted_surface`、`rolled-in_scale`、`scratches` |
233
+ | 标注框 | **4,177**(约 2.32 框/图) |
234
  | 格式 | Pascal VOC XML · YOLO TXT |
235
+ | 划分 | train 1,437 / val 180 / test 180(固定种子、类别分层) |
236
 
237
+ **各类框数**:`inclusion` 1,010 · `patches` 875 · `crazing` 688 · `rolled-in_scale` 628 ·
238
+ `scratches` 546 · `pitted_surface` 430
239
 
240
  ### 目录结构
241
 
 
322
 
323
  - 来源:官方 NEU-DET 发布(Google Drive),获取于 2026-09-21
324
  - 上游:1,800 图 + 1,800 Pascal VOC XML,无划分
325
+ - 已校验:保留 1,797 图,与上游逐字节一致;删除 3 个重复框与 3 张重复图(1 张完全重复 + 2 张近似重复)后共 4,177 框