Views
No views yet
index-card-detector-v5index-card-detector-v3 with a higher-quality navy training set (re-labelled via a v3+v4 model-ensemble + targeted human review).NationalLibraryOfScotland/archival-index-card-detector/model.pt (YOLO26n) on small-models-for-glam/index-card-detection-v5 — 1,425 archival scans across four institutions, with the 25 navy multi-card scans re-labelled via ensemble + review.card.NationalLibraryOfScotland/archival-index-card-detectorsmall-models-for-glam/index-card-blank-detector.bbox = whole image for pre-cropped sources). Boxes on cropped-card inputs are loose by construction.1from huggingface_hub import hf_hub_download
2from ultralytics import YOLO
3
4weights = hf_hub_download(
5 repo_id="small-models-for-glam/index-card-detector-v5",
6 filename="best.pt",
7)
8model = YOLO(weights)
9results = model.predict("your_scan.jpg", conf=0.25, imgsz=1024)[0]
10for box in results.boxes.xyxy.cpu().tolist():
11 print(box) # [x1, y1, x2, y2] in pixel coords1weights = hf_hub_download(
2 repo_id="small-models-for-glam/index-card-detector-v5",
3 filename="best.onnx",
4)
5model = YOLO(weights) # ultralytics auto-uses onnxruntime
6results = model.predict("your_scan.jpg", conf=0.25, imgsz=1024)[0].pt checkpoint on CPU.small-models-for-glam/index-card-detection-v5 — 1,425 images across four collections; navy re-labelled via v3+v4 ensemble + human review (see dataset card for full provenance).NationalLibraryOfScotland/archival-index-card-detector/model.ptmulti_scale: False (single-scale — we found multi-scale traded too much recall)batch=-1, picks ~13 on l4x1)cos_lr=True)best.pt), 10.7 MB (best.onnx)| Model | navy mAP50:95 | 9-card grid recall | Multi-scale | Notes |
|---|---|---|---|---|
| v3 | 0.929 | 9/9 | No | Original baseline |
| v4 | 0.764 | 7/9 (at conf 0.25) | Yes | Recall regression on busy multi-card scenes |
| v5 (this) | TBD | TBD | No | v3 + refined navy labels |
1@misc{vanstrien_index_card_detector_v5_2026,
2 author = {van Strien, Daniel},
3 title = {{index-card-detector-v5: YOLO26n for archival index cards, ensemble-refined}},
4 year = {2026},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/small-models-for-glam/index-card-detector-v5}
7}