End of training
Browse files- README.md +101 -0
- config.json +44 -0
- model.safetensors +3 -0
- runs/Sep06_14-45-31_f1d1051747c8/events.out.tfevents.1725633933.f1d1051747c8.1679.0 +3 -0
- runs/Sep06_14-51-22_f1d1051747c8/events.out.tfevents.1725634289.f1d1051747c8.1679.1 +3 -0
- runs/Sep06_15-11-27_f1d1051747c8/events.out.tfevents.1725635496.f1d1051747c8.1679.2 +3 -0
- runs/Sep06_15-18-29_f1d1051747c8/events.out.tfevents.1725635916.f1d1051747c8.1679.3 +3 -0
- runs/Sep06_15-34-36_f1d1051747c8/events.out.tfevents.1725636887.f1d1051747c8.1679.4 +3 -0
- runs/Sep06_15-34-36_f1d1051747c8/events.out.tfevents.1725639788.f1d1051747c8.1679.5 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: test_trainer
|
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.45
|
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 |
+
# test_trainer
|
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: 1.7380
|
37 |
+
- Accuracy: 0.45
|
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: 2e-05
|
57 |
+
- train_batch_size: 64
|
58 |
+
- eval_batch_size: 64
|
59 |
+
- seed: 42
|
60 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
61 |
+
- lr_scheduler_type: linear
|
62 |
+
- lr_scheduler_warmup_steps: 500
|
63 |
+
- num_epochs: 25
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
69 |
+
| No log | 1.0 | 10 | 2.0828 | 0.1688 |
|
70 |
+
| No log | 2.0 | 20 | 2.0820 | 0.1688 |
|
71 |
+
| No log | 3.0 | 30 | 2.0807 | 0.175 |
|
72 |
+
| No log | 4.0 | 40 | 2.0789 | 0.1875 |
|
73 |
+
| No log | 5.0 | 50 | 2.0763 | 0.1938 |
|
74 |
+
| No log | 6.0 | 60 | 2.0733 | 0.1875 |
|
75 |
+
| No log | 7.0 | 70 | 2.0697 | 0.1875 |
|
76 |
+
| No log | 8.0 | 80 | 2.0656 | 0.1875 |
|
77 |
+
| No log | 9.0 | 90 | 2.0605 | 0.2125 |
|
78 |
+
| No log | 10.0 | 100 | 2.0540 | 0.2313 |
|
79 |
+
| No log | 11.0 | 110 | 2.0462 | 0.2625 |
|
80 |
+
| No log | 12.0 | 120 | 2.0369 | 0.2687 |
|
81 |
+
| No log | 13.0 | 130 | 2.0259 | 0.2687 |
|
82 |
+
| No log | 14.0 | 140 | 2.0117 | 0.2687 |
|
83 |
+
| No log | 15.0 | 150 | 1.9947 | 0.3125 |
|
84 |
+
| No log | 16.0 | 160 | 1.9763 | 0.2938 |
|
85 |
+
| No log | 17.0 | 170 | 1.9547 | 0.3125 |
|
86 |
+
| No log | 18.0 | 180 | 1.9313 | 0.325 |
|
87 |
+
| No log | 19.0 | 190 | 1.9075 | 0.35 |
|
88 |
+
| No log | 20.0 | 200 | 1.8817 | 0.3563 |
|
89 |
+
| No log | 21.0 | 210 | 1.8535 | 0.3812 |
|
90 |
+
| No log | 22.0 | 220 | 1.8244 | 0.4062 |
|
91 |
+
| No log | 23.0 | 230 | 1.7954 | 0.4188 |
|
92 |
+
| No log | 24.0 | 240 | 1.7664 | 0.4375 |
|
93 |
+
| No log | 25.0 | 250 | 1.7380 | 0.45 |
|
94 |
+
|
95 |
+
|
96 |
+
### Framework versions
|
97 |
+
|
98 |
+
- Transformers 4.44.2
|
99 |
+
- Pytorch 2.4.0+cu121
|
100 |
+
- Datasets 2.21.0
|
101 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
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": "anger",
|
13 |
+
"1": "contempt",
|
14 |
+
"2": "disgust",
|
15 |
+
"3": "fear",
|
16 |
+
"4": "happy",
|
17 |
+
"5": "neutral",
|
18 |
+
"6": "sad",
|
19 |
+
"7": "surprise"
|
20 |
+
},
|
21 |
+
"image_size": 224,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"anger": "0",
|
26 |
+
"contempt": "1",
|
27 |
+
"disgust": "2",
|
28 |
+
"fear": "3",
|
29 |
+
"happy": "4",
|
30 |
+
"neutral": "5",
|
31 |
+
"sad": "6",
|
32 |
+
"surprise": "7"
|
33 |
+
},
|
34 |
+
"layer_norm_eps": 1e-12,
|
35 |
+
"model_type": "vit",
|
36 |
+
"num_attention_heads": 12,
|
37 |
+
"num_channels": 3,
|
38 |
+
"num_hidden_layers": 12,
|
39 |
+
"patch_size": 16,
|
40 |
+
"problem_type": "single_label_classification",
|
41 |
+
"qkv_bias": true,
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.44.2"
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb080cacbbbcbb02b0ef074220c770c1d095f9c4748ebd359bade5c269c571b3
|
3 |
+
size 343242432
|
runs/Sep06_14-45-31_f1d1051747c8/events.out.tfevents.1725633933.f1d1051747c8.1679.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e43e13ab02b0ba20260b034ba8aa409936ccb6b1c6f84ed39f1123eafd5450c4
|
3 |
+
size 5753
|
runs/Sep06_14-51-22_f1d1051747c8/events.out.tfevents.1725634289.f1d1051747c8.1679.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c472e7436537ceb2aba8709a7a0e5017785f7e40e2ddcc4b9cdef2c23f0ac772
|
3 |
+
size 7969
|
runs/Sep06_15-11-27_f1d1051747c8/events.out.tfevents.1725635496.f1d1051747c8.1679.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a669bb3e46c4b027d6b639550f4e7e3ec64edf6b6b068838a8d9d63206a4aac9
|
3 |
+
size 6067
|
runs/Sep06_15-18-29_f1d1051747c8/events.out.tfevents.1725635916.f1d1051747c8.1679.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:899006a2589d5753ed0da82ca1ae44b2b47e0bbd9c919e204400cab526292ad2
|
3 |
+
size 7335
|
runs/Sep06_15-34-36_f1d1051747c8/events.out.tfevents.1725636887.f1d1051747c8.1679.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:756be31b500674dd77c5de8e480456a0077338070fd1f3b5808a1f1d43aa59a8
|
3 |
+
size 13473
|
runs/Sep06_15-34-36_f1d1051747c8/events.out.tfevents.1725639788.f1d1051747c8.1679.5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5f643dd8fe0056ebdd75dbaa3cb7f857e995c536a973eda6be3f2f52a55c79c
|
3 |
+
size 411
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:32d221e575014556dbc752ab27ed58edf2959d982085be472d63bb11babd399c
|
3 |
+
size 5176
|