Downloads · 30 days
610
1% of all-time downloads
gaborcselle/font-identifier
font-identifier is a image classification model from gaborcselle. Use it when you need a label for an image. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of microsoft/resnet-18 on the imagefolder dataset. Result: Loss: 0.1172; Accuracy: 0.9633
Downloads · 30 days
610
1% of all-time downloads
All-time downloads
65K
Public
Parameters
11.2M
4.1 GB on disk
Likes
26
Public
Click a slice to open those files.
.safetensors44.9 MB · 92%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/resnet-18 on the imagefolder dataset. Result: Loss: 0.1172; Accuracy: 0.9633
Try with any screenshot of a font, or any of the examples in the 'samples' subfolder of this repo.
Identify the font used in an image. Visual classifier based on ResNet18.
I built this project in 1 day, with a minute-by-minute journal on Twitter/X, on Pebble.social, and on Threads.net.
The code used to build this model is in this github rep
Identify any of 48 standard fonts from the training data.
Trained and eval'd on the gaborcselle/font-examples dataset (80/20 split).
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 4.0243 | 0.98 | 30 | 3.9884 | 0.0204 |
| 0.8309 | 10.99 | 338 | 0.5536 | 0.8551 |
| 0.3917 | 20.0 | 615 | 0.2353 | 0.9388 |
| 0.2298 | 30.99 | 953 | 0.1326 | 0.9633 |
| 0.1804 | 40.0 | 1230 | 0.1421 | 0.9571 |
| 0.1987 | 46.99 | 1445 | 0.1250 | 0.9673 |
| 0.1728 | 48.0 | 1476 | 0.1293 | 0.9633 |
| 0.1337 | 48.78 | 1500 | 0.1172 | 0.9633 |
Confusion matrix on test data.
