Commit
•
b3fc50c
1
Parent(s):
a8b2d6a
Training in progress, epoch 1
Browse files- README.md +77 -0
- config.json +44 -0
- model.safetensors +3 -0
- runs/Jul13_00-17-12_b92b6f1653b5/events.out.tfevents.1720829839.b92b6f1653b5.4682.0 +3 -0
- runs/Jul13_00-19-14_b92b6f1653b5/events.out.tfevents.1720829960.b92b6f1653b5.4682.1 +3 -0
- runs/Jul13_00-19-46_b92b6f1653b5/events.out.tfevents.1720829993.b92b6f1653b5.4682.2 +3 -0
- runs/Jul13_00-25-53_b92b6f1653b5/events.out.tfevents.1720830357.b92b6f1653b5.4682.3 +3 -0
- runs/Jul13_00-27-59_b92b6f1653b5/events.out.tfevents.1720830484.b92b6f1653b5.4682.4 +3 -0
- runs/Jul13_00-32-21_b92b6f1653b5/events.out.tfevents.1720830748.b92b6f1653b5.11335.0 +3 -0
- runs/Jul13_00-32-21_b92b6f1653b5/events.out.tfevents.1720834129.b92b6f1653b5.11335.1 +3 -0
- runs/Jul13_01-45-32_b92b6f1653b5/events.out.tfevents.1720835139.b92b6f1653b5.11335.2 +3 -0
- runs/Jul13_01-45-32_b92b6f1653b5/events.out.tfevents.1720839987.b92b6f1653b5.11335.3 +3 -0
- runs/Jul13_03-21-52_b92b6f1653b5/events.out.tfevents.1720840922.b92b6f1653b5.51797.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: emotion_recognition
|
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.49375
|
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 |
+
# emotion_recognition
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 1.2875
|
36 |
+
- Accuracy: 0.4938
|
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: 5e-05
|
56 |
+
- train_batch_size: 16
|
57 |
+
- eval_batch_size: 16
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- num_epochs: 3
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
67 |
+
| No log | 1.0 | 40 | 1.4558 | 0.425 |
|
68 |
+
| No log | 2.0 | 80 | 1.3205 | 0.4813 |
|
69 |
+
| No log | 3.0 | 120 | 1.2875 | 0.4938 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.41.2
|
75 |
+
- Pytorch 2.3.0+cu121
|
76 |
+
- Datasets 2.20.0
|
77 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
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.41.2"
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c0bac4872343fbafcf05533df8dfdfa7f812fb982bdf341263106eff8b6df66
|
3 |
+
size 343242432
|
runs/Jul13_00-17-12_b92b6f1653b5/events.out.tfevents.1720829839.b92b6f1653b5.4682.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9516545523d317403f5cf0a193832b827b842aa3330d4e6da72f0d4e310f7f49
|
3 |
+
size 5070
|
runs/Jul13_00-19-14_b92b6f1653b5/events.out.tfevents.1720829960.b92b6f1653b5.4682.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2aed1e71d6de0e8e5d292a6a55184a90f92b1aefe8170c6a2e2e630d6c13706f
|
3 |
+
size 5070
|
runs/Jul13_00-19-46_b92b6f1653b5/events.out.tfevents.1720829993.b92b6f1653b5.4682.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bdeb6f81d74543c31d96e252a55ad09dd13d5aa1e4a31c797d37ba8c4bce1050
|
3 |
+
size 5070
|
runs/Jul13_00-25-53_b92b6f1653b5/events.out.tfevents.1720830357.b92b6f1653b5.4682.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90cd96b438662843662926abd013b9f5b7239c78fd23df4b4cf124bc4c3b6a70
|
3 |
+
size 5070
|
runs/Jul13_00-27-59_b92b6f1653b5/events.out.tfevents.1720830484.b92b6f1653b5.4682.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0faecc9ef025778fa5a3a2e4dcc1a5bb8d1272fa8254212d24d6bcac6e8593d0
|
3 |
+
size 4184
|
runs/Jul13_00-32-21_b92b6f1653b5/events.out.tfevents.1720830748.b92b6f1653b5.11335.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a86bb2468bf4474b3dfa53dfa29cefc80b816c2c7abd99fb30a80fe265ff0865
|
3 |
+
size 6052
|
runs/Jul13_00-32-21_b92b6f1653b5/events.out.tfevents.1720834129.b92b6f1653b5.11335.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3dbc61e5e0014f418c9f0fdfc6b95616d60305d12c468f42fe69daaa45d51abe
|
3 |
+
size 405
|
runs/Jul13_01-45-32_b92b6f1653b5/events.out.tfevents.1720835139.b92b6f1653b5.11335.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2af523425b2177b1779e51bfc28e1a84aa0eda9ba6a48591283fe38d46ae55a0
|
3 |
+
size 6446
|
runs/Jul13_01-45-32_b92b6f1653b5/events.out.tfevents.1720839987.b92b6f1653b5.11335.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b14e3f1cc334be609ebdc1b50c4c7e60138b51fac984234e461324dbd97895f
|
3 |
+
size 405
|
runs/Jul13_03-21-52_b92b6f1653b5/events.out.tfevents.1720840922.b92b6f1653b5.51797.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:809ebe0150dc0af3acbedc5355e4d287b67e4342d15275103d44e42a50f91161
|
3 |
+
size 5387
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce644952665638e8198df2fe4e1d87ff200bf1d997c1078a8e02430dec38d92a
|
3 |
+
size 5112
|