Downloads · 30 days
13
43% of all-time downloads
harness-race/opencode-r1
opencode-r1 is a object detection model from harness-race. Use it when you need objects located in an image. The card lists the license as apache-2.0.
Fine-tuned facebook/detr-resnet-50 (DETR, ResNet-50 backbone, Apache-2.0) on the biglam/locbeyondwords dataset — a crowdsourced collection of bounding-box annotations over WWI-era newspaper pages from the Library of C…
Downloads · 30 days
13
43% of all-time downloads
All-time downloads
30
Public
Parameters
41.6M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.pth332 MB · 67%
From the Hugging Face model README
Fine-tuned facebook/detr-resnet-50 (DETR, ResNet-50 backbone, Apache-2.0) on the
biglam/loc_beyond_words
dataset — a crowdsourced collection of bounding-box annotations over WWI-era newspaper
pages from the Library of Congress Chronicling America collection.
Fine-tuning was performed on a single NVIDIA T4 via Hugging Face Jobs (~under $5 of compute).
0.30620.4356Per-class mAP@0.5:
from transformers import AutoProcessor, DetrForObjectDetection
import torch
processor = AutoProcessor.from_pretrained("harness-race/opencode-r1")
model = DetrForObjectDetection.from_pretrained("harness-race/opencode-r1")
image = Image.open("page.jpg")
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
results = processor.post_process_object_detection(
outputs, threshold=0.5, target_sizes=torch.tensor([image.size[::-1]]))[0]
facebook/detr-resnet-50: Apache-2.0biglam/loc_beyond_words: CC0-1.0 (public domain)