Upload folder using huggingface_hub
Browse files- checkpoint-2568/config.json +40 -0
- checkpoint-2568/optimizer.pt +3 -0
- checkpoint-2568/preprocessor_config.json +22 -0
- checkpoint-2568/pytorch_model.bin +3 -0
- checkpoint-2568/rng_state.pth +3 -0
- checkpoint-2568/scheduler.pt +3 -0
- checkpoint-2568/trainer_state.json +67 -0
- checkpoint-2568/training_args.bin +3 -0
- config.json +40 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
checkpoint-2568/config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "other",
|
13 |
+
"1": "mask",
|
14 |
+
"2": "none",
|
15 |
+
"3": "sunglasses",
|
16 |
+
"4": "glasses",
|
17 |
+
"5": "hand"
|
18 |
+
},
|
19 |
+
"image_size": 224,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"glasses": 4,
|
24 |
+
"hand": 5,
|
25 |
+
"mask": 1,
|
26 |
+
"none": 2,
|
27 |
+
"other": 0,
|
28 |
+
"sunglasses": 3
|
29 |
+
},
|
30 |
+
"layer_norm_eps": 1e-12,
|
31 |
+
"model_type": "vit",
|
32 |
+
"num_attention_heads": 12,
|
33 |
+
"num_channels": 3,
|
34 |
+
"num_hidden_layers": 12,
|
35 |
+
"patch_size": 16,
|
36 |
+
"problem_type": "single_label_classification",
|
37 |
+
"qkv_bias": true,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.34.0"
|
40 |
+
}
|
checkpoint-2568/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e504d7a60c8edf6325c4aad4d650d342f075f6f335c2368400e043fefcf26cf3
|
3 |
+
size 686593029
|
checkpoint-2568/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 |
+
}
|
checkpoint-2568/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94784e9e6bff1a3dab6cfcb2fe55c88629078ffdce5dd4b7cb15812c91491bff
|
3 |
+
size 343281005
|
checkpoint-2568/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f9d23e514c928300b85146d136a34ddfdc35a0a5861af89fa2ccf1ca1ee64258
|
3 |
+
size 14575
|
checkpoint-2568/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9fea26efba5bdae670c6f51e159b9bc268c85f67760c8943a04534d19dbf899
|
3 |
+
size 627
|
checkpoint-2568/trainer_state.json
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.28322410583496094,
|
3 |
+
"best_model_checkpoint": "face_obstruction_image_detection/checkpoint-2568",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2568,
|
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.39,
|
13 |
+
"learning_rate": 8.212867355043687e-06,
|
14 |
+
"loss": 0.8226,
|
15 |
+
"step": 500
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.78,
|
19 |
+
"learning_rate": 6.227164416203336e-06,
|
20 |
+
"loss": 0.3703,
|
21 |
+
"step": 1000
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 1.0,
|
25 |
+
"eval_accuracy": 0.8798947983635301,
|
26 |
+
"eval_loss": 0.3240974247455597,
|
27 |
+
"eval_runtime": 139.7191,
|
28 |
+
"eval_samples_per_second": 73.476,
|
29 |
+
"eval_steps_per_second": 9.19,
|
30 |
+
"step": 1284
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.17,
|
34 |
+
"learning_rate": 4.241461477362987e-06,
|
35 |
+
"loss": 0.3031,
|
36 |
+
"step": 1500
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"epoch": 1.56,
|
40 |
+
"learning_rate": 2.2557585385226373e-06,
|
41 |
+
"loss": 0.2785,
|
42 |
+
"step": 2000
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"epoch": 1.95,
|
46 |
+
"learning_rate": 2.700555996822875e-07,
|
47 |
+
"loss": 0.2652,
|
48 |
+
"step": 2500
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 2.0,
|
52 |
+
"eval_accuracy": 0.8854471069549971,
|
53 |
+
"eval_loss": 0.28322410583496094,
|
54 |
+
"eval_runtime": 138.3694,
|
55 |
+
"eval_samples_per_second": 74.193,
|
56 |
+
"eval_steps_per_second": 9.28,
|
57 |
+
"step": 2568
|
58 |
+
}
|
59 |
+
],
|
60 |
+
"logging_steps": 500,
|
61 |
+
"max_steps": 2568,
|
62 |
+
"num_train_epochs": 2,
|
63 |
+
"save_steps": 500,
|
64 |
+
"total_flos": 6.364490286540718e+18,
|
65 |
+
"trial_name": null,
|
66 |
+
"trial_params": null
|
67 |
+
}
|
checkpoint-2568/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63fc3bd862d49745fe07a56994e9e665642c0ae2af30899b5fb1dfaf0c93ccf7
|
3 |
+
size 4027
|
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "other",
|
13 |
+
"1": "mask",
|
14 |
+
"2": "none",
|
15 |
+
"3": "sunglasses",
|
16 |
+
"4": "glasses",
|
17 |
+
"5": "hand"
|
18 |
+
},
|
19 |
+
"image_size": 224,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"glasses": 4,
|
24 |
+
"hand": 5,
|
25 |
+
"mask": 1,
|
26 |
+
"none": 2,
|
27 |
+
"other": 0,
|
28 |
+
"sunglasses": 3
|
29 |
+
},
|
30 |
+
"layer_norm_eps": 1e-12,
|
31 |
+
"model_type": "vit",
|
32 |
+
"num_attention_heads": 12,
|
33 |
+
"num_channels": 3,
|
34 |
+
"num_hidden_layers": 12,
|
35 |
+
"patch_size": 16,
|
36 |
+
"problem_type": "single_label_classification",
|
37 |
+
"qkv_bias": true,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.34.0"
|
40 |
+
}
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94784e9e6bff1a3dab6cfcb2fe55c88629078ffdce5dd4b7cb15812c91491bff
|
3 |
+
size 343281005
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63fc3bd862d49745fe07a56994e9e665642c0ae2af30899b5fb1dfaf0c93ccf7
|
3 |
+
size 4027
|