talli96123 commited on
Commit
d4a4e71
1 Parent(s): 84f0f24

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_epoch100_V_0_10
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.7974683544303798
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_epoch100_V_0_10
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.6095
36
+ - Accuracy: 0.7975
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.0941 | 1.0 | 10 | 1.0929 | 0.3418 |
69
+ | 1.0817 | 2.0 | 20 | 1.0775 | 0.4051 |
70
+ | 1.059 | 3.0 | 30 | 1.0631 | 0.4494 |
71
+ | 1.028 | 4.0 | 40 | 1.0305 | 0.4747 |
72
+ | 0.9784 | 5.0 | 50 | 1.0019 | 0.4747 |
73
+ | 0.9123 | 6.0 | 60 | 0.9389 | 0.5759 |
74
+ | 0.8789 | 7.0 | 70 | 0.8875 | 0.5949 |
75
+ | 0.816 | 8.0 | 80 | 0.8561 | 0.6203 |
76
+ | 0.7632 | 9.0 | 90 | 0.8253 | 0.6266 |
77
+ | 0.6857 | 10.0 | 100 | 0.8264 | 0.6203 |
78
+ | 0.6834 | 11.0 | 110 | 0.7056 | 0.6962 |
79
+ | 0.629 | 12.0 | 120 | 0.7708 | 0.6329 |
80
+ | 0.5744 | 13.0 | 130 | 0.6847 | 0.6962 |
81
+ | 0.5661 | 14.0 | 140 | 0.6881 | 0.7215 |
82
+ | 0.5516 | 15.0 | 150 | 0.7477 | 0.6646 |
83
+ | 0.482 | 16.0 | 160 | 0.6717 | 0.7152 |
84
+ | 0.4265 | 17.0 | 170 | 0.6200 | 0.7468 |
85
+ | 0.4074 | 18.0 | 180 | 0.6404 | 0.7278 |
86
+ | 0.3797 | 19.0 | 190 | 0.6577 | 0.7405 |
87
+ | 0.3895 | 20.0 | 200 | 0.6127 | 0.7658 |
88
+ | 0.3244 | 21.0 | 210 | 0.6776 | 0.7658 |
89
+ | 0.3764 | 22.0 | 220 | 0.8015 | 0.6899 |
90
+ | 0.3692 | 23.0 | 230 | 0.6790 | 0.7278 |
91
+ | 0.2687 | 24.0 | 240 | 0.6951 | 0.7215 |
92
+ | 0.3352 | 25.0 | 250 | 0.7140 | 0.7215 |
93
+ | 0.2734 | 26.0 | 260 | 0.6895 | 0.7152 |
94
+ | 0.2857 | 27.0 | 270 | 0.6515 | 0.7089 |
95
+ | 0.2716 | 28.0 | 280 | 0.6171 | 0.7405 |
96
+ | 0.2628 | 29.0 | 290 | 0.5954 | 0.7532 |
97
+ | 0.222 | 30.0 | 300 | 0.6447 | 0.7342 |
98
+ | 0.2458 | 31.0 | 310 | 0.6836 | 0.7532 |
99
+ | 0.2489 | 32.0 | 320 | 0.5701 | 0.7975 |
100
+ | 0.2282 | 33.0 | 330 | 0.6654 | 0.7405 |
101
+ | 0.1824 | 34.0 | 340 | 0.6552 | 0.7468 |
102
+ | 0.2261 | 35.0 | 350 | 0.7548 | 0.7342 |
103
+ | 0.2198 | 36.0 | 360 | 0.6297 | 0.7785 |
104
+ | 0.2118 | 37.0 | 370 | 0.6240 | 0.7911 |
105
+ | 0.1751 | 38.0 | 380 | 0.6787 | 0.7722 |
106
+ | 0.1507 | 39.0 | 390 | 0.5897 | 0.7911 |
107
+ | 0.1647 | 40.0 | 400 | 0.6010 | 0.7975 |
108
+ | 0.2214 | 41.0 | 410 | 0.6143 | 0.7975 |
109
+ | 0.1462 | 42.0 | 420 | 0.8883 | 0.7278 |
110
+ | 0.1841 | 43.0 | 430 | 0.7459 | 0.7532 |
111
+ | 0.2076 | 44.0 | 440 | 0.6125 | 0.8101 |
112
+ | 0.1359 | 45.0 | 450 | 0.5540 | 0.8101 |
113
+ | 0.1315 | 46.0 | 460 | 0.7218 | 0.7532 |
114
+ | 0.1658 | 47.0 | 470 | 0.7927 | 0.7278 |
115
+ | 0.1807 | 48.0 | 480 | 0.6954 | 0.7911 |
116
+ | 0.1601 | 49.0 | 490 | 0.6399 | 0.7595 |
117
+ | 0.1385 | 50.0 | 500 | 0.6353 | 0.7532 |
118
+ | 0.1387 | 51.0 | 510 | 0.6596 | 0.7658 |
119
+ | 0.1435 | 52.0 | 520 | 0.5697 | 0.8165 |
120
+ | 0.1116 | 53.0 | 530 | 0.6201 | 0.8165 |
121
+ | 0.0899 | 54.0 | 540 | 0.5805 | 0.8101 |
122
+ | 0.1245 | 55.0 | 550 | 0.7132 | 0.7785 |
123
+ | 0.1309 | 56.0 | 560 | 0.6173 | 0.7911 |
124
+ | 0.1176 | 57.0 | 570 | 0.6650 | 0.8038 |
125
+ | 0.1516 | 58.0 | 580 | 0.7006 | 0.7342 |
126
+ | 0.1359 | 59.0 | 590 | 0.7015 | 0.7785 |
127
+ | 0.134 | 60.0 | 600 | 0.6239 | 0.7975 |
128
+ | 0.1167 | 61.0 | 610 | 0.5665 | 0.7848 |
129
+ | 0.127 | 62.0 | 620 | 0.5368 | 0.8038 |
130
+ | 0.1306 | 63.0 | 630 | 0.4862 | 0.8544 |
131
+ | 0.0919 | 64.0 | 640 | 0.6305 | 0.7595 |
132
+ | 0.1082 | 65.0 | 650 | 0.6479 | 0.7848 |
133
+ | 0.1484 | 66.0 | 660 | 0.6687 | 0.7785 |
134
+ | 0.1066 | 67.0 | 670 | 0.5404 | 0.8101 |
135
+ | 0.1011 | 68.0 | 680 | 0.4724 | 0.8797 |
136
+ | 0.0891 | 69.0 | 690 | 0.5482 | 0.8354 |
137
+ | 0.1011 | 70.0 | 700 | 0.7259 | 0.7975 |
138
+ | 0.0819 | 71.0 | 710 | 0.6372 | 0.7911 |
139
+ | 0.0943 | 72.0 | 720 | 0.5851 | 0.7975 |
140
+ | 0.0638 | 73.0 | 730 | 0.5816 | 0.8101 |
141
+ | 0.0875 | 74.0 | 740 | 0.7538 | 0.7595 |
142
+ | 0.1146 | 75.0 | 750 | 0.5902 | 0.8165 |
143
+ | 0.0861 | 76.0 | 760 | 0.5353 | 0.8354 |
144
+ | 0.1031 | 77.0 | 770 | 0.5022 | 0.8101 |
145
+ | 0.0721 | 78.0 | 780 | 0.5100 | 0.8544 |
146
+ | 0.0752 | 79.0 | 790 | 0.6330 | 0.7785 |
147
+ | 0.0753 | 80.0 | 800 | 0.5908 | 0.7848 |
148
+ | 0.0602 | 81.0 | 810 | 0.6954 | 0.7658 |
149
+ | 0.082 | 82.0 | 820 | 0.4405 | 0.8671 |
150
+ | 0.0905 | 83.0 | 830 | 0.5115 | 0.8481 |
151
+ | 0.0597 | 84.0 | 840 | 0.5156 | 0.8608 |
152
+ | 0.0716 | 85.0 | 850 | 0.5273 | 0.8228 |
153
+ | 0.0606 | 86.0 | 860 | 0.6440 | 0.8354 |
154
+ | 0.0736 | 87.0 | 870 | 0.5842 | 0.8354 |
155
+ | 0.0614 | 88.0 | 880 | 0.5470 | 0.8354 |
156
+ | 0.0496 | 89.0 | 890 | 0.5201 | 0.8228 |
157
+ | 0.067 | 90.0 | 900 | 0.5866 | 0.8228 |
158
+ | 0.059 | 91.0 | 910 | 0.5842 | 0.8354 |
159
+ | 0.0525 | 92.0 | 920 | 0.5256 | 0.8418 |
160
+ | 0.0928 | 93.0 | 930 | 0.6557 | 0.8101 |
161
+ | 0.0736 | 94.0 | 940 | 0.6496 | 0.8101 |
162
+ | 0.064 | 95.0 | 950 | 0.5068 | 0.8418 |
163
+ | 0.0654 | 96.0 | 960 | 0.4680 | 0.8291 |
164
+ | 0.0426 | 97.0 | 970 | 0.5116 | 0.8608 |
165
+ | 0.0515 | 98.0 | 980 | 0.4887 | 0.8608 |
166
+ | 0.0466 | 99.0 | 990 | 0.5188 | 0.8228 |
167
+ | 0.0746 | 100.0 | 1000 | 0.6095 | 0.7975 |
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:c47eaf16342028e28eaafd3b06058cf7e93fd5c635c9460ce56b20c9346d1080
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_13-48-41_DESKTOP-QA5IM1O/events.out.tfevents.1718603321.DESKTOP-QA5IM1O.7920.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b37f0a1998fd4b2c9b860a2f657804b8793670d604d4d4d083ad1b66c78c944d
3
+ size 58573
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68350756dd77d77695847fe64ab133a67e4f48674363b3add9314be53e880c62
3
+ size 5176