Views
No views yet
biglam/nls_chapbook_illustrations dataset (illustration bounding boxes from National Library of Scotland chapbook scans). Single-class output: early_printed_illustration.For new projects, considersmall-models-for-glam/historic-newspaper-illustrations-yolov11— a more recent YOLO-based illustration detector, faster at inference. This DETR model is kept for reproducibility and for the chapbook-specific use case it was trained on.
1from transformers import pipeline
2
3pipe = pipeline(
4 "object-detection",
5 model="small-models-for-glam/detr-resnet-50_nls-chapbooks",
6)
7
8pipe("https://huggingface.co/small-models-for-glam/detr-resnet-50_nls-chapbooks/resolve/main/Chapbook_Jack_the_Giant_Killer.jpg")
9# [{'box': {'xmax': 290, 'xmin': 70, 'ymax': 510, 'ymin': 261},
10# 'label': 'early_printed_illustration',
11# 'score': 0.998}]facebook/detr-resnet-50 for 10 epochs (lr=1e-4, batch_size=8, Adam, linear LR schedule).