talli96123 commited on
Commit
48eb6a9
1 Parent(s): 0668037

End of training

Browse files
README.md ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: meat_calssify_fresh_crop_fixed_overlap_epoch100_V_0_5
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.9314641744548287
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
+ # meat_calssify_fresh_crop_fixed_overlap_epoch100_V_0_5
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.2106
36
+ - Accuracy: 0.9315
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: 5e-05
56
+ - train_batch_size: 64
57
+ - eval_batch_size: 64
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - lr_scheduler_warmup_ratio: 0.1
62
+ - num_epochs: 100
63
+
64
+ ### Training results
65
+
66
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
67
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
68
+ | 1.1058 | 1.0 | 21 | 1.0981 | 0.3707 |
69
+ | 1.0889 | 2.0 | 42 | 1.0703 | 0.4673 |
70
+ | 1.0551 | 3.0 | 63 | 1.0219 | 0.5265 |
71
+ | 0.9782 | 4.0 | 84 | 0.9533 | 0.5389 |
72
+ | 0.916 | 5.0 | 105 | 0.8848 | 0.6293 |
73
+ | 0.8579 | 6.0 | 126 | 0.7977 | 0.6417 |
74
+ | 0.7614 | 7.0 | 147 | 0.8384 | 0.6511 |
75
+ | 0.7643 | 8.0 | 168 | 0.6850 | 0.7632 |
76
+ | 0.6182 | 9.0 | 189 | 0.7255 | 0.7134 |
77
+ | 0.5827 | 10.0 | 210 | 0.7923 | 0.6604 |
78
+ | 0.5751 | 11.0 | 231 | 0.6706 | 0.7196 |
79
+ | 0.5045 | 12.0 | 252 | 0.5499 | 0.7726 |
80
+ | 0.473 | 13.0 | 273 | 0.7024 | 0.6885 |
81
+ | 0.4922 | 14.0 | 294 | 0.6377 | 0.7165 |
82
+ | 0.4808 | 15.0 | 315 | 0.4886 | 0.8224 |
83
+ | 0.4047 | 16.0 | 336 | 0.4426 | 0.8318 |
84
+ | 0.3982 | 17.0 | 357 | 0.5656 | 0.7508 |
85
+ | 0.3279 | 18.0 | 378 | 0.5265 | 0.7819 |
86
+ | 0.3421 | 19.0 | 399 | 0.4606 | 0.8100 |
87
+ | 0.2593 | 20.0 | 420 | 0.4638 | 0.8100 |
88
+ | 0.2542 | 21.0 | 441 | 0.4388 | 0.8474 |
89
+ | 0.2554 | 22.0 | 462 | 0.5237 | 0.8100 |
90
+ | 0.2488 | 23.0 | 483 | 0.4238 | 0.8474 |
91
+ | 0.2069 | 24.0 | 504 | 0.3515 | 0.8847 |
92
+ | 0.295 | 25.0 | 525 | 0.4371 | 0.8318 |
93
+ | 0.2213 | 26.0 | 546 | 0.3588 | 0.8847 |
94
+ | 0.1961 | 27.0 | 567 | 0.5877 | 0.7975 |
95
+ | 0.27 | 28.0 | 588 | 0.3720 | 0.8567 |
96
+ | 0.1791 | 29.0 | 609 | 0.2952 | 0.9065 |
97
+ | 0.1763 | 30.0 | 630 | 0.3312 | 0.8816 |
98
+ | 0.1664 | 31.0 | 651 | 0.3770 | 0.8754 |
99
+ | 0.2713 | 32.0 | 672 | 0.4695 | 0.8287 |
100
+ | 0.1645 | 33.0 | 693 | 0.4069 | 0.8505 |
101
+ | 0.1942 | 34.0 | 714 | 0.4516 | 0.8380 |
102
+ | 0.1435 | 35.0 | 735 | 0.2383 | 0.9252 |
103
+ | 0.1399 | 36.0 | 756 | 0.4790 | 0.8442 |
104
+ | 0.1615 | 37.0 | 777 | 0.3230 | 0.8785 |
105
+ | 0.1405 | 38.0 | 798 | 0.2635 | 0.9065 |
106
+ | 0.1569 | 39.0 | 819 | 0.4816 | 0.8598 |
107
+ | 0.1332 | 40.0 | 840 | 0.2859 | 0.8847 |
108
+ | 0.1108 | 41.0 | 861 | 0.3786 | 0.8723 |
109
+ | 0.1014 | 42.0 | 882 | 0.3215 | 0.9003 |
110
+ | 0.1186 | 43.0 | 903 | 0.3652 | 0.8785 |
111
+ | 0.1021 | 44.0 | 924 | 0.2088 | 0.9221 |
112
+ | 0.1444 | 45.0 | 945 | 0.3646 | 0.8723 |
113
+ | 0.1058 | 46.0 | 966 | 0.3530 | 0.8847 |
114
+ | 0.1297 | 47.0 | 987 | 0.4002 | 0.8629 |
115
+ | 0.0997 | 48.0 | 1008 | 0.2928 | 0.9034 |
116
+ | 0.1246 | 49.0 | 1029 | 0.2772 | 0.9065 |
117
+ | 0.0989 | 50.0 | 1050 | 0.2459 | 0.9221 |
118
+ | 0.0794 | 51.0 | 1071 | 0.1970 | 0.9283 |
119
+ | 0.0698 | 52.0 | 1092 | 0.3217 | 0.8847 |
120
+ | 0.0767 | 53.0 | 1113 | 0.2706 | 0.9190 |
121
+ | 0.0966 | 54.0 | 1134 | 0.2246 | 0.9252 |
122
+ | 0.0816 | 55.0 | 1155 | 0.2585 | 0.9065 |
123
+ | 0.0732 | 56.0 | 1176 | 0.3289 | 0.8910 |
124
+ | 0.0992 | 57.0 | 1197 | 0.2790 | 0.9128 |
125
+ | 0.0684 | 58.0 | 1218 | 0.2508 | 0.9252 |
126
+ | 0.0972 | 59.0 | 1239 | 0.2558 | 0.9190 |
127
+ | 0.0702 | 60.0 | 1260 | 0.2411 | 0.9190 |
128
+ | 0.0602 | 61.0 | 1281 | 0.4097 | 0.8660 |
129
+ | 0.0912 | 62.0 | 1302 | 0.2274 | 0.9252 |
130
+ | 0.0556 | 63.0 | 1323 | 0.1940 | 0.9408 |
131
+ | 0.0727 | 64.0 | 1344 | 0.2389 | 0.9190 |
132
+ | 0.0657 | 65.0 | 1365 | 0.2964 | 0.9128 |
133
+ | 0.0486 | 66.0 | 1386 | 0.2597 | 0.9252 |
134
+ | 0.0639 | 67.0 | 1407 | 0.2272 | 0.9346 |
135
+ | 0.0614 | 68.0 | 1428 | 0.1927 | 0.9470 |
136
+ | 0.0444 | 69.0 | 1449 | 0.2771 | 0.9190 |
137
+ | 0.0648 | 70.0 | 1470 | 0.2345 | 0.9283 |
138
+ | 0.051 | 71.0 | 1491 | 0.2210 | 0.9159 |
139
+ | 0.0514 | 72.0 | 1512 | 0.2260 | 0.9346 |
140
+ | 0.0473 | 73.0 | 1533 | 0.2496 | 0.9252 |
141
+ | 0.0637 | 74.0 | 1554 | 0.3152 | 0.9128 |
142
+ | 0.0538 | 75.0 | 1575 | 0.2527 | 0.9221 |
143
+ | 0.0622 | 76.0 | 1596 | 0.2148 | 0.9408 |
144
+ | 0.0437 | 77.0 | 1617 | 0.2386 | 0.9190 |
145
+ | 0.07 | 78.0 | 1638 | 0.2013 | 0.9315 |
146
+ | 0.0599 | 79.0 | 1659 | 0.2532 | 0.9346 |
147
+ | 0.0367 | 80.0 | 1680 | 0.1835 | 0.9439 |
148
+ | 0.0386 | 81.0 | 1701 | 0.2204 | 0.9283 |
149
+ | 0.0372 | 82.0 | 1722 | 0.2417 | 0.9283 |
150
+ | 0.0516 | 83.0 | 1743 | 0.3098 | 0.9190 |
151
+ | 0.0378 | 84.0 | 1764 | 0.1587 | 0.9533 |
152
+ | 0.0371 | 85.0 | 1785 | 0.2041 | 0.9377 |
153
+ | 0.0378 | 86.0 | 1806 | 0.2343 | 0.9377 |
154
+ | 0.0288 | 87.0 | 1827 | 0.1963 | 0.9439 |
155
+ | 0.0272 | 88.0 | 1848 | 0.2122 | 0.9408 |
156
+ | 0.0293 | 89.0 | 1869 | 0.0979 | 0.9751 |
157
+ | 0.037 | 90.0 | 1890 | 0.2385 | 0.9221 |
158
+ | 0.0453 | 91.0 | 1911 | 0.2056 | 0.9439 |
159
+ | 0.0478 | 92.0 | 1932 | 0.1861 | 0.9439 |
160
+ | 0.0241 | 93.0 | 1953 | 0.2129 | 0.9470 |
161
+ | 0.0404 | 94.0 | 1974 | 0.1806 | 0.9502 |
162
+ | 0.0224 | 95.0 | 1995 | 0.1698 | 0.9377 |
163
+ | 0.0194 | 96.0 | 2016 | 0.1960 | 0.9533 |
164
+ | 0.022 | 97.0 | 2037 | 0.2140 | 0.9377 |
165
+ | 0.0328 | 98.0 | 2058 | 0.1684 | 0.9502 |
166
+ | 0.0443 | 99.0 | 2079 | 0.2536 | 0.9283 |
167
+ | 0.0386 | 100.0 | 2100 | 0.2106 | 0.9315 |
168
+
169
+
170
+ ### Framework versions
171
+
172
+ - Transformers 4.41.2
173
+ - Pytorch 2.3.1
174
+ - Datasets 2.20.0
175
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "fresh1",
13
+ "1": "fresh2",
14
+ "2": "fresh3"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "fresh1": "0",
21
+ "fresh2": "1",
22
+ "fresh3": "2"
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "model_type": "vit",
26
+ "num_attention_heads": 12,
27
+ "num_channels": 3,
28
+ "num_hidden_layers": 12,
29
+ "patch_size": 16,
30
+ "problem_type": "single_label_classification",
31
+ "qkv_bias": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.41.2"
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a1896ea6db7b9157ec7def99297d466402f14ea3c695f1016c4a70371ba203c
3
+ size 343227052
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
+ }
runs/Jun15_01-54-21_DESKTOP-QA5IM1O/events.out.tfevents.1718387662.DESKTOP-QA5IM1O.17688.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfbf67cd49cc153e49bc035ef786bf4675aa4511617cdd7df93bd4d3f63d127a
3
+ size 58655
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97e94d9492a95268a9fe32fbee020457d3318abbd597e3a7f0adb6e2c750ce45
3
+ size 5176