lucaswiman/stichos-v1: Letter and focus detector for ancient Greek papyri
2 min read
The Stichos v1 model is a lightweight ResNet-18 U-Net model (an image segmentation architecture) trained on damaged Greek papyri. It finds strokes, letters, and their centers, and performs label-free Z-depth autofocusing and surface polarity determination for unopened Herculaneum scrolls. The model outputs logits for clean handwritten strokes, classes for 24 ancient Greek letters plus background, and Gaussian peaks for letter centers. This tool will be useful for ancient text researchers, Vesuvius Challenge participants, and anyone working with computer vision in archaeology.
Key features
- Each file size is only 48 MB (two training folds available).
- Built on ResNet-18 U-Net with a scale resolution of 1 cm = 1024 px (with pooling down to 192×192).
- Recognizes 24 ancient Greek characters and background noise.
- Uses layout contrast estimation for label-free Z-autofocus without ink labels.
What you can do
- Apply in Vesuvius Challenge projects for scroll scanning and analysis.
- Automatically determine Z-depth and surface polarity for papyrus layers.
- Extract regions with coherent letter structures on virtually unrolled volumes.
- Use alongside its companion model, the pre-trained ink model
lucaswiman/prognos-v1.
Example
import sys, torch, torch.nn.functional as F
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
sys.path.insert(0, "code/letters_truth")
sys.path.insert(0, "code/scoring_eval/hw")
sys.path.insert(0, "code/scoring_eval/hw/idea4")
import letterseg as LS
import pages as PG
nets = {}
for fold in ("foldA", "foldB"):
fp = hf_hub_download("lucaswiman/stichos-v1", f"{fold}.safetensors")
m = LS.LetterSeg(load=False).cuda().eval()
m.load_state_dict(load_file(fp), strict=True)
nets[fold] = m
with torch.inference_mode():
x = PG.soft_rank(F.adaptive_avg_pool2d(frame_1024[None, None], 192)).view(1, 1, 192, 192)
zi, zc, zh = nets["foldA"](x)
Read more
DetailsArchitecture: ResNet-18 U-Net (two training fold variants of 6,000 steps each)
Requirements: PyTorch, CUDA support, 48 MB weights
License: CC BY-NC 4.0 (based on Vesuvius Challenge and HomerComp data)
Limitations: not intended for full full-page text recognition (OCR) of entire words










Comments