File size: 11,794 Bytes
2a8335a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a82dca3
 
2a8335a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a82dca3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a8335a
 
 
 
a82dca3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
---
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](#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](hardcases-kinds.png)

![Synthetic: a ScrollSim v2 scroll, axial slice with exact winding labels and ink truth, and the CT sampled on the flattened recto surface](scrollsim2-scroll.png)

![Synthetic: the axial slice of scroll 20261126001 as CT, then with its exact winding labels, then with its ink truth (6 s a frame)](scrollsim2-slice.gif)

`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

```bash
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

```python
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](https://github.com/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`](https://github.com/ChaseHendrick/Scrolls/blob/main/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](https://github.com/vincentl065/Synthetic-Slices), MIT), rebuilt
  in 3D.
- **ScrollSim v2** ([`docs/tools/scrollsim2.md`](https://github.com/ChaseHendrick/Scrolls/blob/main/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](https://github.com/ChaseHendrick/Scrolls/blob/main/docs/tools/simcritic.md), 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](https://github.com/ChaseHendrick/Scrolls/blob/main/docs/tools/simreal.md)).
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](#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](https://github.com/ChaseHendrick/Scrolls/blob/main/docs/standards/dataset-card.md).

## 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

```bibtex
@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](https://github.com/ChaseHendrick/Scrolls/blob/main/docs/standards/dataset-card.md): `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.