Downloads · 30 days
0
jimmylomro/hercunet-v0
hercunet-v0 is a machine learning model from jimmylomro. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
HercUNet is a self-refining U-Net that detects the medial surfaces (sheets) of rolled papyrus in carbonised Herculaneum scrolls from X-ray µCT. This is v0 (the run301 model): the iterative AffinityMalis + online-DAgge…
Downloads · 30 days
0
Access
Public
Updated Oct 26, 2026
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.pth1.6 GB · 100%
From the Hugging Face model README
HercUNet is a self-refining U-Net that detects the medial surfaces (sheets) of rolled papyrus in carbonised
Herculaneum scrolls from X-ray µCT. This is v0 (the run301 model): the iterative AffinityMalis +
online-DAgger refiner D(CT, prev) → surface, warm-started from the ScrollPrize m7 surface detector and
trained on our stage-1 ∇φ pseudo-labels plus a mined m7 rehearsal corpus.
| File | What |
|---|---|
plans.json | nnUNetResEncUNetLPlans, patched to 5 input channels (CT + 4 candidate/prev crests). |
dataset.json | channels {CT, cand0..3}, labels {background:0, surface:1, ignore:2}, Tiff3DIO. |
dataset_fingerprint.json | nnU-Net fingerprint. |
fold_0/checkpoint_best.pth | the champion weights (best EMA). |
fold_0/checkpoint_latest.pth | last checkpoint (for --continue resume). |
fold_0/training_log_*.txt, progress.png | training provenance. |
Install HercUNet (pip install -e ".[train]" from the repo), then warm-start / re-train / fine-tune from this
model — the checkpoint is pulled from this repo automatically:
hercunet train fit --dataset <NNN> --pretrained-hf jimmylomro/hercunet-v0
--pretrained-hf downloads checkpoint_best.pth and loads it (expanding the input stem as needed). See
docs/training.md.
nnUNetv2_predictHercUNet's network is not a plain ResEncUNet: the trainer builds an 8-channel stem [CT, prev, orientation×6] + an affinity head, and inference is iterative (feed the previous pass's softmax back in,
Jacobi-blend). plans.json describes only the base geometry — the stem, the head, and the iteration live in
the hercunet code. So this checkpoint is loadable by anyone, but running it requires hercunet
inference, not stock nnUNetv2_predict (which would silently build the wrong network).
Trainer nnUNetTrainer_AffinityMalis_IterDagger_500epochs, K=4 candidate channels. The exact
hyperparameters are the shipped recipe
hercunet/recipes/hercunet.yml
(run301). Methodology: the write-up in the repo (submission/writeup/).
License: see the GitHub repository.