Model save
Browse files- README.md +128 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: microsoft/resnet-18
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- imagefolder
|
| 9 |
+
metrics:
|
| 10 |
+
- accuracy
|
| 11 |
+
model-index:
|
| 12 |
+
- name: font-identifier
|
| 13 |
+
results:
|
| 14 |
+
- task:
|
| 15 |
+
name: Image Classification
|
| 16 |
+
type: image-classification
|
| 17 |
+
dataset:
|
| 18 |
+
name: imagefolder
|
| 19 |
+
type: imagefolder
|
| 20 |
+
config: default
|
| 21 |
+
split: test
|
| 22 |
+
args: default
|
| 23 |
+
metrics:
|
| 24 |
+
- name: Accuracy
|
| 25 |
+
type: accuracy
|
| 26 |
+
value: 0.9454545454545454
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 30 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 31 |
+
|
| 32 |
+
# font-identifier
|
| 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.1706
|
| 37 |
+
- Accuracy: 0.9455
|
| 38 |
+
|
| 39 |
+
## Model description
|
| 40 |
+
|
| 41 |
+
More information needed
|
| 42 |
+
|
| 43 |
+
## Intended uses & limitations
|
| 44 |
+
|
| 45 |
+
More information needed
|
| 46 |
+
|
| 47 |
+
## Training and evaluation data
|
| 48 |
+
|
| 49 |
+
More information needed
|
| 50 |
+
|
| 51 |
+
## Training procedure
|
| 52 |
+
|
| 53 |
+
### Training hyperparameters
|
| 54 |
+
|
| 55 |
+
The following hyperparameters were used during training:
|
| 56 |
+
- learning_rate: 5e-05
|
| 57 |
+
- train_batch_size: 16
|
| 58 |
+
- eval_batch_size: 16
|
| 59 |
+
- seed: 42
|
| 60 |
+
- gradient_accumulation_steps: 4
|
| 61 |
+
- total_train_batch_size: 64
|
| 62 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 63 |
+
- lr_scheduler_type: linear
|
| 64 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 65 |
+
- num_epochs: 50
|
| 66 |
+
|
| 67 |
+
### Training results
|
| 68 |
+
|
| 69 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 3.2323 | 1.0 | 14 | 3.1711 | 0.05 |
|
| 72 |
+
| 3.1019 | 2.0 | 28 | 2.9173 | 0.1227 |
|
| 73 |
+
| 2.779 | 3.0 | 42 | 2.5695 | 0.2409 |
|
| 74 |
+
| 2.5 | 4.0 | 56 | 2.1142 | 0.4091 |
|
| 75 |
+
| 1.8064 | 5.0 | 70 | 1.6804 | 0.4864 |
|
| 76 |
+
| 1.575 | 6.0 | 84 | 1.2757 | 0.5773 |
|
| 77 |
+
| 1.348 | 7.0 | 98 | 1.0973 | 0.6864 |
|
| 78 |
+
| 1.0483 | 8.0 | 112 | 0.8965 | 0.7273 |
|
| 79 |
+
| 0.9753 | 9.0 | 126 | 0.7025 | 0.7682 |
|
| 80 |
+
| 0.7763 | 10.0 | 140 | 0.6220 | 0.8091 |
|
| 81 |
+
| 0.7392 | 11.0 | 154 | 0.5169 | 0.8636 |
|
| 82 |
+
| 0.7077 | 12.0 | 168 | 0.4815 | 0.8682 |
|
| 83 |
+
| 0.5433 | 13.0 | 182 | 0.4650 | 0.8455 |
|
| 84 |
+
| 0.565 | 14.0 | 196 | 0.3828 | 0.8773 |
|
| 85 |
+
| 0.4204 | 15.0 | 210 | 0.3493 | 0.8864 |
|
| 86 |
+
| 0.4798 | 16.0 | 224 | 0.2847 | 0.9045 |
|
| 87 |
+
| 0.4353 | 17.0 | 238 | 0.3370 | 0.8773 |
|
| 88 |
+
| 0.3871 | 18.0 | 252 | 0.2797 | 0.9045 |
|
| 89 |
+
| 0.3779 | 19.0 | 266 | 0.2671 | 0.9045 |
|
| 90 |
+
| 0.3819 | 20.0 | 280 | 0.2575 | 0.9 |
|
| 91 |
+
| 0.3216 | 21.0 | 294 | 0.2516 | 0.9227 |
|
| 92 |
+
| 0.3461 | 22.0 | 308 | 0.2368 | 0.9045 |
|
| 93 |
+
| 0.3116 | 23.0 | 322 | 0.2651 | 0.9136 |
|
| 94 |
+
| 0.3244 | 24.0 | 336 | 0.2820 | 0.9 |
|
| 95 |
+
| 0.2725 | 25.0 | 350 | 0.2320 | 0.9045 |
|
| 96 |
+
| 0.3377 | 26.0 | 364 | 0.2309 | 0.9318 |
|
| 97 |
+
| 0.2556 | 27.0 | 378 | 0.2361 | 0.9136 |
|
| 98 |
+
| 0.2654 | 28.0 | 392 | 0.1988 | 0.9364 |
|
| 99 |
+
| 0.2578 | 29.0 | 406 | 0.2322 | 0.9227 |
|
| 100 |
+
| 0.2262 | 30.0 | 420 | 0.1686 | 0.9409 |
|
| 101 |
+
| 0.2298 | 31.0 | 434 | 0.2148 | 0.9091 |
|
| 102 |
+
| 0.2259 | 32.0 | 448 | 0.1982 | 0.9318 |
|
| 103 |
+
| 0.2155 | 33.0 | 462 | 0.2340 | 0.9227 |
|
| 104 |
+
| 0.213 | 34.0 | 476 | 0.1359 | 0.9545 |
|
| 105 |
+
| 0.1812 | 35.0 | 490 | 0.1522 | 0.9409 |
|
| 106 |
+
| 0.1793 | 36.0 | 504 | 0.1553 | 0.9409 |
|
| 107 |
+
| 0.2391 | 37.0 | 518 | 0.1149 | 0.9636 |
|
| 108 |
+
| 0.1755 | 38.0 | 532 | 0.1627 | 0.9273 |
|
| 109 |
+
| 0.1907 | 39.0 | 546 | 0.1555 | 0.95 |
|
| 110 |
+
| 0.1814 | 40.0 | 560 | 0.1832 | 0.9409 |
|
| 111 |
+
| 0.1879 | 41.0 | 574 | 0.2046 | 0.9318 |
|
| 112 |
+
| 0.1953 | 42.0 | 588 | 0.1722 | 0.9364 |
|
| 113 |
+
| 0.1814 | 43.0 | 602 | 0.2270 | 0.9455 |
|
| 114 |
+
| 0.1932 | 44.0 | 616 | 0.1651 | 0.9318 |
|
| 115 |
+
| 0.1813 | 45.0 | 630 | 0.1752 | 0.9318 |
|
| 116 |
+
| 0.1691 | 46.0 | 644 | 0.1681 | 0.9636 |
|
| 117 |
+
| 0.1396 | 47.0 | 658 | 0.1604 | 0.9545 |
|
| 118 |
+
| 0.1647 | 48.0 | 672 | 0.1575 | 0.95 |
|
| 119 |
+
| 0.1501 | 49.0 | 686 | 0.1360 | 0.9545 |
|
| 120 |
+
| 0.1534 | 50.0 | 700 | 0.1706 | 0.9455 |
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
### Framework versions
|
| 124 |
+
|
| 125 |
+
- Transformers 4.54.1
|
| 126 |
+
- Pytorch 2.7.1
|
| 127 |
+
- Datasets 4.0.0
|
| 128 |
+
- Tokenizers 0.21.4
|
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:4f5a4cc46dfe779ced623af37c88cb4f9d7621ae683ad6df9b6c2d8c54fa4ab8
|
| 3 |
size 44805376
|