talli96123
commited on
End of training
Browse files- README.md +175 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Jun17_18-34-53_DESKTOP-QA5IM1O/events.out.tfevents.1718620493.DESKTOP-QA5IM1O.17096.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_13
|
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.9595015576323987
|
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_13
|
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.1337
|
36 |
+
- Accuracy: 0.9595
|
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.0893 | 1.0 | 21 | 1.0721 | 0.4922 |
|
69 |
+
| 1.057 | 2.0 | 42 | 1.0397 | 0.5234 |
|
70 |
+
| 1.018 | 3.0 | 63 | 0.9985 | 0.5265 |
|
71 |
+
| 0.9639 | 4.0 | 84 | 0.9241 | 0.5794 |
|
72 |
+
| 0.8882 | 5.0 | 105 | 0.8763 | 0.6231 |
|
73 |
+
| 0.8154 | 6.0 | 126 | 0.8003 | 0.6542 |
|
74 |
+
| 0.6905 | 7.0 | 147 | 0.8660 | 0.5981 |
|
75 |
+
| 0.7078 | 8.0 | 168 | 0.7604 | 0.6729 |
|
76 |
+
| 0.6762 | 9.0 | 189 | 0.7024 | 0.7134 |
|
77 |
+
| 0.5977 | 10.0 | 210 | 0.7110 | 0.6854 |
|
78 |
+
| 0.516 | 11.0 | 231 | 0.6112 | 0.7383 |
|
79 |
+
| 0.4939 | 12.0 | 252 | 0.5301 | 0.7882 |
|
80 |
+
| 0.4254 | 13.0 | 273 | 0.5863 | 0.7664 |
|
81 |
+
| 0.4009 | 14.0 | 294 | 0.6802 | 0.7103 |
|
82 |
+
| 0.4477 | 15.0 | 315 | 0.6327 | 0.7508 |
|
83 |
+
| 0.3547 | 16.0 | 336 | 0.4456 | 0.8442 |
|
84 |
+
| 0.3203 | 17.0 | 357 | 0.5052 | 0.7975 |
|
85 |
+
| 0.3331 | 18.0 | 378 | 0.4561 | 0.8442 |
|
86 |
+
| 0.3304 | 19.0 | 399 | 0.5010 | 0.8131 |
|
87 |
+
| 0.3035 | 20.0 | 420 | 0.4363 | 0.8474 |
|
88 |
+
| 0.2585 | 21.0 | 441 | 0.4671 | 0.8224 |
|
89 |
+
| 0.2425 | 22.0 | 462 | 0.4404 | 0.8474 |
|
90 |
+
| 0.2911 | 23.0 | 483 | 0.4463 | 0.8442 |
|
91 |
+
| 0.2466 | 24.0 | 504 | 0.3739 | 0.8692 |
|
92 |
+
| 0.2028 | 25.0 | 525 | 0.3317 | 0.8754 |
|
93 |
+
| 0.1761 | 26.0 | 546 | 0.5032 | 0.8287 |
|
94 |
+
| 0.2257 | 27.0 | 567 | 0.4841 | 0.8567 |
|
95 |
+
| 0.2464 | 28.0 | 588 | 0.3266 | 0.8941 |
|
96 |
+
| 0.1637 | 29.0 | 609 | 0.5122 | 0.8193 |
|
97 |
+
| 0.2037 | 30.0 | 630 | 0.3683 | 0.8847 |
|
98 |
+
| 0.1592 | 31.0 | 651 | 0.3185 | 0.8785 |
|
99 |
+
| 0.1779 | 32.0 | 672 | 0.4130 | 0.8660 |
|
100 |
+
| 0.1726 | 33.0 | 693 | 0.2861 | 0.9128 |
|
101 |
+
| 0.1685 | 34.0 | 714 | 0.3174 | 0.8910 |
|
102 |
+
| 0.1571 | 35.0 | 735 | 0.3252 | 0.8941 |
|
103 |
+
| 0.1315 | 36.0 | 756 | 0.4721 | 0.8224 |
|
104 |
+
| 0.2717 | 37.0 | 777 | 0.4957 | 0.8380 |
|
105 |
+
| 0.1968 | 38.0 | 798 | 0.2139 | 0.9346 |
|
106 |
+
| 0.1257 | 39.0 | 819 | 0.2550 | 0.9003 |
|
107 |
+
| 0.1178 | 40.0 | 840 | 0.3248 | 0.8816 |
|
108 |
+
| 0.1101 | 41.0 | 861 | 0.3600 | 0.8847 |
|
109 |
+
| 0.117 | 42.0 | 882 | 0.4135 | 0.8567 |
|
110 |
+
| 0.1339 | 43.0 | 903 | 0.3311 | 0.8847 |
|
111 |
+
| 0.1098 | 44.0 | 924 | 0.4151 | 0.8660 |
|
112 |
+
| 0.0872 | 45.0 | 945 | 0.2727 | 0.9097 |
|
113 |
+
| 0.1106 | 46.0 | 966 | 0.3106 | 0.9065 |
|
114 |
+
| 0.0955 | 47.0 | 987 | 0.2232 | 0.9315 |
|
115 |
+
| 0.1308 | 48.0 | 1008 | 0.2594 | 0.9128 |
|
116 |
+
| 0.0809 | 49.0 | 1029 | 0.2846 | 0.9065 |
|
117 |
+
| 0.1123 | 50.0 | 1050 | 0.2310 | 0.9221 |
|
118 |
+
| 0.0971 | 51.0 | 1071 | 0.3536 | 0.8879 |
|
119 |
+
| 0.1126 | 52.0 | 1092 | 0.3048 | 0.8972 |
|
120 |
+
| 0.0909 | 53.0 | 1113 | 0.2762 | 0.9097 |
|
121 |
+
| 0.089 | 54.0 | 1134 | 0.2672 | 0.9065 |
|
122 |
+
| 0.0881 | 55.0 | 1155 | 0.3479 | 0.8972 |
|
123 |
+
| 0.0852 | 56.0 | 1176 | 0.3397 | 0.9003 |
|
124 |
+
| 0.0712 | 57.0 | 1197 | 0.2242 | 0.9252 |
|
125 |
+
| 0.0844 | 58.0 | 1218 | 0.2430 | 0.9221 |
|
126 |
+
| 0.0619 | 59.0 | 1239 | 0.3453 | 0.8785 |
|
127 |
+
| 0.0904 | 60.0 | 1260 | 0.2579 | 0.9190 |
|
128 |
+
| 0.0704 | 61.0 | 1281 | 0.2337 | 0.9252 |
|
129 |
+
| 0.0637 | 62.0 | 1302 | 0.2778 | 0.9128 |
|
130 |
+
| 0.0752 | 63.0 | 1323 | 0.2019 | 0.9315 |
|
131 |
+
| 0.0759 | 64.0 | 1344 | 0.2226 | 0.9221 |
|
132 |
+
| 0.048 | 65.0 | 1365 | 0.3095 | 0.9003 |
|
133 |
+
| 0.0546 | 66.0 | 1386 | 0.3657 | 0.8972 |
|
134 |
+
| 0.0664 | 67.0 | 1407 | 0.3862 | 0.8972 |
|
135 |
+
| 0.0584 | 68.0 | 1428 | 0.2183 | 0.9408 |
|
136 |
+
| 0.0704 | 69.0 | 1449 | 0.2288 | 0.9283 |
|
137 |
+
| 0.0444 | 70.0 | 1470 | 0.2355 | 0.9252 |
|
138 |
+
| 0.0475 | 71.0 | 1491 | 0.1171 | 0.9626 |
|
139 |
+
| 0.0594 | 72.0 | 1512 | 0.2632 | 0.9252 |
|
140 |
+
| 0.0428 | 73.0 | 1533 | 0.2323 | 0.9346 |
|
141 |
+
| 0.0501 | 74.0 | 1554 | 0.2586 | 0.9221 |
|
142 |
+
| 0.0556 | 75.0 | 1575 | 0.2172 | 0.9252 |
|
143 |
+
| 0.0427 | 76.0 | 1596 | 0.2898 | 0.9097 |
|
144 |
+
| 0.0572 | 77.0 | 1617 | 0.1617 | 0.9502 |
|
145 |
+
| 0.038 | 78.0 | 1638 | 0.2294 | 0.9221 |
|
146 |
+
| 0.0453 | 79.0 | 1659 | 0.1670 | 0.9502 |
|
147 |
+
| 0.0378 | 80.0 | 1680 | 0.1205 | 0.9595 |
|
148 |
+
| 0.0444 | 81.0 | 1701 | 0.1833 | 0.9470 |
|
149 |
+
| 0.065 | 82.0 | 1722 | 0.2581 | 0.9252 |
|
150 |
+
| 0.0498 | 83.0 | 1743 | 0.2651 | 0.9315 |
|
151 |
+
| 0.0607 | 84.0 | 1764 | 0.2678 | 0.9221 |
|
152 |
+
| 0.0554 | 85.0 | 1785 | 0.1547 | 0.9470 |
|
153 |
+
| 0.0313 | 86.0 | 1806 | 0.1567 | 0.9533 |
|
154 |
+
| 0.0267 | 87.0 | 1827 | 0.1955 | 0.9346 |
|
155 |
+
| 0.0377 | 88.0 | 1848 | 0.1900 | 0.9346 |
|
156 |
+
| 0.0388 | 89.0 | 1869 | 0.1831 | 0.9377 |
|
157 |
+
| 0.0297 | 90.0 | 1890 | 0.1823 | 0.9470 |
|
158 |
+
| 0.0424 | 91.0 | 1911 | 0.2606 | 0.9315 |
|
159 |
+
| 0.0459 | 92.0 | 1932 | 0.1478 | 0.9502 |
|
160 |
+
| 0.0308 | 93.0 | 1953 | 0.1695 | 0.9439 |
|
161 |
+
| 0.0415 | 94.0 | 1974 | 0.1325 | 0.9564 |
|
162 |
+
| 0.0387 | 95.0 | 1995 | 0.0877 | 0.9751 |
|
163 |
+
| 0.0318 | 96.0 | 2016 | 0.1765 | 0.9408 |
|
164 |
+
| 0.0317 | 97.0 | 2037 | 0.1650 | 0.9564 |
|
165 |
+
| 0.0198 | 98.0 | 2058 | 0.2043 | 0.9439 |
|
166 |
+
| 0.0422 | 99.0 | 2079 | 0.1777 | 0.9377 |
|
167 |
+
| 0.0335 | 100.0 | 2100 | 0.1337 | 0.9595 |
|
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:d725046c4a54b33f3507dde1196374d15847067da5142a2d89a9ab7f70c43de7
|
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_18-34-53_DESKTOP-QA5IM1O/events.out.tfevents.1718620493.DESKTOP-QA5IM1O.17096.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b0e07c17e3da7678deac09d6929a135a6b534526e3b94b301f5480724c7e955
|
3 |
+
size 58657
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:299b42b8e1894c9eafa619e7e43cc043f99b69c9174601ec18cd9297a709e14a
|
3 |
+
size 5176
|