scrollsim-tiles / README.md
SharpMeow's picture
Card follows the scroll dataset card standard 0.1: provenance.json, spent seeds and truth, SHA256SUMS without the card
a82dca3 verified
|
Raw History Blame Contribute Delete
11.8 kB
metadata
license: cc-by-4.0
pretty_name: ScrollSim synthetic scroll tiles
tags:
  - vesuvius-challenge
  - herculaneum
  - ct
  - synthetic
  - segmentation
  - papyrus
size_categories:
  - 10K<n<100K
configs:
  - config_name: hardcases-tiles
    data_files:
      - split: train
        path: hardcases-tiles/train-*.parquet
      - split: validation
        path: hardcases-tiles/validation-*.parquet
      - split: test
        path: hardcases-tiles/test-*.parquet
  - config_name: scrollsim2-cubes
    data_files:
      - split: train
        path: scrollsim2/cubes-train.parquet
      - split: validation
        path: scrollsim2/cubes-validation.parquet
      - split: test
        path: scrollsim2/cubes-test.parquet

ScrollSim synthetic scroll tiles

Ready-made synthetic CT of rolled papyrus with exact labels: every sheet, every winding number and every inked voxel is known, because the scroll was made by code. Use it to train or test sheet detectors, tracers, winding labelers and ink models before they meet real scans, where none of this truth exists.

This is not real CT. Nothing here comes from a scan. A held-apart realism judge still tells these renders from real CT almost every time (see How real it looks). A score on this data is model output on synthetic data and says nothing about a real scroll until the method is tested on real labels.

Synthetic: one Hard Cases tile per kind, CT above and exact sheet ids below

Synthetic: a ScrollSim v2 scroll, axial slice with exact winding labels and ink truth, and the CT sampled on the flattened recto surface

Synthetic: the axial slice of scroll 20261126001 as CT, then with its exact winding labels, then with its ink truth (6 s a frame)

preview.json names the seeds and slice behind the pictures; they were made with preview.py from the files here.

What is in it

Part What Count Size
hardcases-tiles 2D tiles, 256 x 256: CT, sheet ids, hard-case zone map 10,000 train, 1,000 validation, 1,000 test 616 MB
hardcases-volumes 3D blocks, 64 x 256 x 256, one hard case each, 10 kinds x 6 seeds 60 237 MB
scrollsim2 whole synthetic scrolls, 256 x 512 x 512, OME-Zarr with pyramid, VC3D-ready surfaces 8 scrolls plus 2 no-ink twins 930 MB
scrollsim2-cubes index of every 128^3 chunk of those scrolls holding sheet (one chunk is one ready cube) 108 train, 12 validation, 48 test small

About 1.8 GB in all. SHA256SUMS covers every file except this card, and provenance.json records the sources, code commit, caveats and spent seeds in machine-readable form.

Hard Cases tiles

Each row of the Parquet shards:

Column Type Meaning
image PNG, uint8 the rendered CT tile
sheet_id PNG, uint16 sheet center lines, one id per sheet (0 background); a hairpin keeps one id round its fold; spirals get one id per connected piece
zone PNG, uint8 hard-case bits: fold, contact, delamination, crack, crushed, edge, center (kit.hardcases.ZONES)
air, crack PNG, uint8 open air outside the roll; crack openings
kind string plain, spiral, hairpin, tight_u, tight_bend, accordion, mush, delamination, crack, edge, with +contact and _compact variants
plane string z (axial) or y (side slice)
seed, k int the run seed and tile index: kit.hardcases.tile(seed, k, 256) rebuilds the tile
layout JSON the layout's parameters

Hard Cases volumes

hardcases-volumes/KIND-SEED.npz: ct (uint8), sheet (uint16 thick sheet ids), lines (uint16 center lines), zone, air, crack (z, y, x = 64, 256, 256), and layout (JSON).

ScrollSim v2 scrolls

scrollsim2/SEED-NAME/ is the folder python -m kit.scrollsim2 make writes:

  • ct.zarr: OME-Zarr 0.4, uint8, levels 0 to 5, chunks 128^3, scale in micrometers (8 um voxels).
  • truth/labels.zarr: uint16, winding number plus 1 per voxel, 0 air; same levels.
  • truth/contact.zarr/0: uint8, 0 air, 1 sheet apart from its neighbor, 2 sheet pressed against it.
  • truth/ink.zarr/0 (ink scrolls): uint8, 1 where ink reaches.
  • truth/surfaces/spiral-recto/, spiral-center/: the whole sheet as tifxyz, with winding.npy per vertex and ink.tif (ink scrolls).
  • truth.json: every parameter, the turns, the center line, the scan model and the render record.
Seed Name Scan model Sheet physics Ink Split
20261126001 sync-ink synchrotron on yes, plus no-ink twin train
20261126002 sync-ink-crushed synchrotron, squash 0.35 on yes, plus no-ink twin test
20261126003 lab lab on no train
20261126004 plain none (release-1 look) off no train
20261126005 pressed synchrotron, contact share 0.8 on no train
20261126006 joins-cracks synchrotron, kolleseis and cracks on yes train
20261126007 lab-crushed lab, squash 0.3, warp 8 on yes validation
20261126008 sync-ink-small synchrotron, smaller letters on yes test

Each scrollsim2/cubes-SPLIT.parquet row names a scroll and a cube origin (z0, y0, x0, side 128), the paths of its arrays, and the cube's sheet share, winding count, pressed share and ink share; ink_in_ct is false for the no-ink twins, whose ink truth is written but not painted.

The no-ink twin has the same seed and parameters with the ink left out of the CT, so a paired ink effect can be scored voxel by voxel. Splits are by whole scroll.

Get it

hf download SharpMeow/scrollsim-tiles --repo-type dataset --local-dir scrollsim-tiles
cd scrollsim-tiles && sha256sum -c SHA256SUMS

Tiles only: add --include "hardcases-tiles/*". One scroll: --include "scrollsim2/20261126001-sync-ink/*".

Load it

import numpy as np, zarr
from datasets import load_dataset
from huggingface_hub import snapshot_download

# 2D tiles with exact sheet ids
ds = load_dataset("SharpMeow/scrollsim-tiles", "hardcases-tiles", split="validation")
row = ds[0]
img = np.array(row["image"])
ids = np.array(row["sheet_id"])                    # uint16, 0 background
print(row["kind"], img.shape, "sheets:", len(np.unique(ids)) - 1)

# one 128^3 cube of a whole synthetic scroll: CT, winding labels, ink truth
root = snapshot_download("SharpMeow/scrollsim-tiles", repo_type="dataset",
                         allow_patterns=["scrollsim2/20261126001-sync-ink/*"])
sim = f"{root}/scrollsim2/20261126001-sync-ink"
cube = (slice(0, 128), slice(128, 256), slice(128, 256))
ct = zarr.open(f"{sim}/ct.zarr/0", mode="r")[cube]
winding = zarr.open(f"{sim}/truth/labels.zarr/0", mode="r")[cube].astype(int) - 1   # -1 is air
ink = zarr.open(f"{sim}/truth/ink.zarr/0", mode="r")[cube]
print(ct.shape, "windings:", np.unique(winding[winding >= 0]).size, "ink voxels:", int(ink.sum()))

load_example.py is a runnable version; it was run on this release before upload.

How it was made

From ChaseHendrick/Scrolls at commit 51a17e6, on CPU, with fresh seeds recorded above and in every file (20261126xxx, used by no earlier test in the Scrolls repositories):

  • Hard Cases (docs/tools/hardcases.md): python -m kit hardcases tiles with seeds 20261126101 (train), 20261126102 (validation) and 20261126103 (test), default kind shares and render; python -m kit hardcases volume with seeds 20261126201 to 20261126260. Each layout is a continuous 3D field, so every sheet keeps one exact id in any slice direction. The hard-case kinds follow Synthetic-Slices v0.2 by vincentl065 (repository, MIT), rebuilt in 3D.
  • ScrollSim v2 (docs/tools/scrollsim2.md): python -m kit.scrollsim2 make --surfaces --truth contact with the settings in each truth.json; procedural stroke glyphs (ink_glyphs strokes), so the same parameters rebuild the same scroll on any machine. The glyphs are random letter-like shapes chosen by a hash, not text. No texture library: nothing was copied from real CT.

How real it looks

Not very, yet. Measured by simcritic, a judge that fits fresh critics to tell real CT windows from simulated ones (0.5: cannot tell; 1.0: always can), on a public fragment scan, PHerc0343P, 25 November 2026:

Set Worst-critic AUC
Real against real (control) 0.473
Hard Cases tiles, render tuned toward that scan, two rounds 0.999 and 1.000
The same tiles through a learned sim-to-real texture (not released), five settings 0.971 to 0.998

Every simulated set was told apart from real CT. The default Hard Cases render used here scored a linear realism AUC of 0.999 against the same scan (simreal). The ScrollSim v2 scrolls were not judged; their tool page says they do not yet look or score like real CT. What gives the tiles away most: too much power in the finest spatial frequencies, and grain that is less aligned with the sheets than real papyrus fibers.

So: good for pretraining, unit tests, debugging and exact per-hard-case scores; not a substitute for real labels. A method's rank here is not evidence of its rank on real scrolls.

Notes

  • Sheet ids and winding numbers are exact by construction; a detector that disagrees is wrong about this data.
  • The scan model's numbers are chosen by eye and from one published setup, not measured; the sheet physics amplitudes are guesses.
  • The ink is a simple layer model, not calibrated against real ink; no real ink reader is claimed to see it.

Spent seeds and truth

Every seed that built this release is now public, so none of them is fresh for a test anymore:

  • ScrollSim v2 scrolls: 20261126001 to 20261126008 (the no-ink twins of 20261126001 and 20261126002 share their seeds).
  • Hard Cases tiles: 20261126101 (train), 20261126102 (validation) and 20261126103 (test).
  • Hard Cases volumes: 20261126201 to 20261126260.
  • The preview tile: 20261126199.

Pick seeds outside these for any test meant to be held out. No real labels were used. The realism figures in How real it looks were scored against real CT windows of the public fragment scan PHerc0343P; those windows are not in this dataset. provenance.json holds the same list, in the format of the scroll dataset card standard.

License and credit

CC BY 4.0. Synthetic data with no scan data in it, made by the Scrolls kit (code Apache-2.0). Hard-case kinds after Synthetic-Slices by vincentl065 (MIT).

Citation

@misc{sharpmeow2026scrollsimtiles,
  author       = {SharpMeow},
  title        = {ScrollSim synthetic scroll tiles},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/SharpMeow/scrollsim-tiles}},
  note         = {Hugging Face dataset. Synthetic CT of rolled papyrus with exact sheet, winding and ink labels}
}

Changelog

  • 2026-11-26 (later): the card follows the scroll dataset card standard 0.1: provenance.json, a Spent seeds and truth section, a citation and this changelog. SHA256SUMS no longer lists this card, so a card edit no longer breaks sha256sum -c, and now lists provenance.json. No data file changed.
  • 2026-11-26: first release.