Zainajabroh
commited on
Commit
•
5fb60ce
1
Parent(s):
eb01c49
End of training
Browse files- README.md +84 -0
- config.json +44 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Nov13_13-37-59_3e1c535c13ac/events.out.tfevents.1731505085.3e1c535c13ac.927.0 +3 -0
- runs/Nov13_13-37-59_3e1c535c13ac/events.out.tfevents.1731506066.3e1c535c13ac.927.1 +3 -0
- runs/Nov13_13-54-57_3e1c535c13ac/events.out.tfevents.1731506103.3e1c535c13ac.927.2 +3 -0
- runs/Nov13_13-57-13_3e1c535c13ac/events.out.tfevents.1731506241.3e1c535c13ac.927.3 +3 -0
- runs/Nov13_13-57-13_3e1c535c13ac/events.out.tfevents.1731506902.3e1c535c13ac.927.4 +3 -0
- runs/Nov13_14-09-07_3e1c535c13ac/events.out.tfevents.1731506953.3e1c535c13ac.927.5 +3 -0
- runs/Nov13_14-11-12_3e1c535c13ac/events.out.tfevents.1731507077.3e1c535c13ac.927.6 +3 -0
- runs/Nov13_14-42-28_3e1c535c13ac/events.out.tfevents.1731508979.3e1c535c13ac.927.7 +3 -0
- runs/Nov13_14-42-28_3e1c535c13ac/events.out.tfevents.1731510075.3e1c535c13ac.927.8 +3 -0
- runs/Nov13_15-02-47_3e1c535c13ac/events.out.tfevents.1731510173.3e1c535c13ac.927.9 +3 -0
- runs/Nov13_15-09-51_3e1c535c13ac/events.out.tfevents.1731510597.3e1c535c13ac.927.10 +3 -0
- runs/Nov13_15-09-51_3e1c535c13ac/events.out.tfevents.1731511465.3e1c535c13ac.927.11 +3 -0
- runs/Nov13_15-24-59_3e1c535c13ac/events.out.tfevents.1731511504.3e1c535c13ac.927.12 +3 -0
- runs/Nov13_15-24-59_3e1c535c13ac/events.out.tfevents.1731511959.3e1c535c13ac.927.13 +3 -0
- runs/Nov13_15-35-59_3e1c535c13ac/events.out.tfevents.1731512167.3e1c535c13ac.927.14 +3 -0
- runs/Nov13_15-35-59_3e1c535c13ac/events.out.tfevents.1731512736.3e1c535c13ac.927.15 +3 -0
- runs/Nov13_15-58-55_3e1c535c13ac/events.out.tfevents.1731513544.3e1c535c13ac.927.16 +3 -0
- runs/Nov13_16-08-43_3e1c535c13ac/events.out.tfevents.1731514133.3e1c535c13ac.927.17 +3 -0
- runs/Nov13_16-09-23_3e1c535c13ac/events.out.tfevents.1731514178.3e1c535c13ac.927.18 +3 -0
- runs/Nov13_16-09-23_3e1c535c13ac/events.out.tfevents.1731516082.3e1c535c13ac.927.19 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google/vit-large-patch16-224-in21k
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- imagefolder
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: image_emotion_classification_project_4
|
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.51875
|
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 |
+
# image_emotion_classification_project_4
|
33 |
+
|
34 |
+
This model is a fine-tuned version of [google/vit-large-patch16-224-in21k](https://huggingface.co/google/vit-large-patch16-224-in21k) on the imagefolder dataset.
|
35 |
+
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 1.9052
|
37 |
+
- Accuracy: 0.5188
|
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: 1e-05
|
57 |
+
- train_batch_size: 1
|
58 |
+
- eval_batch_size: 1
|
59 |
+
- seed: 42
|
60 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
61 |
+
- lr_scheduler_type: reduce_lr_on_plateau
|
62 |
+
- lr_scheduler_warmup_steps: 50
|
63 |
+
- num_epochs: 10
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
69 |
+
| 1.6977 | 1.0 | 640 | 1.5713 | 0.325 |
|
70 |
+
| 1.7006 | 2.0 | 1280 | 1.4543 | 0.4562 |
|
71 |
+
| 1.6725 | 3.0 | 1920 | 1.6124 | 0.4625 |
|
72 |
+
| 1.2312 | 4.0 | 2560 | 1.6711 | 0.5 |
|
73 |
+
| 0.6097 | 5.0 | 3200 | 1.8838 | 0.5312 |
|
74 |
+
| 1.264 | 6.0 | 3840 | 2.0933 | 0.4875 |
|
75 |
+
| 2.4064 | 7.0 | 4480 | 2.0628 | 0.5188 |
|
76 |
+
| 2.0741 | 8.0 | 5120 | 2.6505 | 0.4625 |
|
77 |
+
|
78 |
+
|
79 |
+
### Framework versions
|
80 |
+
|
81 |
+
- Transformers 4.46.2
|
82 |
+
- Pytorch 2.5.0+cu121
|
83 |
+
- Datasets 3.1.0
|
84 |
+
- Tokenizers 0.20.3
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-large-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": 1024,
|
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": 4096,
|
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": 16,
|
37 |
+
"num_channels": 3,
|
38 |
+
"num_hidden_layers": 24,
|
39 |
+
"patch_size": 16,
|
40 |
+
"problem_type": "single_label_classification",
|
41 |
+
"qkv_bias": true,
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.46.2"
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93bd272b6075ea6c027c0535d6d02e6a6f11198100f73c783c35243a09f17214
|
3 |
+
size 1213285872
|
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/Nov13_13-37-59_3e1c535c13ac/events.out.tfevents.1731505085.3e1c535c13ac.927.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d32bb0e4086d15b322bf3ce806560539f4fcb763488fc0b20cef02f08393ec1d
|
3 |
+
size 29832
|
runs/Nov13_13-37-59_3e1c535c13ac/events.out.tfevents.1731506066.3e1c535c13ac.927.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b6e5664dfbb32f4f0eca83b0df6b659f2d4d255245b7534b59ac3a787de4f63
|
3 |
+
size 411
|
runs/Nov13_13-54-57_3e1c535c13ac/events.out.tfevents.1731506103.3e1c535c13ac.927.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6a49d5238dfb9b71589cdeea42b7ef921b779ef1ac8ac098edf5a8715bfed8cd
|
3 |
+
size 35361
|
runs/Nov13_13-57-13_3e1c535c13ac/events.out.tfevents.1731506241.3e1c535c13ac.927.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4b1f736b59a68b0c1c0865548410739e5aa8bcc8c280172757e0a5cae1a4cfc
|
3 |
+
size 116302
|
runs/Nov13_13-57-13_3e1c535c13ac/events.out.tfevents.1731506902.3e1c535c13ac.927.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea02c1428edac23f7453425a86a162b4ac0363b7acaf723ef7df4ae1fee4a74e
|
3 |
+
size 411
|
runs/Nov13_14-09-07_3e1c535c13ac/events.out.tfevents.1731506953.3e1c535c13ac.927.5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f71952426ab7913038ac6865da39e0b72cb5344ce558e2d5ccd4a5af86a966f3
|
3 |
+
size 32662
|
runs/Nov13_14-11-12_3e1c535c13ac/events.out.tfevents.1731507077.3e1c535c13ac.927.6
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4379aceb5335fa0790dea59e489f93cf4c6855dd94202b6f51d8280c126c93b1
|
3 |
+
size 102474
|
runs/Nov13_14-42-28_3e1c535c13ac/events.out.tfevents.1731508979.3e1c535c13ac.927.7
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6afccda99cb16dd052c89195eadd84f184d51fb12065867f53868a2838cc8dc5
|
3 |
+
size 116301
|
runs/Nov13_14-42-28_3e1c535c13ac/events.out.tfevents.1731510075.3e1c535c13ac.927.8
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff3d4c6450d2c5e8deb89580adebd26c2c60640357a582cf2ee948002cc1149c
|
3 |
+
size 411
|
runs/Nov13_15-02-47_3e1c535c13ac/events.out.tfevents.1731510173.3e1c535c13ac.927.9
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d094abb1c734c4680960e93922f566353652822db2fa975aa301742054372b38
|
3 |
+
size 105918
|
runs/Nov13_15-09-51_3e1c535c13ac/events.out.tfevents.1731510597.3e1c535c13ac.927.10
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2671e8012c0019a06aa7203c3df6a1fd76362d28648025837f27f14fd90186c5
|
3 |
+
size 143955
|
runs/Nov13_15-09-51_3e1c535c13ac/events.out.tfevents.1731511465.3e1c535c13ac.927.11
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7db18776dca87b0727054f6e45a9ae1d96be7fdb60df6ef50cddc0f38050b04
|
3 |
+
size 411
|
runs/Nov13_15-24-59_3e1c535c13ac/events.out.tfevents.1731511504.3e1c535c13ac.927.12
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ece298b2fe37ed9b27fa03f77885ccc303775d8fd0d55fcd2527d0ceece27c2
|
3 |
+
size 116299
|
runs/Nov13_15-24-59_3e1c535c13ac/events.out.tfevents.1731511959.3e1c535c13ac.927.13
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80e750c2e6176f1d1c3c27d099807b9339dcd00ca3be06fe46cb9b7dbcc1c745
|
3 |
+
size 411
|
runs/Nov13_15-35-59_3e1c535c13ac/events.out.tfevents.1731512167.3e1c535c13ac.927.14
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0aeb6261670342ef283b646622cd29925fde903cbdc02b50da712851aafcb1ca
|
3 |
+
size 143956
|
runs/Nov13_15-35-59_3e1c535c13ac/events.out.tfevents.1731512736.3e1c535c13ac.927.15
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10303e279cd210f46b5ecc3847ad512363c0e0a6a58ef5d46b72bb6a542f9631
|
3 |
+
size 411
|
runs/Nov13_15-58-55_3e1c535c13ac/events.out.tfevents.1731513544.3e1c535c13ac.927.16
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6253a6a1b77677eadd7018ab2617d39d94f6b5ab8a1f29aee9b19f0a8de3269d
|
3 |
+
size 116301
|
runs/Nov13_16-08-43_3e1c535c13ac/events.out.tfevents.1731514133.3e1c535c13ac.927.17
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d87bf81fbf07db0076733f1280037c59564f51960e38a86cb07ec4158e965997
|
3 |
+
size 6209
|
runs/Nov13_16-09-23_3e1c535c13ac/events.out.tfevents.1731514178.3e1c535c13ac.927.18
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b25350b3d1bb47d345401f21c5f1486d70aa3d256b0b686aad45ff886db59698
|
3 |
+
size 116303
|
runs/Nov13_16-09-23_3e1c535c13ac/events.out.tfevents.1731516082.3e1c535c13ac.927.19
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f0c57163852ed8b38d121d59da743625810942ecad3d1c541835eee86c740d4d
|
3 |
+
size 411
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e1780c3cd350fbecaaf2469258106581ea8350a72ed98b940f1de45615d37767
|
3 |
+
size 5368
|