stos
3D ink detection checkpoint for the vesuvius.ink_detection.stos pipeline.
Files
| File | Size | Description |
|---|---|---|
stos-25.57m-linear-fs4.pt |
98 MiB | EMA teacher weights (25.57M parameters, residual 3D U-Net, linear ink head, field_stride = 4, update = 100000) |
SHA256SUMS |
0.2 KiB | SHA-256 checksums for all files in this repository |
Training data
Trained across six public Vesuvius Challenge scrolls (PHerc1667, PHerc0139, PHercParis4, PHerc0814, PHerc0009B, PHerc0500P2) using the 3D scribble and grown-region labels published at:
https://huggingface.co/buckets/scrollprize/datasets/tree/stos(stos_ink_labels.parquet,manifest.json)
Download
hf download scrollprize/stos stos-25.57m-linear-fs4.pt --local-dir .
Run inference
Predict a 3D OME-Zarr probability volume over a zyx bounding box. Pass --output-stride 4 to write directly on the CT level-2 pyramid grid, centered at 4j + 1.5 via a +3/8-cell trilinear shift:
uv run --extra models python -m vesuvius.ink_detection.stos.infer \
--checkpoint stos-25.57m-linear-fs4.pt \
--volume https://vesuvius-challenge-open-data.s3.us-east-1.amazonaws.com/PHerc1667/volumes/20251217075048-2.399um-0.2m-78keV-masked.zarr \
--bbox 4000 4000 4000 4512 4512 4512 \
--out pred.ome.zarr
Predict onto a .tifxyz surface segment:
uv run --extra models python -m vesuvius.ink_detection.stos.infer \
--checkpoint stos-25.57m-linear-fs4.pt \
--volume https://vesuvius-challenge-open-data.s3.us-east-1.amazonaws.com/PHerc1667/volumes/20251217075048-2.399um-0.2m-78keV-masked.zarr \
--tifxyz /path/to/segment \
--out pred.tif
Fine-tune
Download the labels and manifest from hf://buckets/scrollprize/datasets/stos, then fine-tune across 8 GPUs:
hf sync hf://buckets/scrollprize/datasets/stos ./stos_data
uv run --extra models torchrun --standalone --nproc_per_node=8 -m vesuvius.ink_detection.stos.train \
--run /path/to/run \
--manifest ./stos_data/manifest.json \
--init-from stos-25.57m-linear-fs4.pt \
--batch-size 8 --parts 1 --workers 4 \
--max-queries 8192 --tube-radius 0 --papyrus-threshold 0.25 \
--ink-anchor-share 0.40 --ink-loss-share 0.30 \
--updates 100000 --learning-rate 3e-4 --final-learning-rate 3e-5 \
--warmup 2000 --cooldown-from 80000 --cooldown-updates 20000 \
--compile
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support