Model save
Browse files- README.md +182 -0
- config.json +48 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/May22_14-44-38_706557cbf509/events.out.tfevents.1716389079.706557cbf509.34.0 +3 -0
- runs/May22_15-13-46_706557cbf509/events.out.tfevents.1716390827.706557cbf509.34.1 +3 -0
- runs/May22_15-14-12_706557cbf509/events.out.tfevents.1716390853.706557cbf509.34.2 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-384
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: Action_model_ViT_384
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Image Classification
|
15 |
+
type: image-classification
|
16 |
+
dataset:
|
17 |
+
name: imagefolder
|
18 |
+
type: imagefolder
|
19 |
+
config: default
|
20 |
+
split: train
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.859402460456942
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# Action_model_ViT_384
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [google/vit-base-patch16-384](https://huggingface.co/google/vit-base-patch16-384) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.8201
|
36 |
+
- Accuracy: 0.8594
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 0.0001
|
56 |
+
- train_batch_size: 8
|
57 |
+
- eval_batch_size: 8
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- num_epochs: 20
|
62 |
+
- mixed_precision_training: Native AMP
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
67 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
68 |
+
| 0.946 | 0.19 | 100 | 0.7540 | 0.7803 |
|
69 |
+
| 0.9248 | 0.37 | 200 | 0.6282 | 0.7961 |
|
70 |
+
| 0.7968 | 0.56 | 300 | 0.5834 | 0.8102 |
|
71 |
+
| 0.6992 | 0.75 | 400 | 0.5647 | 0.8330 |
|
72 |
+
| 0.7331 | 0.93 | 500 | 0.5430 | 0.8295 |
|
73 |
+
| 0.5822 | 1.12 | 600 | 0.5894 | 0.8172 |
|
74 |
+
| 0.5906 | 1.31 | 700 | 0.6862 | 0.7909 |
|
75 |
+
| 0.5911 | 1.49 | 800 | 0.5369 | 0.8313 |
|
76 |
+
| 0.4564 | 1.68 | 900 | 0.4657 | 0.8576 |
|
77 |
+
| 0.6416 | 1.87 | 1000 | 0.5697 | 0.8190 |
|
78 |
+
| 0.5653 | 2.05 | 1100 | 0.6152 | 0.8102 |
|
79 |
+
| 0.4145 | 2.24 | 1200 | 0.5793 | 0.8225 |
|
80 |
+
| 0.4743 | 2.43 | 1300 | 0.4642 | 0.8576 |
|
81 |
+
| 0.4908 | 2.61 | 1400 | 0.4520 | 0.8612 |
|
82 |
+
| 0.523 | 2.8 | 1500 | 0.4989 | 0.8453 |
|
83 |
+
| 0.3315 | 2.99 | 1600 | 0.4786 | 0.8576 |
|
84 |
+
| 0.2779 | 3.17 | 1700 | 0.5546 | 0.8524 |
|
85 |
+
| 0.2984 | 3.36 | 1800 | 0.4977 | 0.8576 |
|
86 |
+
| 0.5914 | 3.54 | 1900 | 0.6296 | 0.8225 |
|
87 |
+
| 0.3236 | 3.73 | 2000 | 0.7225 | 0.8172 |
|
88 |
+
| 0.6194 | 3.92 | 2100 | 0.5783 | 0.8506 |
|
89 |
+
| 0.5066 | 4.1 | 2200 | 0.5825 | 0.8260 |
|
90 |
+
| 0.3532 | 4.29 | 2300 | 0.5606 | 0.8594 |
|
91 |
+
| 0.3531 | 4.48 | 2400 | 0.5068 | 0.8699 |
|
92 |
+
| 0.2573 | 4.66 | 2500 | 0.5632 | 0.8576 |
|
93 |
+
| 0.2713 | 4.85 | 2600 | 0.5047 | 0.8612 |
|
94 |
+
| 0.3538 | 5.04 | 2700 | 0.5988 | 0.8471 |
|
95 |
+
| 0.2291 | 5.22 | 2800 | 0.5751 | 0.8453 |
|
96 |
+
| 0.2976 | 5.41 | 2900 | 0.5781 | 0.8559 |
|
97 |
+
| 0.296 | 5.6 | 3000 | 0.5499 | 0.8664 |
|
98 |
+
| 0.3776 | 5.78 | 3100 | 0.5718 | 0.8612 |
|
99 |
+
| 0.2213 | 5.97 | 3200 | 0.5421 | 0.8682 |
|
100 |
+
| 0.325 | 6.16 | 3300 | 0.6453 | 0.8453 |
|
101 |
+
| 0.1594 | 6.34 | 3400 | 0.5558 | 0.8647 |
|
102 |
+
| 0.3377 | 6.53 | 3500 | 0.6619 | 0.8418 |
|
103 |
+
| 0.3743 | 6.72 | 3600 | 0.5446 | 0.8717 |
|
104 |
+
| 0.2327 | 6.9 | 3700 | 0.5484 | 0.8735 |
|
105 |
+
| 0.1659 | 7.09 | 3800 | 0.6629 | 0.8471 |
|
106 |
+
| 0.4036 | 7.28 | 3900 | 0.6510 | 0.8330 |
|
107 |
+
| 0.2084 | 7.46 | 4000 | 0.5640 | 0.8629 |
|
108 |
+
| 0.2251 | 7.65 | 4100 | 0.6379 | 0.8541 |
|
109 |
+
| 0.192 | 7.84 | 4200 | 0.5897 | 0.8629 |
|
110 |
+
| 0.1956 | 8.02 | 4300 | 0.5874 | 0.8699 |
|
111 |
+
| 0.1446 | 8.21 | 4400 | 0.6462 | 0.8594 |
|
112 |
+
| 0.2971 | 8.4 | 4500 | 0.5909 | 0.8735 |
|
113 |
+
| 0.2665 | 8.58 | 4600 | 0.6769 | 0.8612 |
|
114 |
+
| 0.2937 | 8.77 | 4700 | 0.6760 | 0.8506 |
|
115 |
+
| 0.1437 | 8.96 | 4800 | 0.6566 | 0.8489 |
|
116 |
+
| 0.1433 | 9.14 | 4900 | 0.6659 | 0.8418 |
|
117 |
+
| 0.2069 | 9.33 | 5000 | 0.6825 | 0.8541 |
|
118 |
+
| 0.2095 | 9.51 | 5100 | 0.6157 | 0.8664 |
|
119 |
+
| 0.1579 | 9.7 | 5200 | 0.6693 | 0.8629 |
|
120 |
+
| 0.1962 | 9.89 | 5300 | 0.6911 | 0.8524 |
|
121 |
+
| 0.3149 | 10.07 | 5400 | 0.6260 | 0.8559 |
|
122 |
+
| 0.2166 | 10.26 | 5500 | 0.6200 | 0.8770 |
|
123 |
+
| 0.1259 | 10.45 | 5600 | 0.7164 | 0.8576 |
|
124 |
+
| 0.1892 | 10.63 | 5700 | 0.7182 | 0.8612 |
|
125 |
+
| 0.1953 | 10.82 | 5800 | 0.7193 | 0.8418 |
|
126 |
+
| 0.2392 | 11.01 | 5900 | 0.6621 | 0.8664 |
|
127 |
+
| 0.1594 | 11.19 | 6000 | 0.7471 | 0.8489 |
|
128 |
+
| 0.2156 | 11.38 | 6100 | 0.7316 | 0.8612 |
|
129 |
+
| 0.137 | 11.57 | 6200 | 0.6837 | 0.8699 |
|
130 |
+
| 0.181 | 11.75 | 6300 | 0.6595 | 0.8647 |
|
131 |
+
| 0.2049 | 11.94 | 6400 | 0.6982 | 0.8506 |
|
132 |
+
| 0.1028 | 12.13 | 6500 | 0.6771 | 0.8682 |
|
133 |
+
| 0.1347 | 12.31 | 6600 | 0.6841 | 0.8699 |
|
134 |
+
| 0.1269 | 12.5 | 6700 | 0.7226 | 0.8594 |
|
135 |
+
| 0.2288 | 12.69 | 6800 | 0.7083 | 0.8629 |
|
136 |
+
| 0.1094 | 12.87 | 6900 | 0.7455 | 0.8471 |
|
137 |
+
| 0.0661 | 13.06 | 7000 | 0.7330 | 0.8541 |
|
138 |
+
| 0.1811 | 13.25 | 7100 | 0.7363 | 0.8436 |
|
139 |
+
| 0.2225 | 13.43 | 7200 | 0.7757 | 0.8453 |
|
140 |
+
| 0.1619 | 13.62 | 7300 | 0.7361 | 0.8576 |
|
141 |
+
| 0.2032 | 13.81 | 7400 | 0.7656 | 0.8576 |
|
142 |
+
| 0.0216 | 13.99 | 7500 | 0.7760 | 0.8629 |
|
143 |
+
| 0.2476 | 14.18 | 7600 | 0.7723 | 0.8612 |
|
144 |
+
| 0.1616 | 14.37 | 7700 | 0.7247 | 0.8787 |
|
145 |
+
| 0.1142 | 14.55 | 7800 | 0.7907 | 0.8699 |
|
146 |
+
| 0.0906 | 14.74 | 7900 | 0.7829 | 0.8647 |
|
147 |
+
| 0.2199 | 14.93 | 8000 | 0.7427 | 0.8717 |
|
148 |
+
| 0.0643 | 15.11 | 8100 | 0.7280 | 0.8699 |
|
149 |
+
| 0.1685 | 15.3 | 8200 | 0.8381 | 0.8541 |
|
150 |
+
| 0.1677 | 15.49 | 8300 | 0.8638 | 0.8506 |
|
151 |
+
| 0.1399 | 15.67 | 8400 | 0.8423 | 0.8612 |
|
152 |
+
| 0.1041 | 15.86 | 8500 | 0.8051 | 0.8541 |
|
153 |
+
| 0.2223 | 16.04 | 8600 | 0.7768 | 0.8647 |
|
154 |
+
| 0.1016 | 16.23 | 8700 | 0.7965 | 0.8647 |
|
155 |
+
| 0.065 | 16.42 | 8800 | 0.8331 | 0.8418 |
|
156 |
+
| 0.1156 | 16.6 | 8900 | 0.8023 | 0.8629 |
|
157 |
+
| 0.2263 | 16.79 | 9000 | 0.8116 | 0.8594 |
|
158 |
+
| 0.1197 | 16.98 | 9100 | 0.8490 | 0.8576 |
|
159 |
+
| 0.1931 | 17.16 | 9200 | 0.8194 | 0.8612 |
|
160 |
+
| 0.1289 | 17.35 | 9300 | 0.8353 | 0.8489 |
|
161 |
+
| 0.2039 | 17.54 | 9400 | 0.8163 | 0.8453 |
|
162 |
+
| 0.0825 | 17.72 | 9500 | 0.7942 | 0.8524 |
|
163 |
+
| 0.0712 | 17.91 | 9600 | 0.8027 | 0.8559 |
|
164 |
+
| 0.244 | 18.1 | 9700 | 0.7803 | 0.8664 |
|
165 |
+
| 0.1482 | 18.28 | 9800 | 0.7754 | 0.8629 |
|
166 |
+
| 0.1829 | 18.47 | 9900 | 0.7810 | 0.8594 |
|
167 |
+
| 0.019 | 18.66 | 10000 | 0.7972 | 0.8559 |
|
168 |
+
| 0.061 | 18.84 | 10100 | 0.8180 | 0.8576 |
|
169 |
+
| 0.117 | 19.03 | 10200 | 0.8319 | 0.8559 |
|
170 |
+
| 0.1858 | 19.22 | 10300 | 0.8432 | 0.8559 |
|
171 |
+
| 0.1087 | 19.4 | 10400 | 0.8273 | 0.8594 |
|
172 |
+
| 0.1983 | 19.59 | 10500 | 0.8257 | 0.8612 |
|
173 |
+
| 0.2453 | 19.78 | 10600 | 0.8177 | 0.8576 |
|
174 |
+
| 0.1189 | 19.96 | 10700 | 0.8201 | 0.8594 |
|
175 |
+
|
176 |
+
|
177 |
+
### Framework versions
|
178 |
+
|
179 |
+
- Transformers 4.39.3
|
180 |
+
- Pytorch 2.1.2
|
181 |
+
- Datasets 2.18.0
|
182 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-384",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "\u0995\u09a5\u09be_\u09ac\u09b2\u09be",
|
13 |
+
"1": "\u0995\u09ae\u09cd\u09aa\u09bf\u0989\u099f\u09be\u09b0_\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0_\u0995\u09b0\u09be",
|
14 |
+
"2": "\u0996\u09be\u0993\u09df\u09be",
|
15 |
+
"3": "\u0996\u09c7\u09b2\u09be_\u0995\u09b0\u09be",
|
16 |
+
"4": "\u0998\u09c1\u09ae\u09be\u09a8\u09cb",
|
17 |
+
"5": "\u09aa\u09be\u09a8_\u0995\u09b0\u09be",
|
18 |
+
"6": "\u09aa\u09dc\u09be",
|
19 |
+
"7": "\u09b0\u09be\u09a8\u09cd\u09a8\u09be_\u0995\u09b0\u09be",
|
20 |
+
"8": "\u09b2\u09c7\u0996\u09be",
|
21 |
+
"9": "\u09b9\u09be\u0981\u099f\u09be"
|
22 |
+
},
|
23 |
+
"image_size": 384,
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"\u0995\u09a5\u09be_\u09ac\u09b2\u09be": "0",
|
28 |
+
"\u0995\u09ae\u09cd\u09aa\u09bf\u0989\u099f\u09be\u09b0_\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0_\u0995\u09b0\u09be": "1",
|
29 |
+
"\u0996\u09be\u0993\u09df\u09be": "2",
|
30 |
+
"\u0996\u09c7\u09b2\u09be_\u0995\u09b0\u09be": "3",
|
31 |
+
"\u0998\u09c1\u09ae\u09be\u09a8\u09cb": "4",
|
32 |
+
"\u09aa\u09be\u09a8_\u0995\u09b0\u09be": "5",
|
33 |
+
"\u09aa\u09dc\u09be": "6",
|
34 |
+
"\u09b0\u09be\u09a8\u09cd\u09a8\u09be_\u0995\u09b0\u09be": "7",
|
35 |
+
"\u09b2\u09c7\u0996\u09be": "8",
|
36 |
+
"\u09b9\u09be\u0981\u099f\u09be": "9"
|
37 |
+
},
|
38 |
+
"layer_norm_eps": 1e-12,
|
39 |
+
"model_type": "vit",
|
40 |
+
"num_attention_heads": 12,
|
41 |
+
"num_channels": 3,
|
42 |
+
"num_hidden_layers": 12,
|
43 |
+
"patch_size": 16,
|
44 |
+
"problem_type": "single_label_classification",
|
45 |
+
"qkv_bias": true,
|
46 |
+
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.39.3"
|
48 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea2a87096187caf91bbba33cba16e0407d580a33223f3ab85745029a64a978b6
|
3 |
+
size 344415944
|
preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTFeatureExtractor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 384,
|
34 |
+
"width": 384
|
35 |
+
}
|
36 |
+
}
|
runs/May22_14-44-38_706557cbf509/events.out.tfevents.1716389079.706557cbf509.34.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:884109922ee01a3e5b96de296bc5f88b4fe708227dafdaf2fe505f0c42c749dd
|
3 |
+
size 5637
|
runs/May22_15-13-46_706557cbf509/events.out.tfevents.1716390827.706557cbf509.34.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ae4328990f9ccb6610cbde8f31d3788b76e463c9978b81c91461ab78274f70a
|
3 |
+
size 5637
|
runs/May22_15-14-12_706557cbf509/events.out.tfevents.1716390853.706557cbf509.34.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb6aa75899c0123612e9b3ed453ea7505fb7b88d25ecf551b131597b2cf7b948
|
3 |
+
size 153617
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d83de5c18423eae314be68ec578c4c034a1d7c10ff486ca6d7f1e802f27ca5e8
|
3 |
+
size 4920
|