talli96123 commited on
Commit
ac0c917
1 Parent(s): 3af5fc9

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_11
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_11
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.2049
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: 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.089 | 1.0 | 21 | 1.0699 | 0.4642 |
69
+ | 1.0499 | 2.0 | 42 | 1.0288 | 0.5514 |
70
+ | 1.012 | 3.0 | 63 | 0.9738 | 0.5234 |
71
+ | 0.9484 | 4.0 | 84 | 0.9146 | 0.5763 |
72
+ | 0.8696 | 5.0 | 105 | 0.8897 | 0.6075 |
73
+ | 0.8194 | 6.0 | 126 | 0.8737 | 0.6168 |
74
+ | 0.7567 | 7.0 | 147 | 0.7329 | 0.6916 |
75
+ | 0.6649 | 8.0 | 168 | 0.7376 | 0.6978 |
76
+ | 0.6515 | 9.0 | 189 | 1.0486 | 0.5202 |
77
+ | 0.7191 | 10.0 | 210 | 0.7651 | 0.6636 |
78
+ | 0.573 | 11.0 | 231 | 0.7393 | 0.6885 |
79
+ | 0.4787 | 12.0 | 252 | 0.7596 | 0.6791 |
80
+ | 0.4838 | 13.0 | 273 | 0.6008 | 0.7788 |
81
+ | 0.4554 | 14.0 | 294 | 0.6622 | 0.7477 |
82
+ | 0.5433 | 15.0 | 315 | 0.6715 | 0.7196 |
83
+ | 0.4842 | 16.0 | 336 | 0.5973 | 0.7414 |
84
+ | 0.4186 | 17.0 | 357 | 0.5679 | 0.7757 |
85
+ | 0.3345 | 18.0 | 378 | 0.4770 | 0.8162 |
86
+ | 0.2651 | 19.0 | 399 | 0.4308 | 0.8442 |
87
+ | 0.2247 | 20.0 | 420 | 0.4637 | 0.8442 |
88
+ | 0.2601 | 21.0 | 441 | 0.3916 | 0.8723 |
89
+ | 0.2419 | 22.0 | 462 | 0.3525 | 0.8785 |
90
+ | 0.2626 | 23.0 | 483 | 0.4901 | 0.8380 |
91
+ | 0.2554 | 24.0 | 504 | 0.6997 | 0.7445 |
92
+ | 0.2352 | 25.0 | 525 | 0.2725 | 0.9159 |
93
+ | 0.2139 | 26.0 | 546 | 0.5544 | 0.8006 |
94
+ | 0.2456 | 27.0 | 567 | 0.3419 | 0.8785 |
95
+ | 0.2336 | 28.0 | 588 | 0.3981 | 0.8349 |
96
+ | 0.1654 | 29.0 | 609 | 0.3819 | 0.8474 |
97
+ | 0.1543 | 30.0 | 630 | 0.2538 | 0.9128 |
98
+ | 0.1744 | 31.0 | 651 | 0.4008 | 0.8536 |
99
+ | 0.1627 | 32.0 | 672 | 0.3453 | 0.8785 |
100
+ | 0.1641 | 33.0 | 693 | 0.2883 | 0.8972 |
101
+ | 0.1816 | 34.0 | 714 | 0.3159 | 0.8910 |
102
+ | 0.3087 | 35.0 | 735 | 0.5607 | 0.8131 |
103
+ | 0.1463 | 36.0 | 756 | 0.2616 | 0.9034 |
104
+ | 0.2832 | 37.0 | 777 | 0.3128 | 0.9003 |
105
+ | 0.1135 | 38.0 | 798 | 0.2374 | 0.9221 |
106
+ | 0.109 | 39.0 | 819 | 0.2972 | 0.9159 |
107
+ | 0.103 | 40.0 | 840 | 0.3414 | 0.8879 |
108
+ | 0.1084 | 41.0 | 861 | 0.5068 | 0.8318 |
109
+ | 0.1464 | 42.0 | 882 | 0.2895 | 0.9034 |
110
+ | 0.0994 | 43.0 | 903 | 0.2374 | 0.9221 |
111
+ | 0.0908 | 44.0 | 924 | 0.2381 | 0.9283 |
112
+ | 0.113 | 45.0 | 945 | 0.2854 | 0.9065 |
113
+ | 0.1415 | 46.0 | 966 | 0.2304 | 0.9283 |
114
+ | 0.0965 | 47.0 | 987 | 0.2900 | 0.9003 |
115
+ | 0.0773 | 48.0 | 1008 | 0.3234 | 0.8972 |
116
+ | 0.0749 | 49.0 | 1029 | 0.3964 | 0.8785 |
117
+ | 0.1094 | 50.0 | 1050 | 0.4835 | 0.8536 |
118
+ | 0.1152 | 51.0 | 1071 | 0.2459 | 0.9159 |
119
+ | 0.1123 | 52.0 | 1092 | 0.2469 | 0.9190 |
120
+ | 0.0837 | 53.0 | 1113 | 0.2169 | 0.9252 |
121
+ | 0.0944 | 54.0 | 1134 | 0.2855 | 0.9003 |
122
+ | 0.0975 | 55.0 | 1155 | 0.2581 | 0.9065 |
123
+ | 0.0738 | 56.0 | 1176 | 0.2912 | 0.8972 |
124
+ | 0.0735 | 57.0 | 1197 | 0.2847 | 0.9003 |
125
+ | 0.0773 | 58.0 | 1218 | 0.2194 | 0.9252 |
126
+ | 0.0917 | 59.0 | 1239 | 0.2202 | 0.9159 |
127
+ | 0.0843 | 60.0 | 1260 | 0.4062 | 0.8629 |
128
+ | 0.0796 | 61.0 | 1281 | 0.2564 | 0.9190 |
129
+ | 0.0592 | 62.0 | 1302 | 0.2795 | 0.9097 |
130
+ | 0.0526 | 63.0 | 1323 | 0.2589 | 0.9252 |
131
+ | 0.072 | 64.0 | 1344 | 0.1720 | 0.9470 |
132
+ | 0.0721 | 65.0 | 1365 | 0.3482 | 0.8972 |
133
+ | 0.0643 | 66.0 | 1386 | 0.2056 | 0.9315 |
134
+ | 0.0632 | 67.0 | 1407 | 0.2368 | 0.9377 |
135
+ | 0.0656 | 68.0 | 1428 | 0.1891 | 0.9346 |
136
+ | 0.0547 | 69.0 | 1449 | 0.2592 | 0.9315 |
137
+ | 0.0613 | 70.0 | 1470 | 0.2446 | 0.9221 |
138
+ | 0.0572 | 71.0 | 1491 | 0.1700 | 0.9439 |
139
+ | 0.0707 | 72.0 | 1512 | 0.1974 | 0.9377 |
140
+ | 0.0462 | 73.0 | 1533 | 0.3013 | 0.9221 |
141
+ | 0.045 | 74.0 | 1554 | 0.2223 | 0.9252 |
142
+ | 0.0729 | 75.0 | 1575 | 0.2085 | 0.9346 |
143
+ | 0.049 | 76.0 | 1596 | 0.2198 | 0.9470 |
144
+ | 0.0531 | 77.0 | 1617 | 0.2064 | 0.9439 |
145
+ | 0.047 | 78.0 | 1638 | 0.3139 | 0.9065 |
146
+ | 0.0484 | 79.0 | 1659 | 0.3167 | 0.9190 |
147
+ | 0.0572 | 80.0 | 1680 | 0.2002 | 0.9408 |
148
+ | 0.0356 | 81.0 | 1701 | 0.2248 | 0.9283 |
149
+ | 0.0405 | 82.0 | 1722 | 0.2738 | 0.9283 |
150
+ | 0.0502 | 83.0 | 1743 | 0.1940 | 0.9315 |
151
+ | 0.0403 | 84.0 | 1764 | 0.2541 | 0.9252 |
152
+ | 0.0334 | 85.0 | 1785 | 0.2284 | 0.9439 |
153
+ | 0.0395 | 86.0 | 1806 | 0.2369 | 0.9315 |
154
+ | 0.0359 | 87.0 | 1827 | 0.1361 | 0.9688 |
155
+ | 0.0412 | 88.0 | 1848 | 0.2190 | 0.9408 |
156
+ | 0.0399 | 89.0 | 1869 | 0.2068 | 0.9408 |
157
+ | 0.047 | 90.0 | 1890 | 0.2655 | 0.9159 |
158
+ | 0.0377 | 91.0 | 1911 | 0.1519 | 0.9377 |
159
+ | 0.0246 | 92.0 | 1932 | 0.2156 | 0.9377 |
160
+ | 0.0285 | 93.0 | 1953 | 0.2732 | 0.9315 |
161
+ | 0.0447 | 94.0 | 1974 | 0.2069 | 0.9315 |
162
+ | 0.0271 | 95.0 | 1995 | 0.2119 | 0.9377 |
163
+ | 0.0316 | 96.0 | 2016 | 0.2199 | 0.9377 |
164
+ | 0.0335 | 97.0 | 2037 | 0.1942 | 0.9439 |
165
+ | 0.0285 | 98.0 | 2058 | 0.1771 | 0.9439 |
166
+ | 0.0262 | 99.0 | 2079 | 0.1745 | 0.9470 |
167
+ | 0.0276 | 100.0 | 2100 | 0.2049 | 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:96024982b3dc9aeefe02a5b2397c5b68f2f1d208cd8d7e4058d8a340bf8e95d4
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_14-31-57_DESKTOP-QA5IM1O/events.out.tfevents.1718605917.DESKTOP-QA5IM1O.7920.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22e6b3e5d159cb91cadd2cb6ea38dc97976e2f72ba2692f763776ec3259e12c
3
+ size 58657
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e67bd722549ca6680c3d80de1a11c247199d384e75bdf3ce2af5ef6f55d46bfe
3
+ size 5176