[HN Gopher] Learnings from training a font recognition model fro...
___________________________________________________________________
Learnings from training a font recognition model from scratch
Author : justswim
Score : 25 points
Date : 2026-03-17 20:16 UTC (5 days ago)
(HTM) web link (www.mixfont.com)
(TXT) w3m dump (www.mixfont.com)
| Terretta wrote:
| Instructive, with a rewarding repo for your time.
| Tommix11 wrote:
| Graphic designer here. A font recognition ai is sorley needed.
| Gemini and its competitors flat out lie when asked and Adobe
| Illustrators Retype is laughably bad. The problem I face almost
| every day is not to find a close match but to find the actual
| font in use, commercial or not.
| WillAdams wrote:
| whatthefont and identifont used to work well, but they've been
| overwhelmed by new designs which are not used often enough to
| warrant inclusion.
|
| I just use Rookledge's Type Finder and a battered copy of
| Precision Type 5.0
| hank_z wrote:
| I'm curious to know how this model tackles newly released fonts.
| How difficult would it be if this model needs to recognise font
| in a different language?
| codemog wrote:
| Curious why the model architecture wasn't talked about at all?
| Did I miss that part?
| g58892881 wrote:
| pretty basic
|
| ``` from torchvision import models
|
| # Avoid downloading pretrained weights; we load trained
| checkpoint weights. model = models.resnet18(weights=None)
| model.fc = nn.Linear(model.fc.in_features, num_classes) ```
|
| https://github.com/mixfont/lens/blob/main/lens_inference.py#...
___________________________________________________________________
(page generated 2026-03-22 23:01 UTC)