Skip to content
ModelListedExternal
Download

19c Newspaper Column Yolo

This repository contains a YOLO detector fine-tuned to detect and segment columns in 19th-century American newspaper pages.

KindOtherVersionRevision 3cdf68b

Model source

Kind
Other
File size
5.32 MB
Version
vRevision 3cdf68b
Updated
Sep 16, 2026
Downloads
53
Tasks
Object detection
Source
Hugging Face

Source description

19c Newspaper Column YOLO Detector

This repository contains a YOLO detector fine-tuned to detect and segment columns in 19th-century American newspaper pages.

Extracting individual columns is a critical pre-processing step for historical OCR pipelines. Slicing long columns into smaller, overlapping horizontal strips resolves the text-hallucination/repetition issues that modern Vision-Language Models (like Gemma 2B/27B) encounter on full-page layouts.

Model Training & Performance

The model was trained on annotated historical newspaper pages. You can view the training metrics, curves, and validation performance directly below:

1. Training Metrics (results.png)

Shows training/validation loss decay and precision/recall improvements over epochs: Training Curves

2. Confusion Matrix

Displays normalized classification performance: Confusion Matrix

3. Model Predictions vs. Ground Truth

Compare the validation batch labels (ground truth annotations) with the actual predictions generated by the trained model:

Ground Truth Labels (val_batch0_labels.jpg)Model Predictions (val_batch0_pred.jpg)
Ground TruthModel Predictions

How to Run This Model

You can easily download and run this model in Python using the ultralytics package.

Installation

pip install ultralytics huggingface_hub

Python Inference Code

from huggingface_hub import hf_hub_download
from ultralytics import YOLO

# 1. Download the weights from Hugging Face
model_path = hf_hub_download(repo_id="ambrosfitz/19c-newspaper-column-yolo", filename="best.pt")

# 2. Load the model
model = YOLO(model_path)

# 3. Perform detection on a newspaper page image
results = model("path_to_newspaper_page.jpg")

# 4. Display or save the segmented columns
results[0].show()
# results[0].save(filename="output.jpg")

Sources

1 source
Hugging FacePrimaryVersion 3cdf68be19d34656b4e86b0f3605b8bee5349fca
huggingface.co/ambrosfitz/19c-newspaper-column-yolo/tree/3cdf68be19d34656b4e86b0f3605b8bee5349fca

Verified Sep 16

Model artifacts

1 artifact

best.pt

pt · 5.32 MB · SHA-256 022fc92e2a32…e19a · Hugging Face

Download

Source excerpts

2 excerpts

--- tags: - object-detection - yolo - ultralytics - historical-newspapers --- # 19c Newspaper Column YOLO Detector This repository contains a YOLO detector fine-tuned to detect and segment columns in 19th-century American newspaper pages. Extracting individual columns is a critical pre-processing step for historical OCR pipelines. Slicing long columns into smaller, overlapping horizontal strips resolves the text-hallucination/repetition issues that modern Vision-Language Models (like Gemma 2B/27B) encounter on full-page layouts. ## Model Training & Performance The model was trained on annotated historical newspaper pages. You can view the training metrics, curves, and validation performance directly below: ### 1. Training Metrics (`results.png`) Shows training/validation loss decay and precision/recall improvements over epochs: ![Training Curves](results.png) ### 2. Confusion Matrix Displays normalized classification performance: ![Confusion Matrix](confusion_matrix_normalized.png) ### 3. Model Predictions vs. Ground Truth Compare the validation batch labels (ground truth annotations) with the actual predictions generated by the trained model: | Ground Truth Labels (`val_batch0_labels.jpg`) | Model Predictions (`val_batch0_pred.jpg`) | | --- | --- | | ![Ground Truth](val_batch0_labels.jpg) | ![Model Predictions](val_batch0_pred.jpg) | --- ## How to Run This Model You can easily download and run this model in Python using the `ultralytics` package. ### Installation ```bash pip install ultralytics huggingface_hub ``` ### Python Inference Code ```python from huggingface_hub import hf_hub_download from ultralytics import YOLO # 1. Download the weights from Hugging Face model_path = hf_hub_download(repo_id="ambrosfitz/19c-newspaper-column-yolo", filename="best.pt") # 2. Load the model model = YOLO(model_path) # 3. Perform detection on a newspaper page image results = model("path_to_newspaper_page.jpg") # 4. Display or save the segmented columns results[0].show() # results[0].save(filename="output.jpg") ```

Source context: 53 downloads · 0 likes · Pipeline object-detection · Library ultralytics · Repo ambrosfitz/19c-newspaper-column-yolo