Training in progress, epoch 1
Browse files- README.md +79 -0
- config.json +44 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Feb04_09-56-10_aa74d5f9a432/events.out.tfevents.1707040576.aa74d5f9a432.5896.0 +3 -0
- runs/Feb04_09-56-10_aa74d5f9a432/events.out.tfevents.1707040819.aa74d5f9a432.5896.1 +3 -0
- runs/Feb04_10-02-52_aa74d5f9a432/events.out.tfevents.1707040980.aa74d5f9a432.5896.2 +3 -0
- runs/Feb04_10-07-04_aa74d5f9a432/events.out.tfevents.1707041235.aa74d5f9a432.5896.3 +3 -0
- runs/Feb04_10-07-04_aa74d5f9a432/events.out.tfevents.1707041832.aa74d5f9a432.5896.4 +3 -0
- runs/Feb04_10-18-25_aa74d5f9a432/events.out.tfevents.1707041928.aa74d5f9a432.5896.5 +3 -0
- runs/Feb04_10-27-52_aa74d5f9a432/events.out.tfevents.1707042482.aa74d5f9a432.5896.6 +3 -0
- runs/Feb04_10-32-57_aa74d5f9a432/events.out.tfevents.1707042800.aa74d5f9a432.18195.0 +3 -0
- runs/Feb04_10-43-27_aa74d5f9a432/events.out.tfevents.1707043417.aa74d5f9a432.18195.1 +3 -0
- runs/Feb04_10-43-27_aa74d5f9a432/events.out.tfevents.1707043558.aa74d5f9a432.18195.2 +3 -0
- runs/Feb04_10-46-33_aa74d5f9a432/events.out.tfevents.1707043604.aa74d5f9a432.18195.3 +3 -0
- runs/Feb04_10-46-33_aa74d5f9a432/events.out.tfevents.1707043831.aa74d5f9a432.18195.4 +3 -0
- runs/Feb04_10-53-01_aa74d5f9a432/events.out.tfevents.1707043989.aa74d5f9a432.18195.5 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224-in21k
|
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.55
|
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-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 1.2790
|
36 |
+
- Accuracy: 0.55
|
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: 5
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
67 |
+
| No log | 1.0 | 40 | 1.2735 | 0.5312 |
|
68 |
+
| No log | 2.0 | 80 | 1.4222 | 0.45 |
|
69 |
+
| No log | 3.0 | 120 | 1.2731 | 0.5437 |
|
70 |
+
| No log | 4.0 | 160 | 1.2899 | 0.5687 |
|
71 |
+
| No log | 5.0 | 200 | 1.3055 | 0.525 |
|
72 |
+
|
73 |
+
|
74 |
+
### Framework versions
|
75 |
+
|
76 |
+
- Transformers 4.35.2
|
77 |
+
- Pytorch 2.1.0+cu121
|
78 |
+
- Datasets 2.16.1
|
79 |
+
- Tokenizers 0.15.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.35.2"
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:386768189f96551c44dfee3062f5675ff32947f41ecf1b4e2c5726bc90fb51e9
|
3 |
+
size 343242432
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
runs/Feb04_09-56-10_aa74d5f9a432/events.out.tfevents.1707040576.aa74d5f9a432.5896.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8fb1f30e98806d55317433c129abf30d64634430ee55839a2c83e68b8fc57c1
|
3 |
+
size 5761
|
runs/Feb04_09-56-10_aa74d5f9a432/events.out.tfevents.1707040819.aa74d5f9a432.5896.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e36f517706e9e6652a1a6febf4f7c7c4876977a8fc8e577897fbea3753dfe54
|
3 |
+
size 5855
|
runs/Feb04_10-02-52_aa74d5f9a432/events.out.tfevents.1707040980.aa74d5f9a432.5896.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1425daac6beb96a93731ec9c55b46e6e240145c0b5cdd9070388d32853f08eeb
|
3 |
+
size 6507
|
runs/Feb04_10-07-04_aa74d5f9a432/events.out.tfevents.1707041235.aa74d5f9a432.5896.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9edeb459ba34b6bae5b2dd63b54cdbafab7a9dffeeaba5698737c5426272a104
|
3 |
+
size 9895
|
runs/Feb04_10-07-04_aa74d5f9a432/events.out.tfevents.1707041832.aa74d5f9a432.5896.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:252b10fc5d98ad4e95eaab69d5f2fb3fb05c47fa47f177934ab086dc1e1486f7
|
3 |
+
size 411
|
runs/Feb04_10-18-25_aa74d5f9a432/events.out.tfevents.1707041928.aa74d5f9a432.5896.5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e04f1464b0d9ec827628feb50fe87808b3eff534bb577b048f7c86e758df04e3
|
3 |
+
size 9895
|
runs/Feb04_10-27-52_aa74d5f9a432/events.out.tfevents.1707042482.aa74d5f9a432.5896.6
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eeb2fe2698d25a9ba52dd20d00c8d256be36041bc7a95612377fb2a0e02f9129
|
3 |
+
size 6478
|
runs/Feb04_10-32-57_aa74d5f9a432/events.out.tfevents.1707042800.aa74d5f9a432.18195.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:062e2d1fb6f2bf889e71bed7bcd2fc3c3c3075ab04f6dc6ed1ef3242b58d349b
|
3 |
+
size 9801
|
runs/Feb04_10-43-27_aa74d5f9a432/events.out.tfevents.1707043417.aa74d5f9a432.18195.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d2a70bf87437565784d013710bcf3d7c6bd76f37d985a280620347998dbb1e7
|
3 |
+
size 5855
|
runs/Feb04_10-43-27_aa74d5f9a432/events.out.tfevents.1707043558.aa74d5f9a432.18195.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e45f280bf6fb55ad766c1de2d040afce3046c54b32e524e70079e554346eacf2
|
3 |
+
size 405
|
runs/Feb04_10-46-33_aa74d5f9a432/events.out.tfevents.1707043604.aa74d5f9a432.18195.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1bfb62aacc844fb743f801bd841328a3db52c79dc16733c1a7913d4d13f83cb3
|
3 |
+
size 6765
|
runs/Feb04_10-46-33_aa74d5f9a432/events.out.tfevents.1707043831.aa74d5f9a432.18195.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4751ea3e7b8664f952a08ede92bf0a58de61a90fcd3e776b3d030eb11f841bc2
|
3 |
+
size 411
|
runs/Feb04_10-53-01_aa74d5f9a432/events.out.tfevents.1707043989.aa74d5f9a432.18195.5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:05f450fe80fd957565c1a9914688e18d960c4b7c419a24485d844a03e19d2207
|
3 |
+
size 4874
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71e75c41566439bdbefd9ef6bada15d8e724b784dbb4ce36c6db303bc2028d32
|
3 |
+
size 4600
|