talli96123 commited on
Commit
348e7e2
1 Parent(s): d2f7fde

End of training

Browse files
README.md ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_epoch120_V_0_1
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.8164556962025317
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_epoch120_V_0_1
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.5969
36
+ - Accuracy: 0.8165
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: 120
63
+
64
+ ### Training results
65
+
66
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
67
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
68
+ | 1.0907 | 1.0 | 10 | 1.0937 | 0.3291 |
69
+ | 1.0777 | 2.0 | 20 | 1.0915 | 0.3354 |
70
+ | 1.0596 | 3.0 | 30 | 1.0801 | 0.3544 |
71
+ | 1.0333 | 4.0 | 40 | 1.0463 | 0.4810 |
72
+ | 0.9965 | 5.0 | 50 | 0.9945 | 0.5316 |
73
+ | 0.9588 | 6.0 | 60 | 0.9807 | 0.5127 |
74
+ | 0.9183 | 7.0 | 70 | 0.9944 | 0.5063 |
75
+ | 0.8966 | 8.0 | 80 | 1.0074 | 0.5127 |
76
+ | 0.8199 | 9.0 | 90 | 0.9472 | 0.5506 |
77
+ | 0.8089 | 10.0 | 100 | 0.9102 | 0.5886 |
78
+ | 0.7151 | 11.0 | 110 | 0.7697 | 0.6962 |
79
+ | 0.6578 | 12.0 | 120 | 0.9557 | 0.5570 |
80
+ | 0.6375 | 13.0 | 130 | 0.7262 | 0.6709 |
81
+ | 0.5994 | 14.0 | 140 | 0.7609 | 0.6709 |
82
+ | 0.5086 | 15.0 | 150 | 0.7112 | 0.7089 |
83
+ | 0.4771 | 16.0 | 160 | 0.6239 | 0.7658 |
84
+ | 0.4631 | 17.0 | 170 | 0.7229 | 0.7278 |
85
+ | 0.5158 | 18.0 | 180 | 0.8230 | 0.6835 |
86
+ | 0.4938 | 19.0 | 190 | 0.6708 | 0.7278 |
87
+ | 0.4287 | 20.0 | 200 | 0.5675 | 0.7722 |
88
+ | 0.3256 | 21.0 | 210 | 0.6100 | 0.7468 |
89
+ | 0.3555 | 22.0 | 220 | 0.6967 | 0.7342 |
90
+ | 0.3453 | 23.0 | 230 | 0.6273 | 0.7532 |
91
+ | 0.3391 | 24.0 | 240 | 0.7153 | 0.7468 |
92
+ | 0.3129 | 25.0 | 250 | 0.7745 | 0.6835 |
93
+ | 0.3296 | 26.0 | 260 | 0.7254 | 0.7089 |
94
+ | 0.2695 | 27.0 | 270 | 0.6191 | 0.7658 |
95
+ | 0.2704 | 28.0 | 280 | 0.6397 | 0.7342 |
96
+ | 0.2466 | 29.0 | 290 | 0.7419 | 0.7342 |
97
+ | 0.2655 | 30.0 | 300 | 0.6966 | 0.7532 |
98
+ | 0.2448 | 31.0 | 310 | 0.6931 | 0.7532 |
99
+ | 0.2286 | 32.0 | 320 | 0.5090 | 0.7975 |
100
+ | 0.2419 | 33.0 | 330 | 0.5987 | 0.7405 |
101
+ | 0.1965 | 34.0 | 340 | 0.7482 | 0.7405 |
102
+ | 0.197 | 35.0 | 350 | 0.8851 | 0.7089 |
103
+ | 0.1829 | 36.0 | 360 | 0.5874 | 0.7848 |
104
+ | 0.187 | 37.0 | 370 | 0.7249 | 0.7405 |
105
+ | 0.2011 | 38.0 | 380 | 0.6821 | 0.7468 |
106
+ | 0.1927 | 39.0 | 390 | 0.7133 | 0.7848 |
107
+ | 0.2043 | 40.0 | 400 | 0.6956 | 0.7468 |
108
+ | 0.1661 | 41.0 | 410 | 0.6911 | 0.7532 |
109
+ | 0.1625 | 42.0 | 420 | 0.7424 | 0.7405 |
110
+ | 0.1876 | 43.0 | 430 | 0.6222 | 0.7722 |
111
+ | 0.1865 | 44.0 | 440 | 0.6250 | 0.8101 |
112
+ | 0.1604 | 45.0 | 450 | 0.6950 | 0.7405 |
113
+ | 0.2072 | 46.0 | 460 | 0.8475 | 0.7025 |
114
+ | 0.1816 | 47.0 | 470 | 0.5856 | 0.7975 |
115
+ | 0.1683 | 48.0 | 480 | 0.6331 | 0.7911 |
116
+ | 0.1698 | 49.0 | 490 | 0.8147 | 0.7278 |
117
+ | 0.1724 | 50.0 | 500 | 0.5908 | 0.7848 |
118
+ | 0.1231 | 51.0 | 510 | 0.4522 | 0.8291 |
119
+ | 0.1121 | 52.0 | 520 | 0.5198 | 0.8291 |
120
+ | 0.1335 | 53.0 | 530 | 0.6377 | 0.7785 |
121
+ | 0.1414 | 54.0 | 540 | 0.6638 | 0.7722 |
122
+ | 0.1263 | 55.0 | 550 | 0.6548 | 0.7722 |
123
+ | 0.1427 | 56.0 | 560 | 0.6146 | 0.7785 |
124
+ | 0.1137 | 57.0 | 570 | 0.5344 | 0.8101 |
125
+ | 0.1504 | 58.0 | 580 | 0.7023 | 0.7785 |
126
+ | 0.1549 | 59.0 | 590 | 0.8293 | 0.7152 |
127
+ | 0.1142 | 60.0 | 600 | 0.7865 | 0.7658 |
128
+ | 0.1271 | 61.0 | 610 | 0.6282 | 0.8038 |
129
+ | 0.1134 | 62.0 | 620 | 0.7117 | 0.7658 |
130
+ | 0.0954 | 63.0 | 630 | 0.5500 | 0.8165 |
131
+ | 0.1011 | 64.0 | 640 | 0.5801 | 0.7911 |
132
+ | 0.0878 | 65.0 | 650 | 0.4268 | 0.8418 |
133
+ | 0.1065 | 66.0 | 660 | 0.6277 | 0.8038 |
134
+ | 0.1298 | 67.0 | 670 | 0.5940 | 0.8038 |
135
+ | 0.111 | 68.0 | 680 | 0.6945 | 0.7785 |
136
+ | 0.0955 | 69.0 | 690 | 0.6320 | 0.8038 |
137
+ | 0.0728 | 70.0 | 700 | 0.6484 | 0.7975 |
138
+ | 0.0893 | 71.0 | 710 | 0.5842 | 0.8165 |
139
+ | 0.0962 | 72.0 | 720 | 0.5417 | 0.8354 |
140
+ | 0.0963 | 73.0 | 730 | 0.7366 | 0.7848 |
141
+ | 0.1103 | 74.0 | 740 | 0.5413 | 0.8354 |
142
+ | 0.1145 | 75.0 | 750 | 0.6310 | 0.7911 |
143
+ | 0.1093 | 76.0 | 760 | 0.5101 | 0.8481 |
144
+ | 0.0934 | 77.0 | 770 | 0.5049 | 0.8101 |
145
+ | 0.0914 | 78.0 | 780 | 0.6828 | 0.7975 |
146
+ | 0.0739 | 79.0 | 790 | 0.8685 | 0.7595 |
147
+ | 0.1098 | 80.0 | 800 | 0.5542 | 0.7975 |
148
+ | 0.0748 | 81.0 | 810 | 0.4864 | 0.8354 |
149
+ | 0.0763 | 82.0 | 820 | 0.6708 | 0.7785 |
150
+ | 0.0805 | 83.0 | 830 | 0.5730 | 0.8291 |
151
+ | 0.0936 | 84.0 | 840 | 0.5680 | 0.8228 |
152
+ | 0.0664 | 85.0 | 850 | 0.5645 | 0.8228 |
153
+ | 0.0932 | 86.0 | 860 | 0.4601 | 0.8608 |
154
+ | 0.0846 | 87.0 | 870 | 0.7324 | 0.7911 |
155
+ | 0.0799 | 88.0 | 880 | 0.6234 | 0.8101 |
156
+ | 0.0707 | 89.0 | 890 | 0.4808 | 0.8544 |
157
+ | 0.0626 | 90.0 | 900 | 0.6119 | 0.7848 |
158
+ | 0.066 | 91.0 | 910 | 0.5173 | 0.8228 |
159
+ | 0.0701 | 92.0 | 920 | 0.7111 | 0.7722 |
160
+ | 0.0862 | 93.0 | 930 | 0.6035 | 0.7975 |
161
+ | 0.0397 | 94.0 | 940 | 0.5329 | 0.8418 |
162
+ | 0.095 | 95.0 | 950 | 0.6635 | 0.7911 |
163
+ | 0.0688 | 96.0 | 960 | 0.4878 | 0.8734 |
164
+ | 0.07 | 97.0 | 970 | 0.5253 | 0.8608 |
165
+ | 0.0704 | 98.0 | 980 | 0.4443 | 0.8608 |
166
+ | 0.0883 | 99.0 | 990 | 0.5571 | 0.8165 |
167
+ | 0.064 | 100.0 | 1000 | 0.7047 | 0.7911 |
168
+ | 0.0547 | 101.0 | 1010 | 0.6558 | 0.8101 |
169
+ | 0.0686 | 102.0 | 1020 | 0.6330 | 0.8165 |
170
+ | 0.0806 | 103.0 | 1030 | 0.5754 | 0.8354 |
171
+ | 0.0481 | 104.0 | 1040 | 0.5074 | 0.8544 |
172
+ | 0.0499 | 105.0 | 1050 | 0.6701 | 0.8165 |
173
+ | 0.0703 | 106.0 | 1060 | 0.6151 | 0.8291 |
174
+ | 0.0921 | 107.0 | 1070 | 0.5935 | 0.8354 |
175
+ | 0.0426 | 108.0 | 1080 | 0.6534 | 0.7975 |
176
+ | 0.0618 | 109.0 | 1090 | 0.5265 | 0.8165 |
177
+ | 0.0597 | 110.0 | 1100 | 0.5604 | 0.8354 |
178
+ | 0.0471 | 111.0 | 1110 | 0.5451 | 0.8354 |
179
+ | 0.0541 | 112.0 | 1120 | 0.5182 | 0.8544 |
180
+ | 0.0369 | 113.0 | 1130 | 0.5276 | 0.8291 |
181
+ | 0.0571 | 114.0 | 1140 | 0.4766 | 0.8354 |
182
+ | 0.0469 | 115.0 | 1150 | 0.6508 | 0.8101 |
183
+ | 0.0877 | 116.0 | 1160 | 0.5894 | 0.8418 |
184
+ | 0.0681 | 117.0 | 1170 | 0.4952 | 0.8418 |
185
+ | 0.0303 | 118.0 | 1180 | 0.5804 | 0.8418 |
186
+ | 0.0536 | 119.0 | 1190 | 0.7055 | 0.8101 |
187
+ | 0.0576 | 120.0 | 1200 | 0.5969 | 0.8165 |
188
+
189
+
190
+ ### Framework versions
191
+
192
+ - Transformers 4.41.2
193
+ - Pytorch 2.3.1
194
+ - Datasets 2.20.0
195
+ - 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:ef9584ee87a87f31ff9f400af0e1e7c80d62afa91612750e0ed3b3b489e97ea8
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/Jun14_23-03-47_DESKTOP-QA5IM1O/events.out.tfevents.1718377427.DESKTOP-QA5IM1O.2720.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a35b1b589c4eed37b43c157a2e89ba4007cdaa6290ac6a3799f50fd580e0326
3
+ size 69251
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb1d169a28b48ae3beb418489311072954af2689c4031299a8ddcc5f38be3d9c
3
+ size 5176