talli96123 commited on
Commit
666bde3
1 Parent(s): f6dc363

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_16
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.9158878504672897
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_16
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.2644
36
+ - Accuracy: 0.9159
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: 1
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.1034 | 1.0 | 21 | 1.0943 | 0.3676 |
69
+ | 1.0767 | 2.0 | 42 | 1.0823 | 0.4330 |
70
+ | 1.0209 | 3.0 | 63 | 1.0269 | 0.4829 |
71
+ | 0.9495 | 4.0 | 84 | 1.0109 | 0.4953 |
72
+ | 0.9498 | 5.0 | 105 | 0.8882 | 0.6199 |
73
+ | 0.7834 | 6.0 | 126 | 0.8506 | 0.6075 |
74
+ | 0.6988 | 7.0 | 147 | 0.7727 | 0.6480 |
75
+ | 0.6568 | 8.0 | 168 | 0.8098 | 0.6573 |
76
+ | 0.634 | 9.0 | 189 | 0.9338 | 0.5607 |
77
+ | 0.7335 | 10.0 | 210 | 0.7394 | 0.6947 |
78
+ | 0.5521 | 11.0 | 231 | 0.6369 | 0.7539 |
79
+ | 0.5108 | 12.0 | 252 | 0.7480 | 0.7040 |
80
+ | 0.4485 | 13.0 | 273 | 0.8050 | 0.6854 |
81
+ | 0.4928 | 14.0 | 294 | 0.7566 | 0.7040 |
82
+ | 0.5092 | 15.0 | 315 | 0.5191 | 0.7944 |
83
+ | 0.4473 | 16.0 | 336 | 0.6516 | 0.7134 |
84
+ | 0.3521 | 17.0 | 357 | 0.5184 | 0.8069 |
85
+ | 0.2994 | 18.0 | 378 | 0.5233 | 0.8193 |
86
+ | 0.2844 | 19.0 | 399 | 0.5587 | 0.7757 |
87
+ | 0.301 | 20.0 | 420 | 0.5614 | 0.8131 |
88
+ | 0.2898 | 21.0 | 441 | 0.4659 | 0.8287 |
89
+ | 0.2513 | 22.0 | 462 | 0.4748 | 0.8287 |
90
+ | 0.2121 | 23.0 | 483 | 0.4042 | 0.8505 |
91
+ | 0.2302 | 24.0 | 504 | 0.6265 | 0.7757 |
92
+ | 0.2201 | 25.0 | 525 | 0.4746 | 0.8349 |
93
+ | 0.2193 | 26.0 | 546 | 0.3364 | 0.8816 |
94
+ | 0.1852 | 27.0 | 567 | 0.3966 | 0.8567 |
95
+ | 0.2117 | 28.0 | 588 | 0.4427 | 0.8349 |
96
+ | 0.1705 | 29.0 | 609 | 0.4767 | 0.8255 |
97
+ | 0.1756 | 30.0 | 630 | 0.4838 | 0.8380 |
98
+ | 0.1744 | 31.0 | 651 | 0.5400 | 0.8131 |
99
+ | 0.2296 | 32.0 | 672 | 0.4693 | 0.8255 |
100
+ | 0.1517 | 33.0 | 693 | 0.3704 | 0.8660 |
101
+ | 0.3201 | 34.0 | 714 | 0.7578 | 0.7539 |
102
+ | 0.1561 | 35.0 | 735 | 0.3828 | 0.8660 |
103
+ | 0.1458 | 36.0 | 756 | 0.4366 | 0.8692 |
104
+ | 0.2448 | 37.0 | 777 | 0.3000 | 0.8972 |
105
+ | 0.15 | 38.0 | 798 | 0.4457 | 0.8567 |
106
+ | 0.1367 | 39.0 | 819 | 0.2505 | 0.9128 |
107
+ | 0.1167 | 40.0 | 840 | 0.2869 | 0.9003 |
108
+ | 0.0949 | 41.0 | 861 | 0.3303 | 0.8847 |
109
+ | 0.1203 | 42.0 | 882 | 0.3524 | 0.8629 |
110
+ | 0.1429 | 43.0 | 903 | 0.4549 | 0.8318 |
111
+ | 0.11 | 44.0 | 924 | 0.4028 | 0.8754 |
112
+ | 0.1231 | 45.0 | 945 | 0.4290 | 0.8629 |
113
+ | 0.1009 | 46.0 | 966 | 0.4046 | 0.8598 |
114
+ | 0.1132 | 47.0 | 987 | 0.3221 | 0.8972 |
115
+ | 0.1023 | 48.0 | 1008 | 0.2680 | 0.9159 |
116
+ | 0.0906 | 49.0 | 1029 | 0.3685 | 0.8754 |
117
+ | 0.1039 | 50.0 | 1050 | 0.3564 | 0.8785 |
118
+ | 0.0948 | 51.0 | 1071 | 0.4784 | 0.8380 |
119
+ | 0.0881 | 52.0 | 1092 | 0.3369 | 0.8816 |
120
+ | 0.0918 | 53.0 | 1113 | 0.2608 | 0.9159 |
121
+ | 0.0828 | 54.0 | 1134 | 0.2678 | 0.9003 |
122
+ | 0.0819 | 55.0 | 1155 | 0.2618 | 0.9034 |
123
+ | 0.1696 | 56.0 | 1176 | 0.3057 | 0.9034 |
124
+ | 0.0943 | 57.0 | 1197 | 0.3915 | 0.8847 |
125
+ | 0.0718 | 58.0 | 1218 | 0.3162 | 0.9065 |
126
+ | 0.0775 | 59.0 | 1239 | 0.3678 | 0.8847 |
127
+ | 0.0674 | 60.0 | 1260 | 0.3083 | 0.8972 |
128
+ | 0.0666 | 61.0 | 1281 | 0.3120 | 0.9128 |
129
+ | 0.0631 | 62.0 | 1302 | 0.3648 | 0.9003 |
130
+ | 0.0726 | 63.0 | 1323 | 0.3771 | 0.8910 |
131
+ | 0.0619 | 64.0 | 1344 | 0.3278 | 0.8910 |
132
+ | 0.0823 | 65.0 | 1365 | 0.4250 | 0.8692 |
133
+ | 0.0628 | 66.0 | 1386 | 0.3618 | 0.9003 |
134
+ | 0.0714 | 67.0 | 1407 | 0.4590 | 0.8629 |
135
+ | 0.056 | 68.0 | 1428 | 0.4471 | 0.8910 |
136
+ | 0.0613 | 69.0 | 1449 | 0.2702 | 0.9097 |
137
+ | 0.0642 | 70.0 | 1470 | 0.2646 | 0.9190 |
138
+ | 0.0549 | 71.0 | 1491 | 0.3084 | 0.8972 |
139
+ | 0.0534 | 72.0 | 1512 | 0.3388 | 0.9128 |
140
+ | 0.0414 | 73.0 | 1533 | 0.2962 | 0.9190 |
141
+ | 0.0552 | 74.0 | 1554 | 0.3004 | 0.9221 |
142
+ | 0.0502 | 75.0 | 1575 | 0.4007 | 0.8879 |
143
+ | 0.0403 | 76.0 | 1596 | 0.2649 | 0.9065 |
144
+ | 0.0341 | 77.0 | 1617 | 0.1945 | 0.9408 |
145
+ | 0.061 | 78.0 | 1638 | 0.2936 | 0.9221 |
146
+ | 0.059 | 79.0 | 1659 | 0.2938 | 0.9128 |
147
+ | 0.0393 | 80.0 | 1680 | 0.3278 | 0.8941 |
148
+ | 0.0475 | 81.0 | 1701 | 0.2856 | 0.9190 |
149
+ | 0.0404 | 82.0 | 1722 | 0.2679 | 0.9252 |
150
+ | 0.0528 | 83.0 | 1743 | 0.2544 | 0.9283 |
151
+ | 0.05 | 84.0 | 1764 | 0.2992 | 0.9097 |
152
+ | 0.0449 | 85.0 | 1785 | 0.3004 | 0.9128 |
153
+ | 0.0337 | 86.0 | 1806 | 0.2744 | 0.9190 |
154
+ | 0.0406 | 87.0 | 1827 | 0.3380 | 0.9003 |
155
+ | 0.0314 | 88.0 | 1848 | 0.2801 | 0.9221 |
156
+ | 0.0355 | 89.0 | 1869 | 0.2609 | 0.9190 |
157
+ | 0.0313 | 90.0 | 1890 | 0.2507 | 0.9315 |
158
+ | 0.0478 | 91.0 | 1911 | 0.2934 | 0.9128 |
159
+ | 0.0365 | 92.0 | 1932 | 0.2642 | 0.9283 |
160
+ | 0.0486 | 93.0 | 1953 | 0.1662 | 0.9626 |
161
+ | 0.0271 | 94.0 | 1974 | 0.2194 | 0.9377 |
162
+ | 0.0215 | 95.0 | 1995 | 0.2492 | 0.9252 |
163
+ | 0.0365 | 96.0 | 2016 | 0.2006 | 0.9502 |
164
+ | 0.0275 | 97.0 | 2037 | 0.2267 | 0.9159 |
165
+ | 0.0647 | 98.0 | 2058 | 0.3226 | 0.9159 |
166
+ | 0.0222 | 99.0 | 2079 | 0.2469 | 0.9346 |
167
+ | 0.0426 | 100.0 | 2100 | 0.2644 | 0.9159 |
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:eee709d0b2b1a1a53850f0b568dd1e996f53195df442ad0223c9745cdddafb33
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/Jun18_12-32-46_DESKTOP-QA5IM1O/events.out.tfevents.1718685167.DESKTOP-QA5IM1O.8444.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabd47eafd28fade65c569216f7b69e28c2093302c7f63533d66aaddaa23f827
3
+ size 58657
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:108dbe7dcb0273ccf31738c8efb192cf5906d6e2dd2de9d410fb65a4eb93679f
3
+ size 5176