Commit
•
d7d0f8e
1
Parent(s):
531baba
End of training
Browse files- README.md +175 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Jun18_02-17-30_DESKTOP-QA5IM1O/events.out.tfevents.1718648250.DESKTOP-QA5IM1O.7880.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_15
|
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.956386292834891
|
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_15
|
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.1718
|
36 |
+
- Accuracy: 0.9564
|
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.1001 | 1.0 | 21 | 1.0997 | 0.3614 |
|
69 |
+
| 1.0637 | 2.0 | 42 | 1.0850 | 0.3863 |
|
70 |
+
| 1.0464 | 3.0 | 63 | 1.0524 | 0.4766 |
|
71 |
+
| 0.9569 | 4.0 | 84 | 0.9464 | 0.5763 |
|
72 |
+
| 0.8778 | 5.0 | 105 | 0.8916 | 0.6168 |
|
73 |
+
| 0.8396 | 6.0 | 126 | 0.8181 | 0.6573 |
|
74 |
+
| 0.7752 | 7.0 | 147 | 0.8517 | 0.6168 |
|
75 |
+
| 0.7765 | 8.0 | 168 | 1.0433 | 0.5140 |
|
76 |
+
| 0.7283 | 9.0 | 189 | 0.9781 | 0.5452 |
|
77 |
+
| 0.6714 | 10.0 | 210 | 0.6957 | 0.7165 |
|
78 |
+
| 0.5872 | 11.0 | 231 | 0.6338 | 0.7352 |
|
79 |
+
| 0.4924 | 12.0 | 252 | 0.5824 | 0.7757 |
|
80 |
+
| 0.4441 | 13.0 | 273 | 0.7042 | 0.7040 |
|
81 |
+
| 0.4818 | 14.0 | 294 | 0.4985 | 0.8100 |
|
82 |
+
| 0.4477 | 15.0 | 315 | 0.5176 | 0.8100 |
|
83 |
+
| 0.387 | 16.0 | 336 | 0.5820 | 0.7757 |
|
84 |
+
| 0.378 | 17.0 | 357 | 0.4651 | 0.8287 |
|
85 |
+
| 0.3353 | 18.0 | 378 | 0.5163 | 0.8037 |
|
86 |
+
| 0.3651 | 19.0 | 399 | 0.3980 | 0.8474 |
|
87 |
+
| 0.312 | 20.0 | 420 | 0.4217 | 0.8629 |
|
88 |
+
| 0.2572 | 21.0 | 441 | 0.4610 | 0.8255 |
|
89 |
+
| 0.25 | 22.0 | 462 | 0.4421 | 0.8349 |
|
90 |
+
| 0.2325 | 23.0 | 483 | 0.4322 | 0.8193 |
|
91 |
+
| 0.2384 | 24.0 | 504 | 0.4207 | 0.8380 |
|
92 |
+
| 0.2295 | 25.0 | 525 | 0.4298 | 0.8411 |
|
93 |
+
| 0.4004 | 26.0 | 546 | 0.4976 | 0.8224 |
|
94 |
+
| 0.2136 | 27.0 | 567 | 0.3272 | 0.8723 |
|
95 |
+
| 0.1851 | 28.0 | 588 | 0.3004 | 0.8941 |
|
96 |
+
| 0.1513 | 29.0 | 609 | 0.3198 | 0.8785 |
|
97 |
+
| 0.2132 | 30.0 | 630 | 0.3403 | 0.8879 |
|
98 |
+
| 0.1704 | 31.0 | 651 | 0.4112 | 0.8692 |
|
99 |
+
| 0.1639 | 32.0 | 672 | 0.3038 | 0.8941 |
|
100 |
+
| 0.2028 | 33.0 | 693 | 0.6632 | 0.7601 |
|
101 |
+
| 0.256 | 34.0 | 714 | 0.3475 | 0.8785 |
|
102 |
+
| 0.142 | 35.0 | 735 | 0.2709 | 0.9034 |
|
103 |
+
| 0.1358 | 36.0 | 756 | 0.2745 | 0.9034 |
|
104 |
+
| 0.1543 | 37.0 | 777 | 0.3139 | 0.8816 |
|
105 |
+
| 0.1214 | 38.0 | 798 | 0.2518 | 0.9128 |
|
106 |
+
| 0.1291 | 39.0 | 819 | 0.4121 | 0.8598 |
|
107 |
+
| 0.1423 | 40.0 | 840 | 0.2469 | 0.9128 |
|
108 |
+
| 0.1071 | 41.0 | 861 | 0.2351 | 0.9252 |
|
109 |
+
| 0.1259 | 42.0 | 882 | 0.3639 | 0.8785 |
|
110 |
+
| 0.1114 | 43.0 | 903 | 0.4624 | 0.8567 |
|
111 |
+
| 0.123 | 44.0 | 924 | 0.3147 | 0.8941 |
|
112 |
+
| 0.0914 | 45.0 | 945 | 0.3599 | 0.8879 |
|
113 |
+
| 0.1154 | 46.0 | 966 | 0.2986 | 0.9003 |
|
114 |
+
| 0.1001 | 47.0 | 987 | 0.2688 | 0.9034 |
|
115 |
+
| 0.0959 | 48.0 | 1008 | 0.2358 | 0.9159 |
|
116 |
+
| 0.0935 | 49.0 | 1029 | 0.2724 | 0.9159 |
|
117 |
+
| 0.104 | 50.0 | 1050 | 0.3857 | 0.8847 |
|
118 |
+
| 0.1158 | 51.0 | 1071 | 0.3359 | 0.8910 |
|
119 |
+
| 0.0766 | 52.0 | 1092 | 0.3030 | 0.8941 |
|
120 |
+
| 0.1048 | 53.0 | 1113 | 0.2648 | 0.9097 |
|
121 |
+
| 0.1065 | 54.0 | 1134 | 0.2859 | 0.9128 |
|
122 |
+
| 0.0738 | 55.0 | 1155 | 0.3660 | 0.8910 |
|
123 |
+
| 0.078 | 56.0 | 1176 | 0.2843 | 0.9221 |
|
124 |
+
| 0.0755 | 57.0 | 1197 | 0.4503 | 0.8816 |
|
125 |
+
| 0.1193 | 58.0 | 1218 | 0.5647 | 0.8006 |
|
126 |
+
| 0.1014 | 59.0 | 1239 | 0.4011 | 0.8660 |
|
127 |
+
| 0.0557 | 60.0 | 1260 | 0.3376 | 0.8941 |
|
128 |
+
| 0.054 | 61.0 | 1281 | 0.2309 | 0.9283 |
|
129 |
+
| 0.0674 | 62.0 | 1302 | 0.3222 | 0.9003 |
|
130 |
+
| 0.0845 | 63.0 | 1323 | 0.2429 | 0.9221 |
|
131 |
+
| 0.0721 | 64.0 | 1344 | 0.2247 | 0.9283 |
|
132 |
+
| 0.0711 | 65.0 | 1365 | 0.3134 | 0.9097 |
|
133 |
+
| 0.0881 | 66.0 | 1386 | 0.2918 | 0.9159 |
|
134 |
+
| 0.0753 | 67.0 | 1407 | 0.2734 | 0.9065 |
|
135 |
+
| 0.059 | 68.0 | 1428 | 0.3353 | 0.8754 |
|
136 |
+
| 0.0814 | 69.0 | 1449 | 0.3093 | 0.9159 |
|
137 |
+
| 0.1317 | 70.0 | 1470 | 0.1641 | 0.9439 |
|
138 |
+
| 0.0539 | 71.0 | 1491 | 0.1988 | 0.9470 |
|
139 |
+
| 0.0572 | 72.0 | 1512 | 0.2493 | 0.9159 |
|
140 |
+
| 0.0322 | 73.0 | 1533 | 0.2045 | 0.9315 |
|
141 |
+
| 0.0473 | 74.0 | 1554 | 0.2380 | 0.9315 |
|
142 |
+
| 0.0478 | 75.0 | 1575 | 0.1687 | 0.9377 |
|
143 |
+
| 0.0554 | 76.0 | 1596 | 0.2121 | 0.9315 |
|
144 |
+
| 0.0444 | 77.0 | 1617 | 0.2172 | 0.9439 |
|
145 |
+
| 0.0808 | 78.0 | 1638 | 0.3581 | 0.8910 |
|
146 |
+
| 0.0522 | 79.0 | 1659 | 0.2155 | 0.9408 |
|
147 |
+
| 0.0402 | 80.0 | 1680 | 0.2204 | 0.9283 |
|
148 |
+
| 0.0387 | 81.0 | 1701 | 0.1438 | 0.9564 |
|
149 |
+
| 0.0294 | 82.0 | 1722 | 0.3094 | 0.9221 |
|
150 |
+
| 0.0449 | 83.0 | 1743 | 0.2850 | 0.9128 |
|
151 |
+
| 0.029 | 84.0 | 1764 | 0.3040 | 0.9128 |
|
152 |
+
| 0.0419 | 85.0 | 1785 | 0.1831 | 0.9439 |
|
153 |
+
| 0.0297 | 86.0 | 1806 | 0.2211 | 0.9221 |
|
154 |
+
| 0.0382 | 87.0 | 1827 | 0.2203 | 0.9346 |
|
155 |
+
| 0.0524 | 88.0 | 1848 | 0.2093 | 0.9377 |
|
156 |
+
| 0.0524 | 89.0 | 1869 | 0.2195 | 0.9252 |
|
157 |
+
| 0.0446 | 90.0 | 1890 | 0.2358 | 0.9377 |
|
158 |
+
| 0.0423 | 91.0 | 1911 | 0.2129 | 0.9283 |
|
159 |
+
| 0.0434 | 92.0 | 1932 | 0.2199 | 0.9315 |
|
160 |
+
| 0.0429 | 93.0 | 1953 | 0.1954 | 0.9470 |
|
161 |
+
| 0.0302 | 94.0 | 1974 | 0.1379 | 0.9564 |
|
162 |
+
| 0.046 | 95.0 | 1995 | 0.1609 | 0.9502 |
|
163 |
+
| 0.0247 | 96.0 | 2016 | 0.1978 | 0.9315 |
|
164 |
+
| 0.0289 | 97.0 | 2037 | 0.1872 | 0.9439 |
|
165 |
+
| 0.0452 | 98.0 | 2058 | 0.2132 | 0.9377 |
|
166 |
+
| 0.0308 | 99.0 | 2079 | 0.1592 | 0.9377 |
|
167 |
+
| 0.0274 | 100.0 | 2100 | 0.1718 | 0.9564 |
|
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:4231d77d7ff74d6e5380369e2e992256d142edd6db47d4c5a6481ceac65ee1f5
|
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/Jun18_02-17-30_DESKTOP-QA5IM1O/events.out.tfevents.1718648250.DESKTOP-QA5IM1O.7880.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:72c601bc383bc94c364f510f6e37792c54dc9b1ded3e825b8e0df7571df56fa6
|
3 |
+
size 58657
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4e56cc8d41adb02f92777b67950a689cbb55f486269739a686ccd89a4a6a9bba
|
3 |
+
size 5176
|