Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 289, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 64, in _split_generators
                  with h5py.File(first_file, "r") as h5:
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/h5py/_hl/files.py", line 564, in __init__
                  fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/h5py/_hl/files.py", line 238, in make_fid
                  fid = h5f.open(name, flags, fapl=fapl)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "h5py/_objects.pyx", line 56, in h5py._objects.with_phil.wrapper
                File "h5py/_objects.pyx", line 57, in h5py._objects.with_phil.wrapper
                File "h5py/h5f.pyx", line 102, in h5py.h5f.open
              FileNotFoundError: [Errno 2] Unable to synchronously open file (unable to open file: name = 'hf://datasets/Tocmac/ReinAD@e1f94ec5a8474f949e77b98d236341a0a81e857e/train/PCB_terminal.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 65, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 343, in get_dataset_split_names
                  info = get_dataset_config_info(
                         ^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 294, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

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:

dataset/
├── train/
│   ├── category1.h5
│   ├── category2.h5
│   └── ...
│
└── test/
    ├── category1.h5
    ├── category2.h5
    └── ...

The structure of the hdf5 file is as follows, where chunk_size = 100:

/ (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]
    └── ...
Downloads last month
171