dima806 commited on
Commit
bb55584
1 Parent(s): 2e41745

Upload folder using huggingface_hub

Browse files
checkpoint-1024/config.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "A10",
13
+ "1": "A400M",
14
+ "2": "AG600",
15
+ "3": "AV8B",
16
+ "4": "B1",
17
+ "5": "B2",
18
+ "6": "B52",
19
+ "7": "Be200",
20
+ "8": "C130",
21
+ "9": "C17",
22
+ "10": "C2",
23
+ "11": "C5",
24
+ "12": "E2",
25
+ "13": "E7",
26
+ "14": "EF2000",
27
+ "15": "F117",
28
+ "16": "F14",
29
+ "17": "F15",
30
+ "18": "F16",
31
+ "19": "F18",
32
+ "20": "F22",
33
+ "21": "F35",
34
+ "22": "F4",
35
+ "23": "H6",
36
+ "24": "J10",
37
+ "25": "J20",
38
+ "26": "JAS39",
39
+ "27": "JF17",
40
+ "28": "KC135",
41
+ "29": "MQ9",
42
+ "30": "Mig31",
43
+ "31": "Mirage2000",
44
+ "32": "P3",
45
+ "33": "RQ4",
46
+ "34": "Rafale",
47
+ "35": "SR71",
48
+ "36": "Su24",
49
+ "37": "Su25",
50
+ "38": "Su34",
51
+ "39": "Su57",
52
+ "40": "Tornado",
53
+ "41": "Tu160",
54
+ "42": "Tu95",
55
+ "43": "U2",
56
+ "44": "US2",
57
+ "45": "V22",
58
+ "46": "Vulcan",
59
+ "47": "XB70",
60
+ "48": "YF23"
61
+ },
62
+ "image_size": 224,
63
+ "initializer_range": 0.02,
64
+ "intermediate_size": 3072,
65
+ "label2id": {
66
+ "A10": 0,
67
+ "A400M": 1,
68
+ "AG600": 2,
69
+ "AV8B": 3,
70
+ "B1": 4,
71
+ "B2": 5,
72
+ "B52": 6,
73
+ "Be200": 7,
74
+ "C130": 8,
75
+ "C17": 9,
76
+ "C2": 10,
77
+ "C5": 11,
78
+ "E2": 12,
79
+ "E7": 13,
80
+ "EF2000": 14,
81
+ "F117": 15,
82
+ "F14": 16,
83
+ "F15": 17,
84
+ "F16": 18,
85
+ "F18": 19,
86
+ "F22": 20,
87
+ "F35": 21,
88
+ "F4": 22,
89
+ "H6": 23,
90
+ "J10": 24,
91
+ "J20": 25,
92
+ "JAS39": 26,
93
+ "JF17": 27,
94
+ "KC135": 28,
95
+ "MQ9": 29,
96
+ "Mig31": 30,
97
+ "Mirage2000": 31,
98
+ "P3": 32,
99
+ "RQ4": 33,
100
+ "Rafale": 34,
101
+ "SR71": 35,
102
+ "Su24": 36,
103
+ "Su25": 37,
104
+ "Su34": 38,
105
+ "Su57": 39,
106
+ "Tornado": 40,
107
+ "Tu160": 41,
108
+ "Tu95": 42,
109
+ "U2": 43,
110
+ "US2": 44,
111
+ "V22": 45,
112
+ "Vulcan": 46,
113
+ "XB70": 47,
114
+ "YF23": 48
115
+ },
116
+ "layer_norm_eps": 1e-12,
117
+ "model_type": "vit",
118
+ "num_attention_heads": 12,
119
+ "num_channels": 3,
120
+ "num_hidden_layers": 12,
121
+ "patch_size": 16,
122
+ "problem_type": "single_label_classification",
123
+ "qkv_bias": true,
124
+ "torch_dtype": "float32",
125
+ "transformers_version": "4.40.1"
126
+ }
checkpoint-1024/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a62a071b765c50623d57a302bd49cd8f98992efd75de9e3907f77e2b4497993
3
+ size 343368556
checkpoint-1024/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:826c5aaf3f6657471aacec13565086de586a5b1de295048790322e65b8eaabfb
3
+ size 686857605
checkpoint-1024/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-1024/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f463e119c73aad3c47bb8ed76bd093dc9ed7f8aa1ca27431efe489251bdde5f
3
+ size 14575
checkpoint-1024/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96f48e145e80827ee02b93c0e9f9c72bb4224eb5a8042cedcb1018ef1c019c8a
3
+ size 627
checkpoint-1024/trainer_state.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 3.8178980350494385,
3
+ "best_model_checkpoint": "military_aircraft_image_detection/checkpoint-1024",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1024,
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.48828125,
13
+ "grad_norm": 0.9782480597496033,
14
+ "learning_rate": 1.6139630390143737e-06,
15
+ "loss": 3.8644,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.9765625,
20
+ "grad_norm": 1.0809119939804077,
21
+ "learning_rate": 7.392197125256674e-08,
22
+ "loss": 3.8062,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.07585543493197747,
28
+ "eval_loss": 3.8178980350494385,
29
+ "eval_runtime": 110.1308,
30
+ "eval_samples_per_second": 66.076,
31
+ "eval_steps_per_second": 2.07,
32
+ "step": 1024
33
+ }
34
+ ],
35
+ "logging_steps": 500,
36
+ "max_steps": 1024,
37
+ "num_input_tokens_seen": 0,
38
+ "num_train_epochs": 1,
39
+ "save_steps": 500,
40
+ "total_flos": 5.076933153829061e+18,
41
+ "train_batch_size": 64,
42
+ "trial_name": null,
43
+ "trial_params": null
44
+ }
checkpoint-1024/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23b52bd3299e4e908ee627cdb33a816274baae78414c93c7c1dd4adf24cee529
3
+ size 4475
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "dima806/military_aircraft_image_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -32,29 +32,32 @@
32
  "20": "F22",
33
  "21": "F35",
34
  "22": "F4",
35
- "23": "J10",
36
- "24": "J20",
37
- "25": "JAS39",
38
- "26": "KC135",
39
- "27": "MQ9",
40
- "28": "Mig31",
41
- "29": "Mirage2000",
42
- "30": "P3",
43
- "31": "RQ4",
44
- "32": "Rafale",
45
- "33": "SR71",
46
- "34": "Su25",
47
- "35": "Su34",
48
- "36": "Su57",
49
- "37": "Tornado",
50
- "38": "Tu160",
51
- "39": "Tu95",
52
- "40": "U2",
53
- "41": "US2",
54
- "42": "V22",
55
- "43": "Vulcan",
56
- "44": "XB70",
57
- "45": "YF23"
 
 
 
58
  },
59
  "image_size": 224,
60
  "initializer_range": 0.02,
@@ -83,29 +86,32 @@
83
  "F22": 20,
84
  "F35": 21,
85
  "F4": 22,
86
- "J10": 23,
87
- "J20": 24,
88
- "JAS39": 25,
89
- "KC135": 26,
90
- "MQ9": 27,
91
- "Mig31": 28,
92
- "Mirage2000": 29,
93
- "P3": 30,
94
- "RQ4": 31,
95
- "Rafale": 32,
96
- "SR71": 33,
97
- "Su25": 34,
98
- "Su34": 35,
99
- "Su57": 36,
100
- "Tornado": 37,
101
- "Tu160": 38,
102
- "Tu95": 39,
103
- "U2": 40,
104
- "US2": 41,
105
- "V22": 42,
106
- "Vulcan": 43,
107
- "XB70": 44,
108
- "YF23": 45
 
 
 
109
  },
110
  "layer_norm_eps": 1e-12,
111
  "model_type": "vit",
@@ -116,5 +122,5 @@
116
  "problem_type": "single_label_classification",
117
  "qkv_bias": true,
118
  "torch_dtype": "float32",
119
- "transformers_version": "4.38.2"
120
  }
 
1
  {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
32
  "20": "F22",
33
  "21": "F35",
34
  "22": "F4",
35
+ "23": "H6",
36
+ "24": "J10",
37
+ "25": "J20",
38
+ "26": "JAS39",
39
+ "27": "JF17",
40
+ "28": "KC135",
41
+ "29": "MQ9",
42
+ "30": "Mig31",
43
+ "31": "Mirage2000",
44
+ "32": "P3",
45
+ "33": "RQ4",
46
+ "34": "Rafale",
47
+ "35": "SR71",
48
+ "36": "Su24",
49
+ "37": "Su25",
50
+ "38": "Su34",
51
+ "39": "Su57",
52
+ "40": "Tornado",
53
+ "41": "Tu160",
54
+ "42": "Tu95",
55
+ "43": "U2",
56
+ "44": "US2",
57
+ "45": "V22",
58
+ "46": "Vulcan",
59
+ "47": "XB70",
60
+ "48": "YF23"
61
  },
62
  "image_size": 224,
63
  "initializer_range": 0.02,
 
86
  "F22": 20,
87
  "F35": 21,
88
  "F4": 22,
89
+ "H6": 23,
90
+ "J10": 24,
91
+ "J20": 25,
92
+ "JAS39": 26,
93
+ "JF17": 27,
94
+ "KC135": 28,
95
+ "MQ9": 29,
96
+ "Mig31": 30,
97
+ "Mirage2000": 31,
98
+ "P3": 32,
99
+ "RQ4": 33,
100
+ "Rafale": 34,
101
+ "SR71": 35,
102
+ "Su24": 36,
103
+ "Su25": 37,
104
+ "Su34": 38,
105
+ "Su57": 39,
106
+ "Tornado": 40,
107
+ "Tu160": 41,
108
+ "Tu95": 42,
109
+ "U2": 43,
110
+ "US2": 44,
111
+ "V22": 45,
112
+ "Vulcan": 46,
113
+ "XB70": 47,
114
+ "YF23": 48
115
  },
116
  "layer_norm_eps": 1e-12,
117
  "model_type": "vit",
 
122
  "problem_type": "single_label_classification",
123
  "qkv_bias": true,
124
  "torch_dtype": "float32",
125
+ "transformers_version": "4.40.1"
126
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:27884d30033f9de85b047f24f8b639c9ab29ca0a528ec3fb735401d0ecc2db37
3
- size 343359328
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a62a071b765c50623d57a302bd49cd8f98992efd75de9e3907f77e2b4497993
3
+ size 343368556
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:fc0ace95420731c461a6448ff578b4ad6b10c7b696d3812f6b927e7df9888d65
3
- size 4411
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23b52bd3299e4e908ee627cdb33a816274baae78414c93c7c1dd4adf24cee529
3
+ size 4475