File size: 1,380 Bytes
578b6f5
 
e1f94ec
 
cfdff64
 
578b6f5
 
 
e1f94ec
578b6f5
 
 
 
e1f94ec
 
 
ec1f394
 
 
e1f94ec
 
ec1f394
 
0f785b0
 
 
 
 
 
 
 
ec1f394
0f785b0
 
 
ec1f394
0f785b0
ec1f394
 
 
0f785b0
 
ec1f394
 
cfdff64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
license: cc-by-nc-sa-4.0
language:
- en
size_categories:
- 100B<n<1T
---
# ReinAD: Towards Real-world Industrial Anomaly Detection with a Comprehensive Contrastive Dataset

Our dataset consists of a training set and a test set. All normal and anomaly images are in hdf5 format. In the mask annotations, pixels with a value of 0 represent normal regions, and pixels with a value of 1 represent anomaly regions.

The file structure of the training set and the test set are consistent, as follows:

```text
dataset/
├── train/
│   ├── category1.h5
│   ├── category2.h5
│   └── ...

└── test/
    ├── category1.h5
    ├── category2.h5
    └── ...
```

The structure of the hdf5 file is as follows, where ```chunk_size = 100```:
```text
/ (root)
├── attrs
│   ├── split: "train"/"test"
│   └── category: category_name

├── Images
│   ├── Anomaly_0: [chunk_size, H, W, C]       # Anomaly images
│   ├── Anomaly_1: [chunk_size, H, W, C]
│   ├── ...
│   ├── Normal_0: [chunk_size, H, W, C]        # Normal images
│   ├── Normal_1: [chunk_size, H, W, C]
│   └── ...

└── Masks
    ├── Anomaly_0: [chunk_size, H, W]          # Pixel-level annotations for anomaly images
    ├── Anomaly_1: [chunk_size, H, W]
    └── ...
```