Instructions to use mlahr/font-identifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlahr/font-identifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="mlahr/font-identifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("mlahr/font-identifier") model = AutoModelForImageClassification.from_pretrained("mlahr/font-identifier") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +53 -53
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -23,7 +23,7 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
-
value: 0.
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [microsoft/resnet-18](https://huggingface.co/microsoft/resnet-18) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
-
- Loss: 0.
|
| 37 |
-
- Accuracy: 0.
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
@@ -68,56 +68,56 @@ The following hyperparameters were used during training:
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
-
| 3.
|
| 72 |
-
| 3.
|
| 73 |
-
| 2.
|
| 74 |
-
| 2.
|
| 75 |
-
| 1.
|
| 76 |
-
| 1.
|
| 77 |
-
| 1.
|
| 78 |
-
| 1.
|
| 79 |
-
|
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
| 86 |
-
| 0.
|
| 87 |
-
| 0.
|
| 88 |
-
| 0.
|
| 89 |
-
| 0.
|
| 90 |
-
| 0.
|
| 91 |
-
| 0.
|
| 92 |
-
| 0.
|
| 93 |
-
| 0.
|
| 94 |
-
| 0.
|
| 95 |
-
| 0.
|
| 96 |
-
| 0.
|
| 97 |
-
| 0.
|
| 98 |
-
| 0.
|
| 99 |
-
| 0.
|
| 100 |
-
| 0.
|
| 101 |
-
| 0.
|
| 102 |
-
| 0.
|
| 103 |
-
| 0.
|
| 104 |
-
| 0.
|
| 105 |
-
| 0.
|
| 106 |
-
| 0.
|
| 107 |
-
| 0.
|
| 108 |
-
| 0.
|
| 109 |
-
| 0.
|
| 110 |
-
| 0.
|
| 111 |
-
| 0.
|
| 112 |
-
| 0.
|
| 113 |
-
| 0.
|
| 114 |
-
| 0.
|
| 115 |
-
| 0.
|
| 116 |
-
| 0.
|
| 117 |
-
| 0.
|
| 118 |
-
| 0.
|
| 119 |
-
| 0.
|
| 120 |
-
| 0.
|
| 121 |
|
| 122 |
|
| 123 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.9681818181818181
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [microsoft/resnet-18](https://huggingface.co/microsoft/resnet-18) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.1184
|
| 37 |
+
- Accuracy: 0.9682
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 3.3213 | 1.0 | 14 | 3.2453 | 0.0682 |
|
| 72 |
+
| 3.1711 | 2.0 | 28 | 3.0051 | 0.1273 |
|
| 73 |
+
| 2.8729 | 3.0 | 42 | 2.6285 | 0.2091 |
|
| 74 |
+
| 2.562 | 4.0 | 56 | 2.1600 | 0.3773 |
|
| 75 |
+
| 1.8675 | 5.0 | 70 | 1.6392 | 0.5364 |
|
| 76 |
+
| 1.6359 | 6.0 | 84 | 1.2267 | 0.6682 |
|
| 77 |
+
| 1.3499 | 7.0 | 98 | 1.0588 | 0.6818 |
|
| 78 |
+
| 1.076 | 8.0 | 112 | 0.8791 | 0.6909 |
|
| 79 |
+
| 0.9811 | 9.0 | 126 | 0.7573 | 0.7545 |
|
| 80 |
+
| 0.7309 | 10.0 | 140 | 0.6195 | 0.7818 |
|
| 81 |
+
| 0.7776 | 11.0 | 154 | 0.5426 | 0.8 |
|
| 82 |
+
| 0.7365 | 12.0 | 168 | 0.4029 | 0.8773 |
|
| 83 |
+
| 0.5767 | 13.0 | 182 | 0.4418 | 0.8364 |
|
| 84 |
+
| 0.5838 | 14.0 | 196 | 0.3538 | 0.8818 |
|
| 85 |
+
| 0.4491 | 15.0 | 210 | 0.3834 | 0.8636 |
|
| 86 |
+
| 0.5056 | 16.0 | 224 | 0.2701 | 0.9227 |
|
| 87 |
+
| 0.4364 | 17.0 | 238 | 0.3142 | 0.8818 |
|
| 88 |
+
| 0.364 | 18.0 | 252 | 0.2617 | 0.9136 |
|
| 89 |
+
| 0.3845 | 19.0 | 266 | 0.3092 | 0.8818 |
|
| 90 |
+
| 0.3873 | 20.0 | 280 | 0.2309 | 0.9136 |
|
| 91 |
+
| 0.3397 | 21.0 | 294 | 0.2267 | 0.9182 |
|
| 92 |
+
| 0.3731 | 22.0 | 308 | 0.2205 | 0.9136 |
|
| 93 |
+
| 0.329 | 23.0 | 322 | 0.1516 | 0.95 |
|
| 94 |
+
| 0.3041 | 24.0 | 336 | 0.2081 | 0.9318 |
|
| 95 |
+
| 0.2996 | 25.0 | 350 | 0.1876 | 0.9273 |
|
| 96 |
+
| 0.2825 | 26.0 | 364 | 0.2241 | 0.9273 |
|
| 97 |
+
| 0.2929 | 27.0 | 378 | 0.2055 | 0.9318 |
|
| 98 |
+
| 0.2574 | 28.0 | 392 | 0.1667 | 0.9318 |
|
| 99 |
+
| 0.2662 | 29.0 | 406 | 0.1586 | 0.9545 |
|
| 100 |
+
| 0.2391 | 30.0 | 420 | 0.1782 | 0.9273 |
|
| 101 |
+
| 0.2642 | 31.0 | 434 | 0.1590 | 0.9409 |
|
| 102 |
+
| 0.2323 | 32.0 | 448 | 0.1662 | 0.9364 |
|
| 103 |
+
| 0.2261 | 33.0 | 462 | 0.1549 | 0.9455 |
|
| 104 |
+
| 0.2116 | 34.0 | 476 | 0.1538 | 0.95 |
|
| 105 |
+
| 0.211 | 35.0 | 490 | 0.1497 | 0.9636 |
|
| 106 |
+
| 0.2472 | 36.0 | 504 | 0.1579 | 0.9591 |
|
| 107 |
+
| 0.2185 | 37.0 | 518 | 0.1227 | 0.9636 |
|
| 108 |
+
| 0.2123 | 38.0 | 532 | 0.1389 | 0.95 |
|
| 109 |
+
| 0.1691 | 39.0 | 546 | 0.1040 | 0.9727 |
|
| 110 |
+
| 0.1805 | 40.0 | 560 | 0.1445 | 0.9545 |
|
| 111 |
+
| 0.1828 | 41.0 | 574 | 0.1349 | 0.9455 |
|
| 112 |
+
| 0.2005 | 42.0 | 588 | 0.1418 | 0.9455 |
|
| 113 |
+
| 0.1986 | 43.0 | 602 | 0.1613 | 0.9455 |
|
| 114 |
+
| 0.2012 | 44.0 | 616 | 0.1206 | 0.9591 |
|
| 115 |
+
| 0.1494 | 45.0 | 630 | 0.1405 | 0.9591 |
|
| 116 |
+
| 0.1891 | 46.0 | 644 | 0.1122 | 0.9727 |
|
| 117 |
+
| 0.2012 | 47.0 | 658 | 0.1215 | 0.9636 |
|
| 118 |
+
| 0.181 | 48.0 | 672 | 0.1784 | 0.9455 |
|
| 119 |
+
| 0.1757 | 49.0 | 686 | 0.1703 | 0.9364 |
|
| 120 |
+
| 0.1603 | 50.0 | 700 | 0.1184 | 0.9682 |
|
| 121 |
|
| 122 |
|
| 123 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 44805376
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c438a9508c4fd6f4c24c4deb92235c80a26aa56e669502acdd1e985fec737adf
|
| 3 |
size 44805376
|