Datasets:
The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
Pompeian Styles
A dataset for classifying the painting style of isolated wall-painting fragments from Pompeii into the four Pompeian styles defined by August Mau (I: Incrustation, II: Architectural, III: Ornamental, IV: Fantastic).
It accompanies the paper:
G. Elkin*, O. I. Shahar*, N. Alali, M. C. Napolitano, A. Zambrano, O. Ben-Shahar. Stylish Pieces: Advancing Deep Visual Style Recognition of Archaeological Fragments. ACM Journal on Computing and Cultural Heritage, 2026. doi:10.1145/3849479 (* equal contribution)
Code for training and evaluating all the models in the paper: github.com/OfirShahar/stylish-pieces.
Summary
| Fragments | 3,886 (RGBA, 256 Γ 256) |
| Source walls | 508 |
| Classes | 4 (Style IβIV) |
| Splits | train / val / test, split by source wall (no source wall appears in two splits) |
| Extra test set | testset_square: 693 square tiles cut from the 77 test walls |
How the dataset was built
- Source walls. 508 high-resolution photographs of painted walls were selected from the Pompeii Archaeological Park (PAP) digital archive by domain experts, cropped to their decorated areas, and labelled with one of the four styles. Style I: 62 images; Style II: 121; Style III: 143; Style IV: 182.
- Real fragment shapes. Fragment outlines come from 121 groups of real fresco fragments excavated in Pompeii and scanned by the RePAIR project (2 to 44 fragments per group).
- "Cookie-cutting". For each source wall, a fragment group was picked at random. The image was resized (keeping its aspect ratio) and centre-cropped to the size of the group, and each fragment mask was used to cut out the matching region. This yields fragments with realistic, irregular boundaries.
- Post-processing. Each fragment was cropped to its bounding box, scaled down only if larger than 256 px on either side, and centred on a transparent 256 Γ 256 RGBA canvas. The alpha channel marks the fragment.
- Splits. A stratified group split (β75 / 10 / 15 % of source walls) puts all fragments cut from one source wall into the same split, so models are always tested on artworks they have not seen.
Split statistics
Number of source walls / number of fragments:
| Split | Style I | Style II | Style III | Style IV | Total |
|---|---|---|---|---|---|
| train | 47 / 411 | 91 / 732 | 106 / 744 | 136 / 987 | 380 / 2,874 |
| val | 6 / 82 | 12 / 91 | 15 / 100 | 18 / 190 | 51 / 463 |
| test | 9 / 64 | 18 / 100 | 22 / 160 | 28 / 225 | 77 / 549 |
testset_square: regular-shape control set
To separate the effect of the irregular fragment shape from the painted content, each of the 77 test walls was resized, centre-cropped to a square (side = largest multiple of 3 that fits), and cut into a 3 Γ 3 grid. Each tile was then post-processed exactly like the fragments (step 4). This gives 693 tiles (Style I: 81, II: 162, III: 198, IV: 252). Use it for evaluation only.
Files
βββ train_images.npz # key "images": uint8 array (N, 256, 256, 4), RGBA
βββ train_labels.npz # key "labels": int32 array (N,), values 1β4 (= Style IβIV)
βββ val_images.npz / val_labels.npz
βββ test_images.npz / test_labels.npz
βββ testset_square_images.npz / testset_square_labels.npz
βββ fragments.csv # source wall of every fragment
βββ LICENSE
fragments.csv has one row per fragment (or tile) with the columns split, index (row in that split's npz files), label (1β4), style (IβIV) and source_wall, the ID of the wall image the fragment was cut from.
Source wall IDs use the Pompeii Archaeological Park's location notation, e.g. P VI 15 8 k E (Pompeii, Regio VI, Insula 15, entrance 8, room k, east wall). When there are two different photographs or crops of the same wall, the second one has the suffix _alt.
Labels in the files are 1β4. The paper's code subtracts 1 to get 0β3.
Usage
import numpy as np
from huggingface_hub import snapshot_download
root = snapshot_download(repo_id="OfirShahar/pompeian-styles", repo_type="dataset")
images = np.load(f"{root}/train_images.npz")["images"] # (2874, 256, 256, 4) uint8
labels = np.load(f"{root}/train_labels.npz")["labels"] # (2874,) int32, 1..4
# Composite onto white, as done in the paper, before feeding RGB models
alpha = images[..., 3:4] / 255.0
rgb = (images[..., :3] * alpha + 255 * (1 - alpha)).astype(np.uint8)
To find the source wall of each fragment:
import pandas as pd
meta = pd.read_csv(f"{root}/fragments.csv")
train_walls = meta[meta.split == "train"].sort_values("index").source_wall.values # aligned with `images`
To reproduce the paper's results, pass the downloaded folder as --data_dir to the training code.
License
This dataset is released under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International license (CC BY-NC-ND 4.0). The full text is in LICENSE. In short:
- Attribution: publications and other work that use the dataset must cite the paper below.
- Non-commercial: commercial use is not allowed.
- No derivatives: you may share the dataset only unmodified. Do not redistribute modified versions (for example, re-cut or re-split copies). Training and evaluating models on the dataset and publishing the results is fine.
The wall-painting photographs belong to the Pompeii Archaeological Park, and the fragment shapes come from the RePAIR dataset, which has its own license.
Citation
If you use this dataset, please cite:
@article{elkin2026stylish,
title = {Stylish Pieces: Advancing Deep Visual Style Recognition of Archaeological Fragments},
author = {Elkin, Gur and Shahar, Ofir Itzhak and Alali, Nadav and Napolitano, Maria Cristina and Zambrano, Alessandra and Ben-Shahar, Ohad},
journal = {ACM Journal on Computing and Cultural Heritage},
publisher = {Association for Computing Machinery},
year = {2026},
doi = {10.1145/3849479},
url = {https://doi.org/10.1145/3849479}
}
Please also cite RePAIR, the source of the fragment shapes:
@inproceedings{tsesmelis2024repair,
title = {Re-assembling the Past: The {RePAIR} Dataset and Benchmark for Real World {2D} and {3D} Puzzle Solving},
author = {Tsesmelis, Theodore and Palmieri, Luca and Khoroshiltseva, Marina and Islam, Adeela and Elkin, Gur and Shahar, Ofir Itzhak and Scarpellini, Gianluca and Fiorini, Stefano and Ohayon, Yaniv and Alali, Nadav and Aslan, Sinem and Morerio, Pietro and Vascon, Sebastiano and Gravina, Elena and Napolitano, Maria Cristina and Scarpati, Giuseppe and Zuchtriegel, Gabriel and Sp{\"u}hler, Alexandra and Fuchs, Michel E. and James, Stuart and Ben-Shahar, Ohad and Pelillo, Marcello and Del Bue, Alessio},
booktitle = {Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track},
year = {2024}
}
Acknowledgements
The wall-painting photographs were provided by the Pompeii Archaeological Park. Fragment geometries come from the RePAIR project.
- Downloads last month
- 44