ebayes commited on
Commit
bd7c77f
1 Parent(s): 78ea8c6

Upload trained model

Browse files
Files changed (5) hide show
  1. README.md +224 -0
  2. config.json +48 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +36 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: ebayes/tree-crown-latest
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: imagefolder
18
+ type: imagefolder
19
+ config: default
20
+ split: train
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.95
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # ebayes/tree-crown-latest
32
+
33
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.1368
36
+ - Accuracy: 0.95
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 2e-05
56
+ - train_batch_size: 10
57
+ - eval_batch_size: 4
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 150
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
67
+ | No log | 1.0 | 17 | 2.0491 | 0.45 |
68
+ | No log | 2.0 | 34 | 1.7960 | 0.45 |
69
+ | No log | 3.0 | 51 | 1.6265 | 0.5 |
70
+ | No log | 4.0 | 68 | 1.4328 | 0.6 |
71
+ | No log | 5.0 | 85 | 1.3004 | 0.7 |
72
+ | No log | 6.0 | 102 | 1.1381 | 0.8 |
73
+ | No log | 7.0 | 119 | 1.0114 | 0.9 |
74
+ | No log | 8.0 | 136 | 0.9116 | 0.9 |
75
+ | No log | 9.0 | 153 | 0.8490 | 0.9 |
76
+ | No log | 10.0 | 170 | 0.7989 | 0.9 |
77
+ | No log | 11.0 | 187 | 0.7392 | 0.9 |
78
+ | No log | 12.0 | 204 | 0.6834 | 0.9 |
79
+ | No log | 13.0 | 221 | 0.6688 | 0.9 |
80
+ | No log | 14.0 | 238 | 0.6311 | 0.9 |
81
+ | No log | 15.0 | 255 | 0.5847 | 0.9 |
82
+ | No log | 16.0 | 272 | 0.5544 | 0.9 |
83
+ | No log | 17.0 | 289 | 0.5521 | 0.9 |
84
+ | No log | 18.0 | 306 | 0.5319 | 0.9 |
85
+ | No log | 19.0 | 323 | 0.5228 | 0.9 |
86
+ | No log | 20.0 | 340 | 0.4746 | 0.95 |
87
+ | No log | 21.0 | 357 | 0.4913 | 0.95 |
88
+ | No log | 22.0 | 374 | 0.4453 | 0.9 |
89
+ | No log | 23.0 | 391 | 0.4333 | 0.95 |
90
+ | No log | 24.0 | 408 | 0.4124 | 0.95 |
91
+ | No log | 25.0 | 425 | 0.4303 | 0.95 |
92
+ | No log | 26.0 | 442 | 0.4094 | 0.95 |
93
+ | No log | 27.0 | 459 | 0.3597 | 0.95 |
94
+ | No log | 28.0 | 476 | 0.3644 | 0.95 |
95
+ | No log | 29.0 | 493 | 0.3723 | 0.95 |
96
+ | 0.6158 | 30.0 | 510 | 0.3200 | 0.95 |
97
+ | 0.6158 | 31.0 | 527 | 0.3223 | 0.95 |
98
+ | 0.6158 | 32.0 | 544 | 0.3119 | 0.95 |
99
+ | 0.6158 | 33.0 | 561 | 0.3002 | 0.95 |
100
+ | 0.6158 | 34.0 | 578 | 0.2867 | 0.95 |
101
+ | 0.6158 | 35.0 | 595 | 0.3419 | 0.9 |
102
+ | 0.6158 | 36.0 | 612 | 0.3020 | 0.9 |
103
+ | 0.6158 | 37.0 | 629 | 0.2393 | 0.95 |
104
+ | 0.6158 | 38.0 | 646 | 0.3202 | 0.95 |
105
+ | 0.6158 | 39.0 | 663 | 0.2727 | 0.95 |
106
+ | 0.6158 | 40.0 | 680 | 0.2691 | 0.95 |
107
+ | 0.6158 | 41.0 | 697 | 0.3346 | 0.9 |
108
+ | 0.6158 | 42.0 | 714 | 0.2446 | 0.95 |
109
+ | 0.6158 | 43.0 | 731 | 0.3373 | 0.9 |
110
+ | 0.6158 | 44.0 | 748 | 0.2904 | 0.95 |
111
+ | 0.6158 | 45.0 | 765 | 0.2307 | 0.95 |
112
+ | 0.6158 | 46.0 | 782 | 0.2346 | 0.95 |
113
+ | 0.6158 | 47.0 | 799 | 0.2314 | 0.95 |
114
+ | 0.6158 | 48.0 | 816 | 0.2209 | 0.95 |
115
+ | 0.6158 | 49.0 | 833 | 0.2233 | 0.95 |
116
+ | 0.6158 | 50.0 | 850 | 0.2225 | 0.95 |
117
+ | 0.6158 | 51.0 | 867 | 0.2326 | 0.95 |
118
+ | 0.6158 | 52.0 | 884 | 0.2233 | 0.95 |
119
+ | 0.6158 | 53.0 | 901 | 0.2248 | 0.95 |
120
+ | 0.6158 | 54.0 | 918 | 0.2268 | 0.95 |
121
+ | 0.6158 | 55.0 | 935 | 0.2130 | 0.95 |
122
+ | 0.6158 | 56.0 | 952 | 0.2164 | 0.95 |
123
+ | 0.6158 | 57.0 | 969 | 0.1972 | 0.95 |
124
+ | 0.6158 | 58.0 | 986 | 0.2374 | 0.95 |
125
+ | 0.1237 | 59.0 | 1003 | 0.2425 | 0.95 |
126
+ | 0.1237 | 60.0 | 1020 | 0.1907 | 0.95 |
127
+ | 0.1237 | 61.0 | 1037 | 0.3103 | 0.9 |
128
+ | 0.1237 | 62.0 | 1054 | 0.2309 | 0.95 |
129
+ | 0.1237 | 63.0 | 1071 | 0.1982 | 0.95 |
130
+ | 0.1237 | 64.0 | 1088 | 0.2661 | 0.9 |
131
+ | 0.1237 | 65.0 | 1105 | 0.1739 | 0.95 |
132
+ | 0.1237 | 66.0 | 1122 | 0.1958 | 0.95 |
133
+ | 0.1237 | 67.0 | 1139 | 0.1729 | 0.95 |
134
+ | 0.1237 | 68.0 | 1156 | 0.1884 | 0.95 |
135
+ | 0.1237 | 69.0 | 1173 | 0.1958 | 0.95 |
136
+ | 0.1237 | 70.0 | 1190 | 0.1949 | 0.95 |
137
+ | 0.1237 | 71.0 | 1207 | 0.1700 | 0.95 |
138
+ | 0.1237 | 72.0 | 1224 | 0.1770 | 0.95 |
139
+ | 0.1237 | 73.0 | 1241 | 0.1789 | 0.95 |
140
+ | 0.1237 | 74.0 | 1258 | 0.2202 | 0.95 |
141
+ | 0.1237 | 75.0 | 1275 | 0.2005 | 0.95 |
142
+ | 0.1237 | 76.0 | 1292 | 0.1734 | 0.95 |
143
+ | 0.1237 | 77.0 | 1309 | 0.1633 | 0.95 |
144
+ | 0.1237 | 78.0 | 1326 | 0.1468 | 0.95 |
145
+ | 0.1237 | 79.0 | 1343 | 0.1619 | 0.95 |
146
+ | 0.1237 | 80.0 | 1360 | 0.1706 | 0.95 |
147
+ | 0.1237 | 81.0 | 1377 | 0.1745 | 0.95 |
148
+ | 0.1237 | 82.0 | 1394 | 0.2146 | 0.95 |
149
+ | 0.1237 | 83.0 | 1411 | 0.1990 | 0.95 |
150
+ | 0.1237 | 84.0 | 1428 | 0.1682 | 0.95 |
151
+ | 0.1237 | 85.0 | 1445 | 0.1891 | 0.95 |
152
+ | 0.1237 | 86.0 | 1462 | 0.1646 | 0.95 |
153
+ | 0.1237 | 87.0 | 1479 | 0.2234 | 0.95 |
154
+ | 0.1237 | 88.0 | 1496 | 0.2469 | 0.9 |
155
+ | 0.0723 | 89.0 | 1513 | 0.1513 | 0.95 |
156
+ | 0.0723 | 90.0 | 1530 | 0.1638 | 0.95 |
157
+ | 0.0723 | 91.0 | 1547 | 0.1706 | 0.95 |
158
+ | 0.0723 | 92.0 | 1564 | 0.1578 | 0.95 |
159
+ | 0.0723 | 93.0 | 1581 | 0.1465 | 0.95 |
160
+ | 0.0723 | 94.0 | 1598 | 0.1433 | 0.95 |
161
+ | 0.0723 | 95.0 | 1615 | 0.1438 | 0.95 |
162
+ | 0.0723 | 96.0 | 1632 | 0.1543 | 0.95 |
163
+ | 0.0723 | 97.0 | 1649 | 0.1528 | 0.95 |
164
+ | 0.0723 | 98.0 | 1666 | 0.1807 | 0.95 |
165
+ | 0.0723 | 99.0 | 1683 | 0.2142 | 0.95 |
166
+ | 0.0723 | 100.0 | 1700 | 0.2056 | 0.95 |
167
+ | 0.0723 | 101.0 | 1717 | 0.1817 | 0.95 |
168
+ | 0.0723 | 102.0 | 1734 | 0.2271 | 0.95 |
169
+ | 0.0723 | 103.0 | 1751 | 0.2560 | 0.9 |
170
+ | 0.0723 | 104.0 | 1768 | 0.1631 | 0.95 |
171
+ | 0.0723 | 105.0 | 1785 | 0.1828 | 0.95 |
172
+ | 0.0723 | 106.0 | 1802 | 0.2608 | 0.95 |
173
+ | 0.0723 | 107.0 | 1819 | 0.2562 | 0.95 |
174
+ | 0.0723 | 108.0 | 1836 | 0.1666 | 0.95 |
175
+ | 0.0723 | 109.0 | 1853 | 0.1619 | 0.95 |
176
+ | 0.0723 | 110.0 | 1870 | 0.1504 | 0.95 |
177
+ | 0.0723 | 111.0 | 1887 | 0.1433 | 0.95 |
178
+ | 0.0723 | 112.0 | 1904 | 0.1457 | 0.95 |
179
+ | 0.0723 | 113.0 | 1921 | 0.1288 | 1.0 |
180
+ | 0.0723 | 114.0 | 1938 | 0.1401 | 1.0 |
181
+ | 0.0723 | 115.0 | 1955 | 0.1281 | 0.95 |
182
+ | 0.0723 | 116.0 | 1972 | 0.1267 | 0.95 |
183
+ | 0.0723 | 117.0 | 1989 | 0.1288 | 0.95 |
184
+ | 0.051 | 118.0 | 2006 | 0.1473 | 0.95 |
185
+ | 0.051 | 119.0 | 2023 | 0.1106 | 1.0 |
186
+ | 0.051 | 120.0 | 2040 | 0.1097 | 1.0 |
187
+ | 0.051 | 121.0 | 2057 | 0.1379 | 1.0 |
188
+ | 0.051 | 122.0 | 2074 | 0.1347 | 1.0 |
189
+ | 0.051 | 123.0 | 2091 | 0.1302 | 0.95 |
190
+ | 0.051 | 124.0 | 2108 | 0.1599 | 0.95 |
191
+ | 0.051 | 125.0 | 2125 | 0.1574 | 0.95 |
192
+ | 0.051 | 126.0 | 2142 | 0.1541 | 0.95 |
193
+ | 0.051 | 127.0 | 2159 | 0.1517 | 0.95 |
194
+ | 0.051 | 128.0 | 2176 | 0.1462 | 0.95 |
195
+ | 0.051 | 129.0 | 2193 | 0.1574 | 0.95 |
196
+ | 0.051 | 130.0 | 2210 | 0.1598 | 0.95 |
197
+ | 0.051 | 131.0 | 2227 | 0.1520 | 0.95 |
198
+ | 0.051 | 132.0 | 2244 | 0.1595 | 0.95 |
199
+ | 0.051 | 133.0 | 2261 | 0.1555 | 0.95 |
200
+ | 0.051 | 134.0 | 2278 | 0.1515 | 0.95 |
201
+ | 0.051 | 135.0 | 2295 | 0.1686 | 0.95 |
202
+ | 0.051 | 136.0 | 2312 | 0.1670 | 0.95 |
203
+ | 0.051 | 137.0 | 2329 | 0.1533 | 0.95 |
204
+ | 0.051 | 138.0 | 2346 | 0.1472 | 0.95 |
205
+ | 0.051 | 139.0 | 2363 | 0.1530 | 0.95 |
206
+ | 0.051 | 140.0 | 2380 | 0.1563 | 0.95 |
207
+ | 0.051 | 141.0 | 2397 | 0.1500 | 0.95 |
208
+ | 0.051 | 142.0 | 2414 | 0.1462 | 0.95 |
209
+ | 0.051 | 143.0 | 2431 | 0.1432 | 0.95 |
210
+ | 0.051 | 144.0 | 2448 | 0.1417 | 0.95 |
211
+ | 0.051 | 145.0 | 2465 | 0.1414 | 0.95 |
212
+ | 0.051 | 146.0 | 2482 | 0.1362 | 0.95 |
213
+ | 0.051 | 147.0 | 2499 | 0.1358 | 0.95 |
214
+ | 0.0491 | 148.0 | 2516 | 0.1366 | 0.95 |
215
+ | 0.0491 | 149.0 | 2533 | 0.1367 | 0.95 |
216
+ | 0.0491 | 150.0 | 2550 | 0.1368 | 0.95 |
217
+
218
+
219
+ ### Framework versions
220
+
221
+ - Transformers 4.40.2
222
+ - Pytorch 2.2.1+cu121
223
+ - Datasets 2.19.1
224
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Cecropia",
13
+ "1": "Cecropia_concolor",
14
+ "2": "Cecropia_sciadophylla",
15
+ "3": "Cecropia_sp_branches",
16
+ "4": "Distinctive rosette",
17
+ "5": "Euterpe",
18
+ "6": "Fallen_tree",
19
+ "7": "Flowering_canopy",
20
+ "8": "Mauritia_flexuosa",
21
+ "9": "Oenocarpus_bacaba"
22
+ },
23
+ "image_size": 224,
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "Cecropia": 0,
28
+ "Cecropia_concolor": 1,
29
+ "Cecropia_sciadophylla": 2,
30
+ "Cecropia_sp_branches": 3,
31
+ "Distinctive rosette": 4,
32
+ "Euterpe": 5,
33
+ "Fallen_tree": 6,
34
+ "Flowering_canopy": 7,
35
+ "Mauritia_flexuosa": 8,
36
+ "Oenocarpus_bacaba": 9
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "model_type": "vit",
40
+ "num_attention_heads": 12,
41
+ "num_channels": 3,
42
+ "num_hidden_layers": 12,
43
+ "patch_size": 16,
44
+ "problem_type": "single_label_classification",
45
+ "qkv_bias": true,
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.40.2"
48
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40c155cfd479a6b3fd4ce95847767111069866550a9dc793ce126d2bd3d6e55f
3
+ size 343248584
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:ca9622f8f878498b33943223d51180a40bc9922f5a1ca2c59afb20d49f28c85e
3
+ size 4984