Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ArrowInvalid
Message:      JSON parse error: Invalid value. in row 0
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 324, in _generate_tables
                  df = pandas_read_json(f)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
                  return pd.read_json(path_or_buf, **kwargs)
                         ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 815, in read_json
                  return json_reader.read()
                         ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1014, in read
                  obj = self._get_object_parser(self.data)
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
                  obj = FrameParser(json, **kwargs).parse()
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1176, in parse
                  self._parse()
                  ~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1392, in _parse
                  ujson_loads(json, precise_float=self.precise_float), dtype=None
                  ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              ValueError: Expected object or value
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4523, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2768, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2972, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2483, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 327, in _generate_tables
                  raise e
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: Invalid value. in row 0

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.

GAP-fast

GAP-fast is a storage-repacked version of the official GAP benchmark, created by Ofir Itzhak Shahar, Gur Elkin, and Ohad Ben-Shahar. This archive was prepared by Changxin Ye to make GAP training and evaluation with RG-LNS easier to reproduce.

What was changed

The original GAP HDF5 files use gzip compression and chunked storage. Random reads can therefore decompress data belonging to other puzzles. GAP-fast rewrites the puzzle and index-label datasets using contiguous, uncompressed HDF5 storage to reduce this overhead.

The conversion preserves the puzzle pixel values, labels, sample order, and train/validation/test splits. It does not regenerate puzzle fragments. Original coordinate-label files are omitted because coordinates can be recovered from index labels as row = label // grid_size and col = label % grid_size.

Each split includes repack_info.json with conversion details, sampled puzzle-equality checks, full index-label equality checks, and read-speed measurements. These checks do not constitute an exhaustive comparison of every puzzle pixel in the dataset.

Download and extraction

Download GAP_fast.zip from the Files and versions tab. The archive is approximately 13.5 GB and requires about 44.6 GB of disk space when extracted. Allow additional space if you retain the archive.

Extract the archive into the datasets/ directory of RG-LNS. The ZIP already contains the top-level GAP_fast/ folder, so the final layout should be:

RG-LNS/
└── datasets/
    └── GAP_fast/
        β”œβ”€β”€ GAP-3/
        β”‚   β”œβ”€β”€ train/
        β”‚   β”œβ”€β”€ val/
        β”‚   └── test/
        β”œβ”€β”€ GAP-5/
        β”‚   β”œβ”€β”€ train/
        β”‚   β”œβ”€β”€ val/
        β”‚   └── test/
        β”œβ”€β”€ README.md
        └── repack_gap_hdf5.py

Each split contains:

puzzles.h5
labels_indices.h5
metadata.json
metadata_original.json
repack_info.json

The RG-LNS GAP loader uses datasets/GAP_fast/ by default. See the RG-LNS README for environment, checkpoint, training, and evaluation instructions. The included repack_gap_hdf5.py can also regenerate the storage layout from the original GAP files.

Provenance and license

The images, fragment masks, puzzle splits, and labels originate from Ofirish/GAP. The original authors retain credit for the GAP benchmark; this repository documents the storage conversion and provides a convenient archive.

The data follows the original dataset's CC BY-NC 4.0 license. Preserve attribution, identify the storage conversion, and observe the non-commercial terms when using or redistributing the data. Refer to the original dataset card for its intended academic research use, benchmark protocols, and limitations.

Citation

Please cite the original GAP paper when using the benchmark:

@InProceedings{Shahar_2026_CVPR,
    author    = {Shahar, Ofir Itzhak and Elkin, Gur and Ben-Shahar, Ohad},
    title     = {The Missing GAP: From Solving Square Jigsaw Puzzles to Handling Real World Archaeological Fragments},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2026},
    pages     = {3186--3196}
}
Downloads last month
47