dima806 commited on
Commit
1f97d31
·
verified ·
1 Parent(s): dd0d517

Upload folder using huggingface_hub

Browse files
checkpoint-1688/config.json ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/fruit_100_types_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": "abiu",
13
+ "1": "acai",
14
+ "2": "acerola",
15
+ "3": "ackee",
16
+ "4": "ambarella",
17
+ "5": "apple",
18
+ "6": "apricot",
19
+ "7": "avocado",
20
+ "8": "banana",
21
+ "9": "barbadine",
22
+ "10": "barberry",
23
+ "11": "betel_nut",
24
+ "12": "bitter_gourd",
25
+ "13": "black_berry",
26
+ "14": "black_mullberry",
27
+ "15": "brazil_nut",
28
+ "16": "camu_camu",
29
+ "17": "cashew",
30
+ "18": "cempedak",
31
+ "19": "chenet",
32
+ "20": "cherimoya",
33
+ "21": "chico",
34
+ "22": "chokeberry",
35
+ "23": "cluster_fig",
36
+ "24": "coconut",
37
+ "25": "corn_kernel",
38
+ "26": "cranberry",
39
+ "27": "cupuacu",
40
+ "28": "custard_apple",
41
+ "29": "damson",
42
+ "30": "dewberry",
43
+ "31": "dragonfruit",
44
+ "32": "durian",
45
+ "33": "eggplant",
46
+ "34": "elderberry",
47
+ "35": "emblic",
48
+ "36": "feijoa",
49
+ "37": "fig",
50
+ "38": "finger_lime",
51
+ "39": "gooseberry",
52
+ "40": "goumi",
53
+ "41": "grape",
54
+ "42": "grapefruit",
55
+ "43": "greengage",
56
+ "44": "grenadilla",
57
+ "45": "guava",
58
+ "46": "hard_kiwi",
59
+ "47": "hawthorn",
60
+ "48": "hog_plum",
61
+ "49": "horned_melon",
62
+ "50": "indian_strawberry",
63
+ "51": "jaboticaba",
64
+ "52": "jackfruit",
65
+ "53": "jalapeno",
66
+ "54": "jamaica_cherry",
67
+ "55": "jambul",
68
+ "56": "jocote",
69
+ "57": "jujube",
70
+ "58": "kaffir_lime",
71
+ "59": "kumquat",
72
+ "60": "lablab",
73
+ "61": "langsat",
74
+ "62": "longan",
75
+ "63": "mabolo",
76
+ "64": "malay_apple",
77
+ "65": "mandarine",
78
+ "66": "mango",
79
+ "67": "mangosteen",
80
+ "68": "medlar",
81
+ "69": "mock_strawberry",
82
+ "70": "morinda",
83
+ "71": "mountain_soursop",
84
+ "72": "oil_palm",
85
+ "73": "olive",
86
+ "74": "otaheite_apple",
87
+ "75": "papaya",
88
+ "76": "passion_fruit",
89
+ "77": "pawpaw",
90
+ "78": "pea",
91
+ "79": "pineapple",
92
+ "80": "plumcot",
93
+ "81": "pomegranate",
94
+ "82": "prikly_pear",
95
+ "83": "quince",
96
+ "84": "rambutan",
97
+ "85": "raspberry",
98
+ "86": "redcurrant",
99
+ "87": "rose_hip",
100
+ "88": "rose_leaf_bramble",
101
+ "89": "salak",
102
+ "90": "santol",
103
+ "91": "sapodilla",
104
+ "92": "sea_buckthorn",
105
+ "93": "strawberry_guava",
106
+ "94": "sugar_apple",
107
+ "95": "taxus_baccata",
108
+ "96": "ugli_fruit",
109
+ "97": "white_currant",
110
+ "98": "yali_pear",
111
+ "99": "yellow_plum"
112
+ },
113
+ "image_size": 224,
114
+ "initializer_range": 0.02,
115
+ "intermediate_size": 3072,
116
+ "label2id": {
117
+ "abiu": 0,
118
+ "acai": 1,
119
+ "acerola": 2,
120
+ "ackee": 3,
121
+ "ambarella": 4,
122
+ "apple": 5,
123
+ "apricot": 6,
124
+ "avocado": 7,
125
+ "banana": 8,
126
+ "barbadine": 9,
127
+ "barberry": 10,
128
+ "betel_nut": 11,
129
+ "bitter_gourd": 12,
130
+ "black_berry": 13,
131
+ "black_mullberry": 14,
132
+ "brazil_nut": 15,
133
+ "camu_camu": 16,
134
+ "cashew": 17,
135
+ "cempedak": 18,
136
+ "chenet": 19,
137
+ "cherimoya": 20,
138
+ "chico": 21,
139
+ "chokeberry": 22,
140
+ "cluster_fig": 23,
141
+ "coconut": 24,
142
+ "corn_kernel": 25,
143
+ "cranberry": 26,
144
+ "cupuacu": 27,
145
+ "custard_apple": 28,
146
+ "damson": 29,
147
+ "dewberry": 30,
148
+ "dragonfruit": 31,
149
+ "durian": 32,
150
+ "eggplant": 33,
151
+ "elderberry": 34,
152
+ "emblic": 35,
153
+ "feijoa": 36,
154
+ "fig": 37,
155
+ "finger_lime": 38,
156
+ "gooseberry": 39,
157
+ "goumi": 40,
158
+ "grape": 41,
159
+ "grapefruit": 42,
160
+ "greengage": 43,
161
+ "grenadilla": 44,
162
+ "guava": 45,
163
+ "hard_kiwi": 46,
164
+ "hawthorn": 47,
165
+ "hog_plum": 48,
166
+ "horned_melon": 49,
167
+ "indian_strawberry": 50,
168
+ "jaboticaba": 51,
169
+ "jackfruit": 52,
170
+ "jalapeno": 53,
171
+ "jamaica_cherry": 54,
172
+ "jambul": 55,
173
+ "jocote": 56,
174
+ "jujube": 57,
175
+ "kaffir_lime": 58,
176
+ "kumquat": 59,
177
+ "lablab": 60,
178
+ "langsat": 61,
179
+ "longan": 62,
180
+ "mabolo": 63,
181
+ "malay_apple": 64,
182
+ "mandarine": 65,
183
+ "mango": 66,
184
+ "mangosteen": 67,
185
+ "medlar": 68,
186
+ "mock_strawberry": 69,
187
+ "morinda": 70,
188
+ "mountain_soursop": 71,
189
+ "oil_palm": 72,
190
+ "olive": 73,
191
+ "otaheite_apple": 74,
192
+ "papaya": 75,
193
+ "passion_fruit": 76,
194
+ "pawpaw": 77,
195
+ "pea": 78,
196
+ "pineapple": 79,
197
+ "plumcot": 80,
198
+ "pomegranate": 81,
199
+ "prikly_pear": 82,
200
+ "quince": 83,
201
+ "rambutan": 84,
202
+ "raspberry": 85,
203
+ "redcurrant": 86,
204
+ "rose_hip": 87,
205
+ "rose_leaf_bramble": 88,
206
+ "salak": 89,
207
+ "santol": 90,
208
+ "sapodilla": 91,
209
+ "sea_buckthorn": 92,
210
+ "strawberry_guava": 93,
211
+ "sugar_apple": 94,
212
+ "taxus_baccata": 95,
213
+ "ugli_fruit": 96,
214
+ "white_currant": 97,
215
+ "yali_pear": 98,
216
+ "yellow_plum": 99
217
+ },
218
+ "layer_norm_eps": 1e-12,
219
+ "model_type": "vit",
220
+ "num_attention_heads": 12,
221
+ "num_channels": 3,
222
+ "num_hidden_layers": 12,
223
+ "patch_size": 16,
224
+ "problem_type": "single_label_classification",
225
+ "qkv_bias": true,
226
+ "torch_dtype": "float32",
227
+ "transformers_version": "4.38.2"
228
+ }
checkpoint-1688/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e225d5979704c4c06f6dec90896ccd2cb0992cb6f891abb94e9b63636bedf93c
3
+ size 343525432
checkpoint-1688/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fba8d3931ecc486e2e7a9c4e9febc05479ecd8b063711b3d39ae7bce75abbed6
3
+ size 687171333
checkpoint-1688/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-1688/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b8a24cfb3cdadfcc2bdf23a16c90b9d2fdcd32741200948d19d62ede6a5cb46
3
+ size 14575
checkpoint-1688/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3f6afd03221691642c57c23d02519a28f8adb347cca502531684c9e45acae1d
3
+ size 627
checkpoint-1688/trainer_state.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.9187157154083252,
3
+ "best_model_checkpoint": "fruit_100_types_image_detection/checkpoint-1688",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1688,
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.59,
13
+ "grad_norm": 2.9569358825683594,
14
+ "learning_rate": 1.4505494505494505e-06,
15
+ "loss": 1.9604,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.835,
21
+ "eval_loss": 1.948500633239746,
22
+ "eval_runtime": 176.4788,
23
+ "eval_samples_per_second": 101.995,
24
+ "eval_steps_per_second": 6.375,
25
+ "step": 844
26
+ },
27
+ {
28
+ "epoch": 1.18,
29
+ "grad_norm": 2.3848330974578857,
30
+ "learning_rate": 8.400488400488401e-07,
31
+ "loss": 1.9161,
32
+ "step": 1000
33
+ },
34
+ {
35
+ "epoch": 1.78,
36
+ "grad_norm": 2.746882915496826,
37
+ "learning_rate": 2.2954822954822952e-07,
38
+ "loss": 1.8744,
39
+ "step": 1500
40
+ },
41
+ {
42
+ "epoch": 2.0,
43
+ "eval_accuracy": 0.836,
44
+ "eval_loss": 1.9187157154083252,
45
+ "eval_runtime": 177.2903,
46
+ "eval_samples_per_second": 101.528,
47
+ "eval_steps_per_second": 6.346,
48
+ "step": 1688
49
+ }
50
+ ],
51
+ "logging_steps": 500,
52
+ "max_steps": 1688,
53
+ "num_input_tokens_seen": 0,
54
+ "num_train_epochs": 2,
55
+ "save_steps": 500,
56
+ "total_flos": 4.188242924716032e+18,
57
+ "train_batch_size": 32,
58
+ "trial_name": null,
59
+ "trial_params": null
60
+ }
checkpoint-1688/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbd994c73aa0cb03910b8da95c98ddc6322343dd2c53acc3ee62cdf31f1c19e4
3
+ size 4411
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -224,5 +224,5 @@
224
  "problem_type": "single_label_classification",
225
  "qkv_bias": true,
226
  "torch_dtype": "float32",
227
- "transformers_version": "4.35.0"
228
  }
 
1
  {
2
+ "_name_or_path": "dima806/fruit_100_types_image_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
224
  "problem_type": "single_label_classification",
225
  "qkv_bias": true,
226
  "torch_dtype": "float32",
227
+ "transformers_version": "4.38.2"
228
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2975a8a58cfcaac16329df4152c09c167e1ad3b7893d5b3a0949ded947856c58
3
  size 343525432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e225d5979704c4c06f6dec90896ccd2cb0992cb6f891abb94e9b63636bedf93c
3
  size 343525432
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b64eb83310849f62f47e8a858bdde7b1ee81144e8dd49fd987b1d3ab77cd5c51
3
- size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbd994c73aa0cb03910b8da95c98ddc6322343dd2c53acc3ee62cdf31f1c19e4
3
+ size 4411