dpaul93 commited on
Commit
01df298
·
verified ·
1 Parent(s): db225e0

Upload folder using huggingface_hub

Browse files
checkpoint-5900/config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dpaul93/face_emotions_image_detection-v2",
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": "sad",
13
+ "1": "disgust",
14
+ "2": "angry",
15
+ "3": "neutral",
16
+ "4": "fear",
17
+ "5": "surprise",
18
+ "6": "happy"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "angry": 2,
25
+ "disgust": 1,
26
+ "fear": 4,
27
+ "happy": 6,
28
+ "neutral": 3,
29
+ "sad": 0,
30
+ "surprise": 5
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.41.2"
42
+ }
checkpoint-5900/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71ce18a14a60ada01b74003dea634c761793a7a1b402ec27784418238412edf2
3
+ size 343239356
checkpoint-5900/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69da8b87e2bb28fa65f1820d52ea3fb7e99120810d9dc6e38109d5bb13a63095
3
+ size 686599610
checkpoint-5900/preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTImageProcessor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
checkpoint-5900/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2ce77a042a287560e0ecb181bb290a6522146913c1f51f3398f43ed3ba0b077
3
+ size 14244
checkpoint-5900/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed4d5174be67f02f6843fcc61e17a7612a93f6996c37ebb1d773582d997fb793
3
+ size 1064
checkpoint-5900/trainer_state.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.945926547050476,
3
+ "best_model_checkpoint": "facial_emotions_image_detection/checkpoint-5900",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 5900,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.423728813559322,
13
+ "grad_norm": 0.2695070207118988,
14
+ "learning_rate": 0.009230769230769232,
15
+ "loss": 1.9572,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.847457627118644,
20
+ "grad_norm": 0.19489270448684692,
21
+ "learning_rate": 0.008376068376068376,
22
+ "loss": 1.9517,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.1428684942391736,
28
+ "eval_loss": 1.9890856742858887,
29
+ "eval_runtime": 297.1554,
30
+ "eval_samples_per_second": 84.703,
31
+ "eval_steps_per_second": 10.59,
32
+ "step": 1180
33
+ },
34
+ {
35
+ "epoch": 1.271186440677966,
36
+ "grad_norm": 0.2716714143753052,
37
+ "learning_rate": 0.007521367521367521,
38
+ "loss": 1.9581,
39
+ "step": 1500
40
+ },
41
+ {
42
+ "epoch": 1.694915254237288,
43
+ "grad_norm": 0.19123496115207672,
44
+ "learning_rate": 0.006666666666666666,
45
+ "loss": 1.9525,
46
+ "step": 2000
47
+ },
48
+ {
49
+ "epoch": 2.0,
50
+ "eval_accuracy": 0.14282876440206596,
51
+ "eval_loss": 1.9473849534988403,
52
+ "eval_runtime": 294.7507,
53
+ "eval_samples_per_second": 85.394,
54
+ "eval_steps_per_second": 10.677,
55
+ "step": 2360
56
+ },
57
+ {
58
+ "epoch": 2.1186440677966103,
59
+ "grad_norm": 0.14484408497810364,
60
+ "learning_rate": 0.005811965811965813,
61
+ "loss": 1.9495,
62
+ "step": 2500
63
+ },
64
+ {
65
+ "epoch": 2.542372881355932,
66
+ "grad_norm": 0.17980092763900757,
67
+ "learning_rate": 0.004957264957264958,
68
+ "loss": 1.9495,
69
+ "step": 3000
70
+ },
71
+ {
72
+ "epoch": 2.9661016949152543,
73
+ "grad_norm": 0.20096652209758759,
74
+ "learning_rate": 0.0041025641025641026,
75
+ "loss": 1.9493,
76
+ "step": 3500
77
+ },
78
+ {
79
+ "epoch": 3.0,
80
+ "eval_accuracy": 0.1428684942391736,
81
+ "eval_loss": 1.9461429119110107,
82
+ "eval_runtime": 300.123,
83
+ "eval_samples_per_second": 83.866,
84
+ "eval_steps_per_second": 10.486,
85
+ "step": 3540
86
+ },
87
+ {
88
+ "epoch": 3.389830508474576,
89
+ "grad_norm": 0.15317220985889435,
90
+ "learning_rate": 0.003247863247863248,
91
+ "loss": 1.948,
92
+ "step": 4000
93
+ },
94
+ {
95
+ "epoch": 3.8135593220338984,
96
+ "grad_norm": 0.10403087735176086,
97
+ "learning_rate": 0.002393162393162393,
98
+ "loss": 1.9469,
99
+ "step": 4500
100
+ },
101
+ {
102
+ "epoch": 4.0,
103
+ "eval_accuracy": 0.14282876440206596,
104
+ "eval_loss": 1.946163535118103,
105
+ "eval_runtime": 295.9371,
106
+ "eval_samples_per_second": 85.052,
107
+ "eval_steps_per_second": 10.634,
108
+ "step": 4720
109
+ },
110
+ {
111
+ "epoch": 4.237288135593221,
112
+ "grad_norm": 0.14330194890499115,
113
+ "learning_rate": 0.0015384615384615387,
114
+ "loss": 1.9469,
115
+ "step": 5000
116
+ },
117
+ {
118
+ "epoch": 4.661016949152542,
119
+ "grad_norm": 0.16747227311134338,
120
+ "learning_rate": 0.0006837606837606839,
121
+ "loss": 1.9463,
122
+ "step": 5500
123
+ },
124
+ {
125
+ "epoch": 5.0,
126
+ "eval_accuracy": 0.14282876440206596,
127
+ "eval_loss": 1.945926547050476,
128
+ "eval_runtime": 296.7174,
129
+ "eval_samples_per_second": 84.828,
130
+ "eval_steps_per_second": 10.606,
131
+ "step": 5900
132
+ }
133
+ ],
134
+ "logging_steps": 500,
135
+ "max_steps": 5900,
136
+ "num_input_tokens_seen": 0,
137
+ "num_train_epochs": 5,
138
+ "save_steps": 500,
139
+ "stateful_callbacks": {
140
+ "TrainerControl": {
141
+ "args": {
142
+ "should_epoch_stop": false,
143
+ "should_evaluate": false,
144
+ "should_log": false,
145
+ "should_save": true,
146
+ "should_training_stop": true
147
+ },
148
+ "attributes": {}
149
+ }
150
+ },
151
+ "total_flos": 1.4628430940219873e+19,
152
+ "train_batch_size": 32,
153
+ "trial_name": null,
154
+ "trial_params": null
155
+ }
checkpoint-5900/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6da69422f842190dfaf3b347315487b12859d9da23e67d016b4317e3a779c6bb
3
+ size 5048
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dpaul93/face_emotions_image_detection-v2",
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": "sad",
13
+ "1": "disgust",
14
+ "2": "angry",
15
+ "3": "neutral",
16
+ "4": "fear",
17
+ "5": "surprise",
18
+ "6": "happy"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "angry": 2,
25
+ "disgust": 1,
26
+ "fear": 4,
27
+ "happy": 6,
28
+ "neutral": 3,
29
+ "sad": 0,
30
+ "surprise": 5
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.41.2"
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71ce18a14a60ada01b74003dea634c761793a7a1b402ec27784418238412edf2
3
+ size 343239356
preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTImageProcessor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6da69422f842190dfaf3b347315487b12859d9da23e67d016b4317e3a779c6bb
3
+ size 5048