Akhil123 commited on
Commit
977821b
1 Parent(s): 18228a8

End of training

Browse files
Files changed (4) hide show
  1. README.md +74 -0
  2. config.json +42 -0
  3. preprocessor_config.json +22 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: Akhil123/emotions_classifier
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # Akhil123/emotions_classifier
15
+
16
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 2.0827
19
+ - Validation Loss: 2.0793
20
+ - Train Accuracy: 0.1437
21
+ - Epoch: 19
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 0.0003, 'decay_steps': 12800, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Validation Loss | Train Accuracy | Epoch |
46
+ |:----------:|:---------------:|:--------------:|:-----:|
47
+ | 1.9720 | 1.6874 | 0.225 | 0 |
48
+ | 2.0874 | 2.0802 | 0.125 | 1 |
49
+ | 2.0744 | 2.0407 | 0.2313 | 2 |
50
+ | 2.0540 | 2.0760 | 0.1688 | 3 |
51
+ | 2.1039 | 2.0796 | 0.1125 | 4 |
52
+ | 2.0813 | 2.0794 | 0.1187 | 5 |
53
+ | 2.0802 | 2.0797 | 0.1187 | 6 |
54
+ | 2.0793 | 2.0790 | 0.125 | 7 |
55
+ | 2.0657 | 2.0128 | 0.2 | 8 |
56
+ | 2.0724 | 2.0920 | 0.125 | 9 |
57
+ | 2.0896 | 2.0744 | 0.1187 | 10 |
58
+ | 2.0844 | 2.0824 | 0.1187 | 11 |
59
+ | 2.0819 | 2.0755 | 0.125 | 12 |
60
+ | 2.0614 | 2.0392 | 0.1562 | 13 |
61
+ | 2.0676 | 2.0812 | 0.1187 | 14 |
62
+ | 2.0810 | 2.0792 | 0.1187 | 15 |
63
+ | 2.0826 | 2.0813 | 0.1187 | 16 |
64
+ | 2.0788 | 2.0770 | 0.15 | 17 |
65
+ | 2.0797 | 2.0733 | 0.125 | 18 |
66
+ | 2.0827 | 2.0793 | 0.1437 | 19 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.31.0
72
+ - TensorFlow 2.12.0
73
+ - Datasets 2.14.4
74
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "qkv_bias": true,
41
+ "transformers_version": "4.31.0"
42
+ }
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
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8344bbb8b0bf2475505f8ae9175a7a77fee208d5eda0e240685d5bab4f149b2
3
+ size 343488184