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.9545454545454546
|
| 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.1433
|
| 37 |
+
- Accuracy: 0.9545
|
| 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.3794 | 1.0 | 14 | 3.3306 | 0.0455 |
|
| 72 |
+
| 3.1945 | 2.0 | 28 | 3.0211 | 0.1045 |
|
| 73 |
+
| 2.9016 | 3.0 | 42 | 2.6297 | 0.1682 |
|
| 74 |
+
| 2.5174 | 4.0 | 56 | 2.1280 | 0.3636 |
|
| 75 |
+
| 1.8477 | 5.0 | 70 | 1.6542 | 0.5318 |
|
| 76 |
+
| 1.6209 | 6.0 | 84 | 1.2193 | 0.6136 |
|
| 77 |
+
| 1.3882 | 7.0 | 98 | 1.0877 | 0.6636 |
|
| 78 |
+
| 1.1235 | 8.0 | 112 | 0.8903 | 0.7318 |
|
| 79 |
+
| 1.0144 | 9.0 | 126 | 0.7754 | 0.7818 |
|
| 80 |
+
| 0.7593 | 10.0 | 140 | 0.6333 | 0.8 |
|
| 81 |
+
| 0.801 | 11.0 | 154 | 0.5506 | 0.8091 |
|
| 82 |
+
| 0.745 | 12.0 | 168 | 0.4354 | 0.8636 |
|
| 83 |
+
| 0.5987 | 13.0 | 182 | 0.4478 | 0.8636 |
|
| 84 |
+
| 0.5947 | 14.0 | 196 | 0.4014 | 0.8682 |
|
| 85 |
+
| 0.4595 | 15.0 | 210 | 0.4270 | 0.8591 |
|
| 86 |
+
| 0.5095 | 16.0 | 224 | 0.2876 | 0.9227 |
|
| 87 |
+
| 0.4554 | 17.0 | 238 | 0.3371 | 0.8727 |
|
| 88 |
+
| 0.3733 | 18.0 | 252 | 0.2550 | 0.9227 |
|
| 89 |
+
| 0.3888 | 19.0 | 266 | 0.3142 | 0.8818 |
|
| 90 |
+
| 0.4014 | 20.0 | 280 | 0.2550 | 0.9273 |
|
| 91 |
+
| 0.3493 | 21.0 | 294 | 0.2737 | 0.9091 |
|
| 92 |
+
| 0.3637 | 22.0 | 308 | 0.2399 | 0.9091 |
|
| 93 |
+
| 0.3479 | 23.0 | 322 | 0.1852 | 0.9455 |
|
| 94 |
+
| 0.3303 | 24.0 | 336 | 0.2029 | 0.9364 |
|
| 95 |
+
| 0.3147 | 25.0 | 350 | 0.2294 | 0.9318 |
|
| 96 |
+
| 0.2976 | 26.0 | 364 | 0.2396 | 0.9091 |
|
| 97 |
+
| 0.2937 | 27.0 | 378 | 0.2169 | 0.9455 |
|
| 98 |
+
| 0.2597 | 28.0 | 392 | 0.1885 | 0.9227 |
|
| 99 |
+
| 0.2685 | 29.0 | 406 | 0.1743 | 0.9545 |
|
| 100 |
+
| 0.2465 | 30.0 | 420 | 0.1985 | 0.9318 |
|
| 101 |
+
| 0.2753 | 31.0 | 434 | 0.1814 | 0.9364 |
|
| 102 |
+
| 0.224 | 32.0 | 448 | 0.1823 | 0.9182 |
|
| 103 |
+
| 0.2324 | 33.0 | 462 | 0.1634 | 0.9318 |
|
| 104 |
+
| 0.2163 | 34.0 | 476 | 0.1686 | 0.9364 |
|
| 105 |
+
| 0.2116 | 35.0 | 490 | 0.1502 | 0.9682 |
|
| 106 |
+
| 0.2511 | 36.0 | 504 | 0.1817 | 0.9364 |
|
| 107 |
+
| 0.238 | 37.0 | 518 | 0.1489 | 0.9318 |
|
| 108 |
+
| 0.2187 | 38.0 | 532 | 0.1455 | 0.9364 |
|
| 109 |
+
| 0.1822 | 39.0 | 546 | 0.1260 | 0.9591 |
|
| 110 |
+
| 0.1799 | 40.0 | 560 | 0.1632 | 0.95 |
|
| 111 |
+
| 0.2013 | 41.0 | 574 | 0.1442 | 0.9545 |
|
| 112 |
+
| 0.2065 | 42.0 | 588 | 0.1709 | 0.9409 |
|
| 113 |
+
| 0.2244 | 43.0 | 602 | 0.1692 | 0.9591 |
|
| 114 |
+
| 0.1965 | 44.0 | 616 | 0.1326 | 0.95 |
|
| 115 |
+
| 0.1694 | 45.0 | 630 | 0.1666 | 0.95 |
|
| 116 |
+
| 0.1755 | 46.0 | 644 | 0.1189 | 0.9591 |
|
| 117 |
+
| 0.1939 | 47.0 | 658 | 0.1444 | 0.95 |
|
| 118 |
+
| 0.192 | 48.0 | 672 | 0.1828 | 0.9364 |
|
| 119 |
+
| 0.178 | 49.0 | 686 | 0.1806 | 0.9273 |
|
| 120 |
+
| 0.1742 | 50.0 | 700 | 0.1433 | 0.9545 |
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
### Framework versions
|
| 124 |
+
|
| 125 |
+
- Transformers 4.53.3
|
| 126 |
+
- Pytorch 2.2.2
|
| 127 |
+
- Datasets 2.19.2
|
| 128 |
+
- Tokenizers 0.21.2
|
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:d45a54f9fd407e2a487f6d60c38d78f9540f615472c330c78fa1125ea9984863
|
| 3 |
size 44805376
|