Synthetic-Slices: weights (v0.2)

Weights behind Synthetic-Slices, a training-data generator for Herculaneum scroll tools. It makes synthetic CT slices (~9.4 µm/px) where every sheet is labelled exactly: a procedural layout of sheets comes first, and a diffusion model paints the slice around it. v0.2 adds harder layouts (folds, cracks, crushed regions, scroll edges) and a sheet-line detector trained on synthetic tiles only.

Paris 4, never seen by any model: true lines, detector trained on synthetic tiles, detector trained on real slices

Paris 4 (never seen by any model, including the generator). Column 3: detector trained on synthetic tiles only. Column 4: the same small detector trained on real slices with m7 labels. Both go through the same line extraction (NMS 2).

Files

file what size
generator_v02_noP4_ema_5492.safetensors v0.2 generator (default of the CLI): same EDM U-Net and recipe as v0.1, retrained without any Paris 4 data, so Paris 4 stays a fair test. EMA weights at step 5,492. It painted the benchmark training tiles. 146 MB
synthetic_slices_ema_6655.safetensors v0.1 generator (unchanged, its training data included Paris 4) 146 MB
detector_v02_S5_seed1.safetensors (seed2, seed3) sheet-line detector trained on 2,000 synthetic tiles only (v0.2 recipe), 3 training seeds; seed 1 is the CLI default 5 MB each
samples/samples_v02_S5recipe.npz 32 synthetic 256 px tiles of the v0.2 recipe (image, lines, sheet_id, dist, kind, crack, crushed...)
samples/png/ 8 previews (one per kind), image + exact lines

Every sample image is 100 % synthetic. sha256 sums are listed at the end of this card.

The v0.2 recipe (what the generator is asked to draw)

v0.2 synthetic tiles: crack, hairpin, tight bend, mush, delamination, scroll edge, crushed patch, sheets in contact

  • 50 % plain stacks (as v0.1), 8 % of them turned into a scroll edge with frayed last sheets.
  • 25 % folds: hairpin, tight U, tight bend, accordion (30 % "compact", sheets packed near the minimum gap).
  • 25 % hard cases: crack (jagged break, sheets cut and offset, painted with the tile's own air), mush (crushed, blurred across sheets, lower contrast), delamination.
  • Extras: sheets pressed into contact (25 % of non-hard tiles), crushed patches (15 %), bright mineral inclusions (25 %), debris in the air (25 %).
  • Labels stay exact: two different sheets never touch, painting steps never move a line.

Detector benchmark (sheet-line detection)

Same small 2D U-Net (~1.3 M parameters), same number of steps and same augmentation for every learned arm, 3 training seeds, best step chosen on 56 held-out real tiles (never on test slices). Test: Paris 4 (6 stitched slices from the public manual instance labels, never seen by any model) and held-out hand-traced slices from other scrolls. Counts are per 1,000 px of predicted line.

Benchmark: F1, branches, sheet jumps and line ends, before and after NMS 2

detector, with NMS 2 extraction F1 @ 2 px, Paris 4 F1 @ 2 px, hand-traced slices sheet jumps junctions spurs line ends
synthetic tiles only (this repo) 0.573 ± 0.003 0.603 14.1 0 0 37.1
real slices, m7 labels 0.431 ± 0.006 0.529 13.9 0 0 37.9
classic ridge filter (no learning) 0.706 0.572 14.1 0 0 44.2
synthetic tiles only, old extraction (threshold + skeleton) 0.576 ± 0.017 0.594 18.9 19.4 11.7 40.0

± = standard deviation over the 3 training seeds.

  • At equal extraction, the detector trained on synthetic tiles beats the same detector trained on real slices with m7 labels (+0.14 F1 on Paris 4, +0.07 on the hand-traced slices).
  • The classic ridge filter is still better on Paris 4 (0.706). It is worse on the hand-traced slices.
  • NMS 2 (maximum across the sheet, angle gate against bridges, no curvature threshold) removes every junction and spur at the same F1. Its settings were frozen on a tuning set, never on test slices.

Limits

  • In crushed regions NMS 2 still draws short oriented strokes: no branches, but not followed sheets either.
  • Synthetic cracks are often too thin, and synthetic crushed regions too smooth / blurry compared with real ones.
  • Sheet jumps went down from 18.9 to 14.1 per 1,000 px, but not below the real-data detector (13.9).
  • The texture between lines is learned, so approximate (the generator's training layouts were m7 predictions).
  • 2D slices only.

Use

pip install git+https://github.com/vincentl065/Synthetic-Slices
synthetic-slices generate --n 1000 --size 256 --out tiles          # v0.2 recipe, exact labels, weights downloaded from here
synthetic-slices detect my_slice.tif --out lines                    # detector + NMS 2 -> one line per sheet, no branches

Licence and credits

  • Licence: CC BY-NC 4.0, because the weights derive from Vesuvius Challenge data (CC BY-NC 4.0; Paris 4 belongs to the EduceLab-Scrolls dataset, used by permission granted to the Vesuvius Challenge). Non-commercial use, with attribution.
  • The generator was trained on public ~9 µm scroll CT with the m7 surface predictions (Vesuvius Challenge). The detector was trained on synthetic tiles only.
  • Methods: EDM (Karras et al., 2022), MultiDiffusion (Bar-Tal et al., 2023).
  • Inspired by posts shared by stokarz and dreamskid on the Vesuvius Challenge Discord.

sha256

b898b508ebfa8070e5d51e89d38d3b9d77aeaf9a4cb81a55368f48500491a665  detector_v02_S5_seed1.safetensors
432a78a8564b10c8643e51054a1f23064ed1341c7273af626bb9ee6e7a263999  detector_v02_S5_seed2.safetensors
d5641a939c68c56dd7297ace14ed883eb625878ca09a8ccc4e3396ada317f9c4  detector_v02_S5_seed3.safetensors
3f1520cc92b524ef0ac1ada3a37a7ef887c31eb2aacda81f68c419b2c758c3d0  generator_v02_noP4_ema_5492.safetensors
14683752a8b9f6d47632433ec458d4d4918a04b92d637bc50248bfe3176909b1  paris4_synthetic_vs_real_nms2.png
a9dfc678c43a5ec89936354b9db382e7f042e4749bd85ea2dc2d41fc666a8b0e  samples/png/0_crack.png
9dc2f62959686eff6dad36d2b46b2e2b23d42796f6e43aa69a2d23d36a6a2de8  samples/png/0_crack_lines.png
1aedc8b35f2a39e6668ad8cd387885335a6f0722e8ab89d62b3eb6bcb4967647  samples/png/1_hairpin.png
9d9e96f445970cfa8d08a3caa40636572a4d168a36132e8389526a5f235c51af  samples/png/1_hairpin_lines.png
c4007769ee8e69bb3a45e5c32ac37f06f1555ac939135058ec41a3c4eac69ef1  samples/png/2_tight_bend.png
0f828f2864cfe42e065bd13198d43ecb64bac696778440057de418b1a813adf1  samples/png/2_tight_bend_lines.png
e6ca56c44316741f5e8466cf49f3eb2b5c6a9a06b29e4c2d68a250250316446b  samples/png/3_mush.png
858fe1cdf729a70bd732dc7c7f024a53ebea6326837b4d86b803b8fd5aab5683  samples/png/3_mush_lines.png
94195edb12a715852ede6f943b5efa23e1ef9d2f5ed2615fd3c46792bfd43cd7  samples/png/4_delamination.png
01259f97ff97673bf53fc88771fdab8a361660ea25c26e6f005a28706272d82e  samples/png/4_delamination_lines.png
6fdcb4f0b82e0a7afb04f6c6f4f8b7ca5eaef6b94b5ba85e96ccab26c7881278  samples/png/5_scroll_edge.png
c6aa75780b46d4433947e8804ebf1f85b7ff683bf7a4a428db5e2e8ad2f7f3ca  samples/png/5_scroll_edge_lines.png
781249209a77aebf906004a67b869036a4f1095cfdb9f108adde5bc609de52cd  samples/png/6_plain_crushed.png
55479f401e99467d5021bd7bf46b5e930c4152266d2757a85c17a825ff6dc9f5  samples/png/6_plain_crushed_lines.png
369371ac83442edb59cc85796150f11c32787151f108e473ae0676c80b3ecd2d  samples/png/7_plain_contact.png
e416e9a6b73cc4e347c6624148a8354ce97d510ed5437de75d6be3eedbfc7079  samples/png/7_plain_contact_lines.png
9ab48f344be2647921967c56883d9b22952942131943a21c177ea6293402d085  samples/samples_v02_S5recipe.npz
30648cca5b890895f6f02c4a3e6e215c2dd2f1ace4020003bb6e2c81eb6c8dac  stats_v02.png
4f088f130ac6b455e60773895af61777635e70182607dc8cd9fc5d49309117e0  synthetic_tiles_v02.png
c553d2fb1e6a096e9fb28c143d65eda3cca72f65f5e9e6e0fd30f18ee1cc0381  synthetic_slices_ema_6655.safetensors  (already on the repo since v0.1)
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support