Commit
•
a230e26
1
Parent(s):
b55a272
End of training
Browse files- README.md +175 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Jun15_18-25-58_DESKTOP-QA5IM1O/events.out.tfevents.1718447159.DESKTOP-QA5IM1O.1192.0 +3 -0
- training_args.bin +3 -0
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_7
|
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.9532710280373832
|
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_7
|
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.1612
|
36 |
+
- Accuracy: 0.9533
|
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.1056 | 1.0 | 21 | 1.0902 | 0.4206 |
|
69 |
+
| 1.0884 | 2.0 | 42 | 1.0625 | 0.4766 |
|
70 |
+
| 1.0199 | 3.0 | 63 | 1.0114 | 0.5202 |
|
71 |
+
| 0.9636 | 4.0 | 84 | 0.9735 | 0.5234 |
|
72 |
+
| 0.8789 | 5.0 | 105 | 0.9093 | 0.5701 |
|
73 |
+
| 0.8625 | 6.0 | 126 | 0.8850 | 0.6044 |
|
74 |
+
| 0.7607 | 7.0 | 147 | 0.8773 | 0.6106 |
|
75 |
+
| 0.7615 | 8.0 | 168 | 0.8370 | 0.5950 |
|
76 |
+
| 0.7052 | 9.0 | 189 | 0.8290 | 0.6231 |
|
77 |
+
| 0.6378 | 10.0 | 210 | 0.6312 | 0.7508 |
|
78 |
+
| 0.5741 | 11.0 | 231 | 0.6255 | 0.7508 |
|
79 |
+
| 0.5034 | 12.0 | 252 | 0.7393 | 0.6511 |
|
80 |
+
| 0.5886 | 13.0 | 273 | 0.6083 | 0.7664 |
|
81 |
+
| 0.4313 | 14.0 | 294 | 0.5113 | 0.7975 |
|
82 |
+
| 0.4542 | 15.0 | 315 | 0.5826 | 0.7632 |
|
83 |
+
| 0.3551 | 16.0 | 336 | 0.6452 | 0.7664 |
|
84 |
+
| 0.3613 | 17.0 | 357 | 0.5993 | 0.7601 |
|
85 |
+
| 0.3627 | 18.0 | 378 | 0.4192 | 0.8536 |
|
86 |
+
| 0.2659 | 19.0 | 399 | 0.4967 | 0.8131 |
|
87 |
+
| 0.2783 | 20.0 | 420 | 0.4777 | 0.8287 |
|
88 |
+
| 0.2618 | 21.0 | 441 | 0.5573 | 0.7850 |
|
89 |
+
| 0.2962 | 22.0 | 462 | 0.4956 | 0.7975 |
|
90 |
+
| 0.3321 | 23.0 | 483 | 0.3398 | 0.8723 |
|
91 |
+
| 0.3306 | 24.0 | 504 | 0.4910 | 0.8224 |
|
92 |
+
| 0.2813 | 25.0 | 525 | 0.3536 | 0.8536 |
|
93 |
+
| 0.189 | 26.0 | 546 | 0.2645 | 0.8910 |
|
94 |
+
| 0.2114 | 27.0 | 567 | 0.5280 | 0.8224 |
|
95 |
+
| 0.2027 | 28.0 | 588 | 0.5607 | 0.8100 |
|
96 |
+
| 0.204 | 29.0 | 609 | 0.3179 | 0.8879 |
|
97 |
+
| 0.1844 | 30.0 | 630 | 0.2999 | 0.8972 |
|
98 |
+
| 0.1655 | 31.0 | 651 | 0.3656 | 0.8785 |
|
99 |
+
| 0.3034 | 32.0 | 672 | 0.2920 | 0.8941 |
|
100 |
+
| 0.1617 | 33.0 | 693 | 0.3290 | 0.8847 |
|
101 |
+
| 0.1588 | 34.0 | 714 | 0.2659 | 0.8972 |
|
102 |
+
| 0.1263 | 35.0 | 735 | 0.4091 | 0.8505 |
|
103 |
+
| 0.145 | 36.0 | 756 | 0.3294 | 0.8785 |
|
104 |
+
| 0.1413 | 37.0 | 777 | 0.2408 | 0.9128 |
|
105 |
+
| 0.1309 | 38.0 | 798 | 0.2980 | 0.8910 |
|
106 |
+
| 0.1316 | 39.0 | 819 | 0.3839 | 0.8723 |
|
107 |
+
| 0.1508 | 40.0 | 840 | 0.2546 | 0.9034 |
|
108 |
+
| 0.1078 | 41.0 | 861 | 0.2317 | 0.9221 |
|
109 |
+
| 0.1263 | 42.0 | 882 | 0.3212 | 0.8910 |
|
110 |
+
| 0.142 | 43.0 | 903 | 0.3513 | 0.8660 |
|
111 |
+
| 0.108 | 44.0 | 924 | 0.2291 | 0.9034 |
|
112 |
+
| 0.1297 | 45.0 | 945 | 0.3755 | 0.8692 |
|
113 |
+
| 0.1195 | 46.0 | 966 | 0.2830 | 0.9065 |
|
114 |
+
| 0.1029 | 47.0 | 987 | 0.3560 | 0.8785 |
|
115 |
+
| 0.0988 | 48.0 | 1008 | 0.4380 | 0.8536 |
|
116 |
+
| 0.0931 | 49.0 | 1029 | 0.1965 | 0.9283 |
|
117 |
+
| 0.0787 | 50.0 | 1050 | 0.3069 | 0.9003 |
|
118 |
+
| 0.0925 | 51.0 | 1071 | 0.3059 | 0.9065 |
|
119 |
+
| 0.0999 | 52.0 | 1092 | 0.2761 | 0.9097 |
|
120 |
+
| 0.1079 | 53.0 | 1113 | 0.4334 | 0.8598 |
|
121 |
+
| 0.0967 | 54.0 | 1134 | 0.2761 | 0.9097 |
|
122 |
+
| 0.2187 | 55.0 | 1155 | 0.3166 | 0.8941 |
|
123 |
+
| 0.2928 | 56.0 | 1176 | 0.1629 | 0.9377 |
|
124 |
+
| 0.0813 | 57.0 | 1197 | 0.2661 | 0.9159 |
|
125 |
+
| 0.0898 | 58.0 | 1218 | 0.1690 | 0.9315 |
|
126 |
+
| 0.0741 | 59.0 | 1239 | 0.2331 | 0.9190 |
|
127 |
+
| 0.0646 | 60.0 | 1260 | 0.1978 | 0.9221 |
|
128 |
+
| 0.0576 | 61.0 | 1281 | 0.2079 | 0.9377 |
|
129 |
+
| 0.0676 | 62.0 | 1302 | 0.2102 | 0.9315 |
|
130 |
+
| 0.0716 | 63.0 | 1323 | 0.2085 | 0.9315 |
|
131 |
+
| 0.1935 | 64.0 | 1344 | 0.2461 | 0.9315 |
|
132 |
+
| 0.0633 | 65.0 | 1365 | 0.1748 | 0.9346 |
|
133 |
+
| 0.062 | 66.0 | 1386 | 0.2004 | 0.9315 |
|
134 |
+
| 0.0757 | 67.0 | 1407 | 0.2812 | 0.9034 |
|
135 |
+
| 0.0548 | 68.0 | 1428 | 0.1503 | 0.9502 |
|
136 |
+
| 0.0583 | 69.0 | 1449 | 0.3126 | 0.9097 |
|
137 |
+
| 0.2111 | 70.0 | 1470 | 0.2005 | 0.9470 |
|
138 |
+
| 0.0648 | 71.0 | 1491 | 0.1651 | 0.9533 |
|
139 |
+
| 0.0477 | 72.0 | 1512 | 0.2301 | 0.9346 |
|
140 |
+
| 0.0438 | 73.0 | 1533 | 0.2156 | 0.9252 |
|
141 |
+
| 0.0631 | 74.0 | 1554 | 0.2343 | 0.9283 |
|
142 |
+
| 0.0498 | 75.0 | 1575 | 0.2876 | 0.9065 |
|
143 |
+
| 0.0605 | 76.0 | 1596 | 0.2125 | 0.9283 |
|
144 |
+
| 0.0604 | 77.0 | 1617 | 0.1966 | 0.9408 |
|
145 |
+
| 0.0509 | 78.0 | 1638 | 0.2012 | 0.9470 |
|
146 |
+
| 0.0452 | 79.0 | 1659 | 0.2409 | 0.9315 |
|
147 |
+
| 0.0419 | 80.0 | 1680 | 0.2316 | 0.9283 |
|
148 |
+
| 0.0306 | 81.0 | 1701 | 0.2379 | 0.9346 |
|
149 |
+
| 0.0403 | 82.0 | 1722 | 0.2128 | 0.9346 |
|
150 |
+
| 0.0484 | 83.0 | 1743 | 0.1239 | 0.9502 |
|
151 |
+
| 0.0523 | 84.0 | 1764 | 0.2109 | 0.9408 |
|
152 |
+
| 0.0445 | 85.0 | 1785 | 0.2261 | 0.9283 |
|
153 |
+
| 0.0442 | 86.0 | 1806 | 0.1753 | 0.9564 |
|
154 |
+
| 0.0274 | 87.0 | 1827 | 0.1932 | 0.9408 |
|
155 |
+
| 0.0395 | 88.0 | 1848 | 0.1622 | 0.9439 |
|
156 |
+
| 0.0587 | 89.0 | 1869 | 0.2000 | 0.9408 |
|
157 |
+
| 0.0299 | 90.0 | 1890 | 0.2348 | 0.9221 |
|
158 |
+
| 0.033 | 91.0 | 1911 | 0.1726 | 0.9439 |
|
159 |
+
| 0.032 | 92.0 | 1932 | 0.1737 | 0.9470 |
|
160 |
+
| 0.0275 | 93.0 | 1953 | 0.1737 | 0.9470 |
|
161 |
+
| 0.0324 | 94.0 | 1974 | 0.2660 | 0.9159 |
|
162 |
+
| 0.0256 | 95.0 | 1995 | 0.1639 | 0.9408 |
|
163 |
+
| 0.0289 | 96.0 | 2016 | 0.1312 | 0.9502 |
|
164 |
+
| 0.0304 | 97.0 | 2037 | 0.1784 | 0.9439 |
|
165 |
+
| 0.0411 | 98.0 | 2058 | 0.1326 | 0.9626 |
|
166 |
+
| 0.0256 | 99.0 | 2079 | 0.1724 | 0.9470 |
|
167 |
+
| 0.0382 | 100.0 | 2100 | 0.1612 | 0.9533 |
|
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:8b8c9e2c62f074ba5722a4b38c30adf8c3922ec65ae4863dad531765829f796b
|
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/Jun15_18-25-58_DESKTOP-QA5IM1O/events.out.tfevents.1718447159.DESKTOP-QA5IM1O.1192.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba0c93b1dd9c476803ece2ba12a26193a691fcc4b4a5339ae00e8c66f22c117c
|
3 |
+
size 58654
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6724a11c98b495edd56f9814f24b0c712a9dce7546bdaf2f02beb3106e6e879f
|
3 |
+
size 5176
|