talli96123 commited on
Commit
4d60a8f
1 Parent(s): 7c339cf

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_12
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.9439252336448598
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_12
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.1999
36
+ - Accuracy: 0.9439
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.093 | 1.0 | 21 | 1.0798 | 0.4361 |
69
+ | 1.0819 | 2.0 | 42 | 1.0504 | 0.4704 |
70
+ | 1.0195 | 3.0 | 63 | 1.0107 | 0.4860 |
71
+ | 0.9205 | 4.0 | 84 | 0.9285 | 0.5514 |
72
+ | 0.879 | 5.0 | 105 | 0.8812 | 0.6044 |
73
+ | 0.757 | 6.0 | 126 | 0.8114 | 0.6324 |
74
+ | 0.6884 | 7.0 | 147 | 0.7328 | 0.6885 |
75
+ | 0.6399 | 8.0 | 168 | 0.7187 | 0.6978 |
76
+ | 0.5531 | 9.0 | 189 | 0.6771 | 0.7196 |
77
+ | 0.5187 | 10.0 | 210 | 0.6594 | 0.7134 |
78
+ | 0.5125 | 11.0 | 231 | 0.7660 | 0.6729 |
79
+ | 0.495 | 12.0 | 252 | 0.7215 | 0.7165 |
80
+ | 0.5014 | 13.0 | 273 | 0.5828 | 0.7570 |
81
+ | 0.3638 | 14.0 | 294 | 0.7056 | 0.7134 |
82
+ | 0.4493 | 15.0 | 315 | 0.7061 | 0.7383 |
83
+ | 0.4304 | 16.0 | 336 | 0.5031 | 0.7944 |
84
+ | 0.3223 | 17.0 | 357 | 0.5052 | 0.7975 |
85
+ | 0.3496 | 18.0 | 378 | 0.5136 | 0.8069 |
86
+ | 0.2498 | 19.0 | 399 | 0.5414 | 0.7944 |
87
+ | 0.3783 | 20.0 | 420 | 0.4276 | 0.8380 |
88
+ | 0.2768 | 21.0 | 441 | 0.4990 | 0.8100 |
89
+ | 0.2588 | 22.0 | 462 | 0.5184 | 0.8100 |
90
+ | 0.33 | 23.0 | 483 | 0.4037 | 0.8380 |
91
+ | 0.2418 | 24.0 | 504 | 0.4764 | 0.8100 |
92
+ | 0.2 | 25.0 | 525 | 0.3888 | 0.8505 |
93
+ | 0.1859 | 26.0 | 546 | 0.3868 | 0.8660 |
94
+ | 0.1804 | 27.0 | 567 | 0.5299 | 0.7944 |
95
+ | 0.1891 | 28.0 | 588 | 0.4448 | 0.8411 |
96
+ | 0.1837 | 29.0 | 609 | 0.4972 | 0.8349 |
97
+ | 0.209 | 30.0 | 630 | 0.4709 | 0.8380 |
98
+ | 0.1669 | 31.0 | 651 | 0.4084 | 0.8536 |
99
+ | 0.1474 | 32.0 | 672 | 0.4000 | 0.8785 |
100
+ | 0.1666 | 33.0 | 693 | 0.4109 | 0.8598 |
101
+ | 0.1657 | 34.0 | 714 | 0.3265 | 0.8910 |
102
+ | 0.1454 | 35.0 | 735 | 0.5221 | 0.8162 |
103
+ | 0.2093 | 36.0 | 756 | 0.6376 | 0.7944 |
104
+ | 0.1929 | 37.0 | 777 | 0.4007 | 0.8723 |
105
+ | 0.1393 | 38.0 | 798 | 0.3291 | 0.8879 |
106
+ | 0.1328 | 39.0 | 819 | 0.3766 | 0.8598 |
107
+ | 0.127 | 40.0 | 840 | 0.2965 | 0.9003 |
108
+ | 0.1325 | 41.0 | 861 | 0.3481 | 0.8723 |
109
+ | 0.118 | 42.0 | 882 | 0.3093 | 0.9065 |
110
+ | 0.1001 | 43.0 | 903 | 0.4232 | 0.8692 |
111
+ | 0.124 | 44.0 | 924 | 0.3761 | 0.8723 |
112
+ | 0.1159 | 45.0 | 945 | 0.3523 | 0.8910 |
113
+ | 0.129 | 46.0 | 966 | 0.3309 | 0.8785 |
114
+ | 0.1129 | 47.0 | 987 | 0.2915 | 0.9003 |
115
+ | 0.1043 | 48.0 | 1008 | 0.3259 | 0.8972 |
116
+ | 0.0986 | 49.0 | 1029 | 0.2627 | 0.9097 |
117
+ | 0.083 | 50.0 | 1050 | 0.3035 | 0.9034 |
118
+ | 0.0874 | 51.0 | 1071 | 0.3994 | 0.8629 |
119
+ | 0.0959 | 52.0 | 1092 | 0.2904 | 0.9065 |
120
+ | 0.0883 | 53.0 | 1113 | 0.2771 | 0.9128 |
121
+ | 0.0766 | 54.0 | 1134 | 0.2984 | 0.9128 |
122
+ | 0.0865 | 55.0 | 1155 | 0.3534 | 0.8941 |
123
+ | 0.0907 | 56.0 | 1176 | 0.3874 | 0.8723 |
124
+ | 0.0596 | 57.0 | 1197 | 0.2080 | 0.9283 |
125
+ | 0.0658 | 58.0 | 1218 | 0.3571 | 0.8879 |
126
+ | 0.0806 | 59.0 | 1239 | 0.3444 | 0.9003 |
127
+ | 0.0709 | 60.0 | 1260 | 0.3292 | 0.8972 |
128
+ | 0.0864 | 61.0 | 1281 | 0.3551 | 0.8816 |
129
+ | 0.0773 | 62.0 | 1302 | 0.2930 | 0.9159 |
130
+ | 0.0758 | 63.0 | 1323 | 0.2828 | 0.9221 |
131
+ | 0.0767 | 64.0 | 1344 | 0.2919 | 0.9065 |
132
+ | 0.0686 | 65.0 | 1365 | 0.2971 | 0.9065 |
133
+ | 0.0818 | 66.0 | 1386 | 0.3057 | 0.8972 |
134
+ | 0.0659 | 67.0 | 1407 | 0.2323 | 0.9221 |
135
+ | 0.0627 | 68.0 | 1428 | 0.3991 | 0.8754 |
136
+ | 0.0536 | 69.0 | 1449 | 0.2314 | 0.9221 |
137
+ | 0.2167 | 70.0 | 1470 | 0.2586 | 0.9346 |
138
+ | 0.0706 | 71.0 | 1491 | 0.2813 | 0.9315 |
139
+ | 0.0631 | 72.0 | 1512 | 0.2981 | 0.9034 |
140
+ | 0.0586 | 73.0 | 1533 | 0.2586 | 0.9283 |
141
+ | 0.0597 | 74.0 | 1554 | 0.3115 | 0.9097 |
142
+ | 0.0412 | 75.0 | 1575 | 0.2327 | 0.9315 |
143
+ | 0.0504 | 76.0 | 1596 | 0.2493 | 0.9408 |
144
+ | 0.0515 | 77.0 | 1617 | 0.2861 | 0.9283 |
145
+ | 0.0394 | 78.0 | 1638 | 0.2715 | 0.9128 |
146
+ | 0.0526 | 79.0 | 1659 | 0.2521 | 0.9190 |
147
+ | 0.043 | 80.0 | 1680 | 0.2421 | 0.9283 |
148
+ | 0.0466 | 81.0 | 1701 | 0.2918 | 0.9034 |
149
+ | 0.0418 | 82.0 | 1722 | 0.2956 | 0.9065 |
150
+ | 0.048 | 83.0 | 1743 | 0.2199 | 0.9283 |
151
+ | 0.0311 | 84.0 | 1764 | 0.2732 | 0.9128 |
152
+ | 0.0681 | 85.0 | 1785 | 0.2148 | 0.9346 |
153
+ | 0.0392 | 86.0 | 1806 | 0.2609 | 0.9252 |
154
+ | 0.0447 | 87.0 | 1827 | 0.2791 | 0.9346 |
155
+ | 0.0244 | 88.0 | 1848 | 0.2863 | 0.9221 |
156
+ | 0.0382 | 89.0 | 1869 | 0.2894 | 0.9190 |
157
+ | 0.0524 | 90.0 | 1890 | 0.1708 | 0.9408 |
158
+ | 0.0356 | 91.0 | 1911 | 0.2084 | 0.9221 |
159
+ | 0.0387 | 92.0 | 1932 | 0.2262 | 0.9377 |
160
+ | 0.0345 | 93.0 | 1953 | 0.2441 | 0.9377 |
161
+ | 0.0298 | 94.0 | 1974 | 0.2042 | 0.9408 |
162
+ | 0.0427 | 95.0 | 1995 | 0.1611 | 0.9533 |
163
+ | 0.043 | 96.0 | 2016 | 0.2175 | 0.9533 |
164
+ | 0.0241 | 97.0 | 2037 | 0.2445 | 0.9283 |
165
+ | 0.0416 | 98.0 | 2058 | 0.2236 | 0.9283 |
166
+ | 0.0311 | 99.0 | 2079 | 0.1943 | 0.9502 |
167
+ | 0.0352 | 100.0 | 2100 | 0.1999 | 0.9439 |
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:6b4b05b20dbd163ea6fec217e5daab0a77ea305a2642a7aa83c48ab57f8676dc
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/Jun17_15-41-07_DESKTOP-QA5IM1O/events.out.tfevents.1718610067.DESKTOP-QA5IM1O.5796.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab5e9e3d64455861bbd2ff560fc391d1f4ac9b8174ef22f806f108d38fbc95f4
3
+ size 58657
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a88823d593d20c0edbe610b9d697dc44dbc219b0c655a45e992b921c478d035b
3
+ size 5176