Run this model with HF Jobs

Run davidlnk3/geotrace-photo-year on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/davidlnk3/geotrace-photo-year. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/davidlnk3/geotrace-photo-year on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

GeoTrace photographic-style year classifier

Estimates the year a photograph was taken from its photographic style. Used by the time_from_objects tool of GeoTrace, alongside that tool's EVA02-CLIP object build-year intervals.

This is a reproduction of "Blind Dates: Examining the Expression of Temporality in Historical Photographs" (Barancová, Wevers & van Noord, CHR 2023). The paper reports no hyperparameters, so the architecture and the train/test split are taken from the authors' own code, CANAL-amsterdam/dating-images.

Architecture

A multinomial logistic regression over 50 year classes (1950-1999) on top of frozen OpenCLIP image embeddings. The backbone is not fine-tuned.

Backbone ViT-B-32-quickgelu / laion400m_e32 via open_clip
Embedding raw encode_image output, no L2 normalisation, 512-d
Head LogisticRegression(random_state=0, max_iter=5000), scikit-learn 1.9.1
Classes one per year, 1950-1999

Files

  • model.safetensors — weight (50x512), bias (50), classes (the 50 year labels, ascending)
  • config.json — backbone identifiers, training data counts and the metrics below

The head is published as plain arrays rather than a pickled estimator, so serving it needs no scikit-learn and loads no executable code:

import numpy as np
from safetensors.numpy import load_file

t = load_file("model.safetensors")
logits = embedding @ t["weight"].T + t["bias"]      # embedding: raw encode_image output, 512-d
year = int(t["classes"][logits.argmax()])

Training data

  • De Boer Scene Detection (Zenodo 7137452): 31892 train / 7974 test digitised Dutch press photographs, using the authors' own stratified 80/20 split so results stay comparable to the paper.
  • 500 Flickr photographs from DEW (Date Estimation in the Wild, doi:10.22000/43), sampled evenly across 1950-1999 and added to the training set only. DEW photo licences vary per image, so none are redistributed here; DEW's own test and validation ids were excluded from the sample.

Results

Measured on the authors' De Boer test split (7974 images), so the MAE is comparable with the paper's reported 6.65 years for its fine-tuned classifier (and 15.8 for zero-shot prompting).

Model Train images Accuracy MAE (years) MAE, expected value
De Boer only 31892 0.1369 6.65 5.95
+ 500 DEW photos (published) 32392 0.1366 6.71 5.99

Does adding DEW help?

De Boer is Dutch press photography; DEW is worldwide amateur Flickr photography. Scored on 400 held-out DEW photographs (drawn from DEW's own validation ids, disjoint from the 500 used for training):

Trained on De Boer test MAE Held-out DEW MAE
De Boer only 6.65 13.55
+ 500 DEW photos 6.71 13.29

Adding 500 DEW photographs (1.5% of the training set) costs +0.05 years in-domain and gains -0.26 years out-of-domain. The DEW figures are roughly twice the De Boer ones either way: amateur photography from anywhere is a far harder and broader problem than one newspaper's archive, which is the honest ceiling on this model away from press imagery.

"Accuracy" is exact-year accuracy over 50 classes, which is why it is low while the MAE is a few years: the head is usually close rather than exactly right. "MAE, expected value" uses the probability-weighted mean year instead of the argmax; it is reported for information and is not the paper's decision rule.

Trained 2026-11-10 on Python 3.12.15.

Intended use and limits

Intended for verifying public photographs — press, news and archival images — as one signal among several, in the spirit of the parent project.

The label space is the whole limitation. The head has year classes for 1950-1999 only, so it always answers inside that range, including for a photograph taken outside it. It cannot say "2015", and on a modern digital photo it still returns some year between 1950 and 1999. Treat the output as how old the photograph looks, not as evidence of when it was taken, and discard it when other evidence places the photo after 1999. GeoTrace does this automatically: time_from_objects flags the estimate when a dated object in the same photo post-dates 1999.

Further caveats:

  • It reads photographic style — grain, colour response, process, framing conventions — not the content of the scene. A deliberately retro or film-emulated photograph will read as older.
  • Training images are overwhelmingly Dutch press photography, so it is weakest on other regions, on amateur snapshots and on subject matter the De Boer archive does not cover.
  • Exact-year accuracy is low by design; use the interval, not the single year.
  • It does not identify people and must not be used to do so.

Licence and attribution

MIT, matching the parent project. The method is the authors' of Blind Dates; this repository holds an independent reproduction, not their weights. De Boer Scene Detection is CC BY 4.0. The DEW photographs stay under their own individual Flickr licences, which vary per photo and are often not open. No training image is redistributed here — only the fitted coefficients are.

Downloads last month
71
Safetensors
Model size
25.7k params
Tensor type
F32
·
I32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for davidlnk3/geotrace-photo-year