End of training
Browse files- README.md +175 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Jun17_22-49-38_DESKTOP-QA5IM1O/events.out.tfevents.1718635779.DESKTOP-QA5IM1O.19900.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_14
|
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.9470404984423676
|
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_14
|
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.1627
|
36 |
+
- Accuracy: 0.9470
|
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.0987 | 1.0 | 21 | 1.0847 | 0.4361 |
|
69 |
+
| 1.0683 | 2.0 | 42 | 1.0508 | 0.5171 |
|
70 |
+
| 1.0224 | 3.0 | 63 | 1.0214 | 0.4704 |
|
71 |
+
| 0.9556 | 4.0 | 84 | 0.9954 | 0.4891 |
|
72 |
+
| 0.9266 | 5.0 | 105 | 0.9473 | 0.5389 |
|
73 |
+
| 0.9168 | 6.0 | 126 | 0.8557 | 0.5919 |
|
74 |
+
| 0.7754 | 7.0 | 147 | 0.8971 | 0.5763 |
|
75 |
+
| 0.7383 | 8.0 | 168 | 0.6777 | 0.7695 |
|
76 |
+
| 0.6482 | 9.0 | 189 | 0.7117 | 0.7009 |
|
77 |
+
| 0.5976 | 10.0 | 210 | 0.5923 | 0.7757 |
|
78 |
+
| 0.6336 | 11.0 | 231 | 0.5497 | 0.7975 |
|
79 |
+
| 0.5193 | 12.0 | 252 | 0.6389 | 0.7383 |
|
80 |
+
| 0.4496 | 13.0 | 273 | 0.5799 | 0.7632 |
|
81 |
+
| 0.4089 | 14.0 | 294 | 0.5227 | 0.8006 |
|
82 |
+
| 0.3668 | 15.0 | 315 | 0.5907 | 0.7539 |
|
83 |
+
| 0.3644 | 16.0 | 336 | 0.7197 | 0.7414 |
|
84 |
+
| 0.3398 | 17.0 | 357 | 0.4430 | 0.8255 |
|
85 |
+
| 0.2927 | 18.0 | 378 | 0.5855 | 0.7819 |
|
86 |
+
| 0.3007 | 19.0 | 399 | 0.4378 | 0.8287 |
|
87 |
+
| 0.252 | 20.0 | 420 | 0.3540 | 0.8816 |
|
88 |
+
| 0.3041 | 21.0 | 441 | 0.5140 | 0.8162 |
|
89 |
+
| 0.2773 | 22.0 | 462 | 0.4456 | 0.8287 |
|
90 |
+
| 0.2474 | 23.0 | 483 | 0.4632 | 0.8100 |
|
91 |
+
| 0.2469 | 24.0 | 504 | 0.5080 | 0.8131 |
|
92 |
+
| 0.2201 | 25.0 | 525 | 0.3787 | 0.8660 |
|
93 |
+
| 0.167 | 26.0 | 546 | 0.3245 | 0.8723 |
|
94 |
+
| 0.1614 | 27.0 | 567 | 0.5479 | 0.8287 |
|
95 |
+
| 0.1585 | 28.0 | 588 | 0.3292 | 0.8598 |
|
96 |
+
| 0.1686 | 29.0 | 609 | 0.5806 | 0.7944 |
|
97 |
+
| 0.2157 | 30.0 | 630 | 0.4449 | 0.8193 |
|
98 |
+
| 0.1846 | 31.0 | 651 | 0.6371 | 0.7850 |
|
99 |
+
| 0.1614 | 32.0 | 672 | 0.3739 | 0.8754 |
|
100 |
+
| 0.1214 | 33.0 | 693 | 0.3230 | 0.8879 |
|
101 |
+
| 0.1294 | 34.0 | 714 | 0.4792 | 0.8442 |
|
102 |
+
| 0.112 | 35.0 | 735 | 0.3600 | 0.8847 |
|
103 |
+
| 0.1436 | 36.0 | 756 | 0.4445 | 0.8567 |
|
104 |
+
| 0.121 | 37.0 | 777 | 0.3601 | 0.8785 |
|
105 |
+
| 0.1524 | 38.0 | 798 | 0.4202 | 0.8567 |
|
106 |
+
| 0.1221 | 39.0 | 819 | 0.3454 | 0.8754 |
|
107 |
+
| 0.1397 | 40.0 | 840 | 0.4782 | 0.8536 |
|
108 |
+
| 0.1608 | 41.0 | 861 | 0.5481 | 0.8224 |
|
109 |
+
| 0.1207 | 42.0 | 882 | 0.3432 | 0.8660 |
|
110 |
+
| 0.1176 | 43.0 | 903 | 0.3480 | 0.8816 |
|
111 |
+
| 0.1072 | 44.0 | 924 | 0.3242 | 0.8785 |
|
112 |
+
| 0.0989 | 45.0 | 945 | 0.3556 | 0.8847 |
|
113 |
+
| 0.0946 | 46.0 | 966 | 0.3630 | 0.8723 |
|
114 |
+
| 0.1087 | 47.0 | 987 | 0.2972 | 0.8910 |
|
115 |
+
| 0.2532 | 48.0 | 1008 | 0.2845 | 0.9097 |
|
116 |
+
| 0.0912 | 49.0 | 1029 | 0.3424 | 0.8816 |
|
117 |
+
| 0.1181 | 50.0 | 1050 | 0.2204 | 0.9159 |
|
118 |
+
| 0.0925 | 51.0 | 1071 | 0.3311 | 0.8785 |
|
119 |
+
| 0.1092 | 52.0 | 1092 | 0.2445 | 0.9221 |
|
120 |
+
| 0.0924 | 53.0 | 1113 | 0.3297 | 0.8879 |
|
121 |
+
| 0.0871 | 54.0 | 1134 | 0.1846 | 0.9315 |
|
122 |
+
| 0.0799 | 55.0 | 1155 | 0.3486 | 0.9034 |
|
123 |
+
| 0.1778 | 56.0 | 1176 | 0.3292 | 0.8941 |
|
124 |
+
| 0.1039 | 57.0 | 1197 | 0.4066 | 0.8567 |
|
125 |
+
| 0.0732 | 58.0 | 1218 | 0.3245 | 0.9097 |
|
126 |
+
| 0.0642 | 59.0 | 1239 | 0.2939 | 0.9190 |
|
127 |
+
| 0.0811 | 60.0 | 1260 | 0.4293 | 0.8847 |
|
128 |
+
| 0.0679 | 61.0 | 1281 | 0.3204 | 0.8941 |
|
129 |
+
| 0.0563 | 62.0 | 1302 | 0.3244 | 0.9190 |
|
130 |
+
| 0.0868 | 63.0 | 1323 | 0.2359 | 0.9315 |
|
131 |
+
| 0.1067 | 64.0 | 1344 | 0.2720 | 0.9159 |
|
132 |
+
| 0.0696 | 65.0 | 1365 | 0.3054 | 0.9003 |
|
133 |
+
| 0.0586 | 66.0 | 1386 | 0.3045 | 0.9003 |
|
134 |
+
| 0.0612 | 67.0 | 1407 | 0.3321 | 0.8972 |
|
135 |
+
| 0.059 | 68.0 | 1428 | 0.3224 | 0.9003 |
|
136 |
+
| 0.0669 | 69.0 | 1449 | 0.3123 | 0.9003 |
|
137 |
+
| 0.056 | 70.0 | 1470 | 0.2288 | 0.9252 |
|
138 |
+
| 0.0517 | 71.0 | 1491 | 0.2590 | 0.9221 |
|
139 |
+
| 0.0496 | 72.0 | 1512 | 0.2533 | 0.9252 |
|
140 |
+
| 0.0462 | 73.0 | 1533 | 0.2943 | 0.9065 |
|
141 |
+
| 0.0457 | 74.0 | 1554 | 0.2280 | 0.9377 |
|
142 |
+
| 0.051 | 75.0 | 1575 | 0.3099 | 0.9128 |
|
143 |
+
| 0.0395 | 76.0 | 1596 | 0.2711 | 0.9221 |
|
144 |
+
| 0.0338 | 77.0 | 1617 | 0.1932 | 0.9408 |
|
145 |
+
| 0.0483 | 78.0 | 1638 | 0.1974 | 0.9533 |
|
146 |
+
| 0.0506 | 79.0 | 1659 | 0.2310 | 0.9283 |
|
147 |
+
| 0.0362 | 80.0 | 1680 | 0.2853 | 0.9252 |
|
148 |
+
| 0.0485 | 81.0 | 1701 | 0.1954 | 0.9408 |
|
149 |
+
| 0.0448 | 82.0 | 1722 | 0.2609 | 0.9252 |
|
150 |
+
| 0.0313 | 83.0 | 1743 | 0.2825 | 0.9190 |
|
151 |
+
| 0.0506 | 84.0 | 1764 | 0.3219 | 0.9065 |
|
152 |
+
| 0.0379 | 85.0 | 1785 | 0.2786 | 0.9221 |
|
153 |
+
| 0.0345 | 86.0 | 1806 | 0.3341 | 0.9065 |
|
154 |
+
| 0.019 | 87.0 | 1827 | 0.2731 | 0.9346 |
|
155 |
+
| 0.0438 | 88.0 | 1848 | 0.2449 | 0.9252 |
|
156 |
+
| 0.0321 | 89.0 | 1869 | 0.2719 | 0.9252 |
|
157 |
+
| 0.0478 | 90.0 | 1890 | 0.2214 | 0.9408 |
|
158 |
+
| 0.0598 | 91.0 | 1911 | 0.2174 | 0.9315 |
|
159 |
+
| 0.0372 | 92.0 | 1932 | 0.2075 | 0.9315 |
|
160 |
+
| 0.0422 | 93.0 | 1953 | 0.1781 | 0.9439 |
|
161 |
+
| 0.0324 | 94.0 | 1974 | 0.1692 | 0.9470 |
|
162 |
+
| 0.0325 | 95.0 | 1995 | 0.1999 | 0.9408 |
|
163 |
+
| 0.0369 | 96.0 | 2016 | 0.1929 | 0.9346 |
|
164 |
+
| 0.0309 | 97.0 | 2037 | 0.2310 | 0.9315 |
|
165 |
+
| 0.0347 | 98.0 | 2058 | 0.1347 | 0.9626 |
|
166 |
+
| 0.0445 | 99.0 | 2079 | 0.1967 | 0.9470 |
|
167 |
+
| 0.0337 | 100.0 | 2100 | 0.1627 | 0.9470 |
|
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:bb67bdc8d316ab1fc33e8320affb43a5200ddb3416c80ddc88c7b1fb9da760a2
|
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_22-49-38_DESKTOP-QA5IM1O/events.out.tfevents.1718635779.DESKTOP-QA5IM1O.19900.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4296128aadad907b7d9325dbbbd6311e921fe94838ffad48434470f39b2072f5
|
3 |
+
size 58657
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ee7b5eb69c28fdaf6acb488e7188447b18c87da190bb7b13ea3c851a2114f028
|
3 |
+
size 5176
|