hyeongjin99
commited on
Commit
•
659f07c
1
Parent(s):
8032ff0
update model card README.md
Browse files
README.md
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- imagefolder
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
model-index:
|
13 |
+
- name: vit-base-aihub_model-v2
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Image Classification
|
17 |
+
type: image-classification
|
18 |
+
dataset:
|
19 |
+
name: imagefolder
|
20 |
+
type: imagefolder
|
21 |
+
config: default
|
22 |
+
split: train
|
23 |
+
args: default
|
24 |
+
metrics:
|
25 |
+
- name: Accuracy
|
26 |
+
type: accuracy
|
27 |
+
value: 0.8373493975903614
|
28 |
+
- name: Precision
|
29 |
+
type: precision
|
30 |
+
value: 0.8745971666076694
|
31 |
+
- name: Recall
|
32 |
+
type: recall
|
33 |
+
value: 0.7993336310123969
|
34 |
+
- name: F1
|
35 |
+
type: f1
|
36 |
+
value: 0.8036849674785987
|
37 |
+
---
|
38 |
+
|
39 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
40 |
+
should probably proofread and complete it, then remove this comment. -->
|
41 |
+
|
42 |
+
# vit-base-aihub_model-v2
|
43 |
+
|
44 |
+
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.
|
45 |
+
It achieves the following results on the evaluation set:
|
46 |
+
- Loss: 1.1993
|
47 |
+
- Accuracy: 0.8373
|
48 |
+
- Precision: 0.8746
|
49 |
+
- Recall: 0.7993
|
50 |
+
- F1: 0.8037
|
51 |
+
|
52 |
+
## Model description
|
53 |
+
|
54 |
+
More information needed
|
55 |
+
|
56 |
+
## Intended uses & limitations
|
57 |
+
|
58 |
+
More information needed
|
59 |
+
|
60 |
+
## Training and evaluation data
|
61 |
+
|
62 |
+
More information needed
|
63 |
+
|
64 |
+
## Training procedure
|
65 |
+
|
66 |
+
### Training hyperparameters
|
67 |
+
|
68 |
+
The following hyperparameters were used during training:
|
69 |
+
- learning_rate: 5e-05
|
70 |
+
- train_batch_size: 128
|
71 |
+
- eval_batch_size: 128
|
72 |
+
- seed: 42
|
73 |
+
- gradient_accumulation_steps: 4
|
74 |
+
- total_train_batch_size: 512
|
75 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
76 |
+
- lr_scheduler_type: linear
|
77 |
+
- lr_scheduler_warmup_ratio: 0.1
|
78 |
+
- num_epochs: 5
|
79 |
+
|
80 |
+
### Training results
|
81 |
+
|
82 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
83 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
84 |
+
| No log | 1.0 | 3 | 1.6294 | 0.6747 | 0.6434 | 0.6238 | 0.5944 |
|
85 |
+
| No log | 2.0 | 6 | 1.4495 | 0.7530 | 0.7776 | 0.7018 | 0.6875 |
|
86 |
+
| No log | 3.0 | 9 | 1.3163 | 0.8373 | 0.8563 | 0.7993 | 0.8022 |
|
87 |
+
| 1.5378 | 4.0 | 12 | 1.2327 | 0.8373 | 0.8736 | 0.7993 | 0.8035 |
|
88 |
+
| 1.5378 | 5.0 | 15 | 1.1993 | 0.8373 | 0.8746 | 0.7993 | 0.8037 |
|
89 |
+
|
90 |
+
|
91 |
+
### Framework versions
|
92 |
+
|
93 |
+
- Transformers 4.30.2
|
94 |
+
- Pytorch 2.0.1+cu117
|
95 |
+
- Datasets 2.12.0
|
96 |
+
- Tokenizers 0.13.3
|