Model save
Browse files- README.md +108 -0
- model.safetensors +1 -1
README.md
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google/vit-base-patch16-224-in21k
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- imagefolder
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: vit-base-patch16-224-in21k-finetuned-papsmear
|
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: train
|
22 |
+
args: default
|
23 |
+
metrics:
|
24 |
+
- name: Accuracy
|
25 |
+
type: accuracy
|
26 |
+
value: 0.9191176470588235
|
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 |
+
# vit-base-patch16-224-in21k-finetuned-papsmear
|
33 |
+
|
34 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
|
35 |
+
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.3111
|
37 |
+
- Accuracy: 0.9191
|
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: 8
|
58 |
+
- eval_batch_size: 8
|
59 |
+
- seed: 42
|
60 |
+
- gradient_accumulation_steps: 4
|
61 |
+
- total_train_batch_size: 32
|
62 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
63 |
+
- lr_scheduler_type: linear
|
64 |
+
- lr_scheduler_warmup_ratio: 0.1
|
65 |
+
- num_epochs: 30
|
66 |
+
|
67 |
+
### Training results
|
68 |
+
|
69 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
70 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
71 |
+
| 1.6954 | 0.9935 | 38 | 1.6106 | 0.3456 |
|
72 |
+
| 1.2818 | 1.9869 | 76 | 1.2412 | 0.5735 |
|
73 |
+
| 1.0023 | 2.9804 | 114 | 0.9875 | 0.7132 |
|
74 |
+
| 0.7163 | 4.0 | 153 | 0.8399 | 0.6912 |
|
75 |
+
| 0.5173 | 4.9935 | 191 | 0.6546 | 0.8162 |
|
76 |
+
| 0.5057 | 5.9869 | 229 | 0.6251 | 0.8309 |
|
77 |
+
| 0.4313 | 6.9804 | 267 | 0.5696 | 0.8309 |
|
78 |
+
| 0.325 | 8.0 | 306 | 0.5507 | 0.8309 |
|
79 |
+
| 0.3811 | 8.9935 | 344 | 0.4429 | 0.8676 |
|
80 |
+
| 0.2341 | 9.9869 | 382 | 0.4222 | 0.875 |
|
81 |
+
| 0.3082 | 10.9804 | 420 | 0.6573 | 0.7721 |
|
82 |
+
| 0.2571 | 12.0 | 459 | 0.4229 | 0.8897 |
|
83 |
+
| 0.2374 | 12.9935 | 497 | 0.4233 | 0.875 |
|
84 |
+
| 0.128 | 13.9869 | 535 | 0.3671 | 0.8971 |
|
85 |
+
| 0.1718 | 14.9804 | 573 | 0.3430 | 0.8971 |
|
86 |
+
| 0.16 | 16.0 | 612 | 0.4104 | 0.875 |
|
87 |
+
| 0.1096 | 16.9935 | 650 | 0.2920 | 0.9118 |
|
88 |
+
| 0.1408 | 17.9869 | 688 | 0.2630 | 0.9044 |
|
89 |
+
| 0.113 | 18.9804 | 726 | 0.3084 | 0.8824 |
|
90 |
+
| 0.1272 | 20.0 | 765 | 0.2523 | 0.9412 |
|
91 |
+
| 0.119 | 20.9935 | 803 | 0.4254 | 0.8824 |
|
92 |
+
| 0.1068 | 21.9869 | 841 | 0.3519 | 0.8971 |
|
93 |
+
| 0.0723 | 22.9804 | 879 | 0.3293 | 0.9191 |
|
94 |
+
| 0.0769 | 24.0 | 918 | 0.2613 | 0.9265 |
|
95 |
+
| 0.095 | 24.9935 | 956 | 0.2609 | 0.9412 |
|
96 |
+
| 0.0863 | 25.9869 | 994 | 0.2650 | 0.9265 |
|
97 |
+
| 0.0795 | 26.9804 | 1032 | 0.2978 | 0.9118 |
|
98 |
+
| 0.0564 | 28.0 | 1071 | 0.2737 | 0.9191 |
|
99 |
+
| 0.0562 | 28.9935 | 1109 | 0.2941 | 0.9191 |
|
100 |
+
| 0.0751 | 29.8039 | 1140 | 0.3111 | 0.9191 |
|
101 |
+
|
102 |
+
|
103 |
+
### Framework versions
|
104 |
+
|
105 |
+
- Transformers 4.44.2
|
106 |
+
- Pytorch 2.4.1+cu121
|
107 |
+
- Datasets 3.0.1
|
108 |
+
- Tokenizers 0.19.1
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343236280
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:718e18d0fd1fdceba170c42259033dc6d30632c90263fe991c2dfda55f3f612b
|
3 |
size 343236280
|