Upload folder using huggingface_hub
Browse files- checkpoint-540/config.json +68 -0
- checkpoint-540/model.safetensors +3 -0
- checkpoint-540/optimizer.pt +3 -0
- checkpoint-540/preprocessor_config.json +36 -0
- checkpoint-540/rng_state.pth +3 -0
- checkpoint-540/scheduler.pt +3 -0
- checkpoint-540/trainer_state.json +73 -0
- checkpoint-540/training_args.bin +3 -0
- config.json +2 -2
- model.safetensors +3 -0
- preprocessor_config.json +14 -0
- training_args.bin +2 -2
checkpoint-540/config.json
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/headgear_image_detection",
|
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": "BERET",
|
13 |
+
"1": "FEDORA",
|
14 |
+
"2": "SOMBERO",
|
15 |
+
"3": "HARD HAT",
|
16 |
+
"4": "FEZ",
|
17 |
+
"5": "ZUCCHETTO",
|
18 |
+
"6": "TOP HAT",
|
19 |
+
"7": "DEERSTALKER",
|
20 |
+
"8": "ASCOT CAP",
|
21 |
+
"9": "PORK PIE",
|
22 |
+
"10": "MILITARY HELMET",
|
23 |
+
"11": "BICORNE",
|
24 |
+
"12": "FOOTBALL HELMET",
|
25 |
+
"13": "MOTARBOARD",
|
26 |
+
"14": "BOATER",
|
27 |
+
"15": "PITH HELMET",
|
28 |
+
"16": "SOUTHWESTER",
|
29 |
+
"17": "BOWLER",
|
30 |
+
"18": "GARRISON CAP",
|
31 |
+
"19": "BASEBALL CAP"
|
32 |
+
},
|
33 |
+
"image_size": 224,
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"label2id": {
|
37 |
+
"ASCOT CAP": 8,
|
38 |
+
"BASEBALL CAP": 19,
|
39 |
+
"BERET": 0,
|
40 |
+
"BICORNE": 11,
|
41 |
+
"BOATER": 14,
|
42 |
+
"BOWLER": 17,
|
43 |
+
"DEERSTALKER": 7,
|
44 |
+
"FEDORA": 1,
|
45 |
+
"FEZ": 4,
|
46 |
+
"FOOTBALL HELMET": 12,
|
47 |
+
"GARRISON CAP": 18,
|
48 |
+
"HARD HAT": 3,
|
49 |
+
"MILITARY HELMET": 10,
|
50 |
+
"MOTARBOARD": 13,
|
51 |
+
"PITH HELMET": 15,
|
52 |
+
"PORK PIE": 9,
|
53 |
+
"SOMBERO": 2,
|
54 |
+
"SOUTHWESTER": 16,
|
55 |
+
"TOP HAT": 6,
|
56 |
+
"ZUCCHETTO": 5
|
57 |
+
},
|
58 |
+
"layer_norm_eps": 1e-12,
|
59 |
+
"model_type": "vit",
|
60 |
+
"num_attention_heads": 12,
|
61 |
+
"num_channels": 3,
|
62 |
+
"num_hidden_layers": 12,
|
63 |
+
"patch_size": 16,
|
64 |
+
"problem_type": "single_label_classification",
|
65 |
+
"qkv_bias": true,
|
66 |
+
"torch_dtype": "float32",
|
67 |
+
"transformers_version": "4.39.2"
|
68 |
+
}
|
checkpoint-540/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5e05b1307a76dc2c22f95a19071e46969d2fc6b6e92f2ea688d3dbb06908496
|
3 |
+
size 343279344
|
checkpoint-540/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de2a1de9fda0696375a01c67e966a87f2a11eec10256215c8f3e2080fcc3f838
|
3 |
+
size 686679173
|
checkpoint-540/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-540/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93c55442b78ede320f98301f230492e3f6e17e98c61ed91ff0a8feea2f77fa85
|
3 |
+
size 14575
|
checkpoint-540/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:604dd90471486abf63b3d5beae32582600eec3fbebdedfc2cc7a705a915724e7
|
3 |
+
size 627
|
checkpoint-540/trainer_state.json
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.15804019570350647,
|
3 |
+
"best_model_checkpoint": "headgear_image_detection/checkpoint-540",
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 540,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 1.0,
|
13 |
+
"eval_accuracy": 0.9943181818181818,
|
14 |
+
"eval_loss": 0.16189882159233093,
|
15 |
+
"eval_runtime": 19.8459,
|
16 |
+
"eval_samples_per_second": 115.288,
|
17 |
+
"eval_steps_per_second": 14.411,
|
18 |
+
"step": 108
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"epoch": 2.0,
|
22 |
+
"eval_accuracy": 0.9934440559440559,
|
23 |
+
"eval_loss": 0.16086503863334656,
|
24 |
+
"eval_runtime": 19.4034,
|
25 |
+
"eval_samples_per_second": 117.918,
|
26 |
+
"eval_steps_per_second": 14.74,
|
27 |
+
"step": 216
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 3.0,
|
31 |
+
"eval_accuracy": 0.9943181818181818,
|
32 |
+
"eval_loss": 0.1594339907169342,
|
33 |
+
"eval_runtime": 19.5979,
|
34 |
+
"eval_samples_per_second": 116.747,
|
35 |
+
"eval_steps_per_second": 14.593,
|
36 |
+
"step": 324
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"epoch": 4.0,
|
40 |
+
"eval_accuracy": 0.9934440559440559,
|
41 |
+
"eval_loss": 0.1583821177482605,
|
42 |
+
"eval_runtime": 19.5953,
|
43 |
+
"eval_samples_per_second": 116.763,
|
44 |
+
"eval_steps_per_second": 14.595,
|
45 |
+
"step": 432
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 4.63,
|
49 |
+
"grad_norm": 0.35583406686782837,
|
50 |
+
"learning_rate": 8.163265306122448e-08,
|
51 |
+
"loss": 0.1381,
|
52 |
+
"step": 500
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"epoch": 5.0,
|
56 |
+
"eval_accuracy": 0.9938811188811189,
|
57 |
+
"eval_loss": 0.15804019570350647,
|
58 |
+
"eval_runtime": 19.5607,
|
59 |
+
"eval_samples_per_second": 116.969,
|
60 |
+
"eval_steps_per_second": 14.621,
|
61 |
+
"step": 540
|
62 |
+
}
|
63 |
+
],
|
64 |
+
"logging_steps": 500,
|
65 |
+
"max_steps": 540,
|
66 |
+
"num_input_tokens_seen": 0,
|
67 |
+
"num_train_epochs": 5,
|
68 |
+
"save_steps": 500,
|
69 |
+
"total_flos": 1.3299770701253837e+18,
|
70 |
+
"train_batch_size": 32,
|
71 |
+
"trial_name": null,
|
72 |
+
"trial_params": null
|
73 |
+
}
|
checkpoint-540/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3e612d1008a54c9ca5c1f8c33661259da2744e2c13cf1588e29967c73cd5c28
|
3 |
+
size 4411
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
@@ -64,5 +64,5 @@
|
|
64 |
"problem_type": "single_label_classification",
|
65 |
"qkv_bias": true,
|
66 |
"torch_dtype": "float32",
|
67 |
-
"transformers_version": "4.
|
68 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "dima806/headgear_image_detection",
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
|
|
64 |
"problem_type": "single_label_classification",
|
65 |
"qkv_bias": true,
|
66 |
"torch_dtype": "float32",
|
67 |
+
"transformers_version": "4.39.2"
|
68 |
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5e05b1307a76dc2c22f95a19071e46969d2fc6b6e92f2ea688d3dbb06908496
|
3 |
+
size 343279344
|
preprocessor_config.json
CHANGED
@@ -1,4 +1,18 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"do_normalize": true,
|
3 |
"do_rescale": true,
|
4 |
"do_resize": true,
|
|
|
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,
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3e612d1008a54c9ca5c1f8c33661259da2744e2c13cf1588e29967c73cd5c28
|
3 |
+
size 4411
|