Downloads · 30 days
10
42% of all-time downloads
harness-race/control-r1
control-r1 is a object detection model from harness-race. Use it when you need objects located in an image. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned DETR (ResNet-50) object-detection model for document / newspaper page-layout analysis. It detects 7 region types in scanned historical newspaper pages and was trained on the biglam/locbeyond…
Downloads · 30 days
10
42% of all-time downloads
All-time downloads
24
Public
Parameters
41.6M
167 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors167 MB · 100%
From the Hugging Face model README
This model is a fine-tuned DETR (ResNet-50) object-detection model for document /
newspaper page-layout analysis. It detects 7 region types in scanned historical
newspaper pages and was trained on the biglam/loc_beyond_words dataset.
facebook/detr-resnet-50Photograph, Illustration, Map, Comics/Cartoon, Editorial Cartoon, Headline, Advertisement
facebook/detr-resnet-50, all parameters fine-tuned (backbone unfrozen)| Metric | Value |
|---|---|
| mAP (IoU 0.50:0.95) | 0.1658 |
| AP @ IoU 0.50 | 0.2761 |
| AP @ IoU 0.75 | 0.1802 |
| AR (max 100 dets) | 0.2908 |
Per-class AP (IoU 0.50:0.95):
from transformers import AutoModelForObjectDetection, AutoImageProcessor
from PIL import Image
model = AutoModelForObjectDetection.from_pretrained("harness-race/control-r1")
processor = AutoImageProcessor.from_pretrained("harness-race/control-r1")
image = Image.open("page.png").convert("RGB")
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
results = processor.post_process_object_detection(outputs, target_sizes=[(image.height, image.width)], threshold=0.4)
for r in results[0]:
print(model.config.id2label[int(r['labels'])], round(r['scores'].item(),3) if hasattr(r['scores'],'item') else r['scores'], [round(c,1) for c in r['boxes'].tolist()])
Trained for research on historical newspaper layout analysis. Best on page layouts similar
to the loc_beyond_words training distribution; large format/styled pages not seen in
training may be missed. Evaluation was done on the dataset's official 712-image validation
split; run at 2026-08-07 (UTC) on HF Jobs.
Control-R1 — a layout-model entry. Trained on Hugging Face Jobs (< $5 budget).