Commit
•
bcef541
1
Parent(s):
ade51da
End of training
Browse files- README.md +175 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Jun16_15-04-58_DESKTOP-QA5IM1O/events.out.tfevents.1718521498.DESKTOP-QA5IM1O.11328.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_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.810126582278481
|
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_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.6404
|
36 |
+
- Accuracy: 0.8101
|
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.098 | 1.0 | 10 | 1.0916 | 0.4114 |
|
69 |
+
| 1.0825 | 2.0 | 20 | 1.0892 | 0.3861 |
|
70 |
+
| 1.0588 | 3.0 | 30 | 1.0802 | 0.3608 |
|
71 |
+
| 1.0298 | 4.0 | 40 | 1.0551 | 0.4430 |
|
72 |
+
| 0.981 | 5.0 | 50 | 1.0183 | 0.4620 |
|
73 |
+
| 0.9274 | 6.0 | 60 | 0.9723 | 0.5063 |
|
74 |
+
| 0.8655 | 7.0 | 70 | 0.9539 | 0.5443 |
|
75 |
+
| 0.8275 | 8.0 | 80 | 0.8944 | 0.5696 |
|
76 |
+
| 0.815 | 9.0 | 90 | 0.8859 | 0.6013 |
|
77 |
+
| 0.7543 | 10.0 | 100 | 0.9931 | 0.5253 |
|
78 |
+
| 0.7501 | 11.0 | 110 | 0.9048 | 0.5316 |
|
79 |
+
| 0.7036 | 12.0 | 120 | 0.8500 | 0.6329 |
|
80 |
+
| 0.6742 | 13.0 | 130 | 0.8228 | 0.6203 |
|
81 |
+
| 0.6331 | 14.0 | 140 | 0.8357 | 0.6076 |
|
82 |
+
| 0.5479 | 15.0 | 150 | 0.7833 | 0.6203 |
|
83 |
+
| 0.5342 | 16.0 | 160 | 0.9080 | 0.5633 |
|
84 |
+
| 0.5066 | 17.0 | 170 | 0.9448 | 0.5823 |
|
85 |
+
| 0.5077 | 18.0 | 180 | 0.7903 | 0.6772 |
|
86 |
+
| 0.3941 | 19.0 | 190 | 0.7109 | 0.7089 |
|
87 |
+
| 0.3837 | 20.0 | 200 | 0.7422 | 0.6899 |
|
88 |
+
| 0.3622 | 21.0 | 210 | 0.6693 | 0.7152 |
|
89 |
+
| 0.3725 | 22.0 | 220 | 0.7556 | 0.6709 |
|
90 |
+
| 0.3945 | 23.0 | 230 | 0.7561 | 0.6835 |
|
91 |
+
| 0.3325 | 24.0 | 240 | 0.8287 | 0.6203 |
|
92 |
+
| 0.3456 | 25.0 | 250 | 1.2373 | 0.5759 |
|
93 |
+
| 0.3829 | 26.0 | 260 | 0.8878 | 0.6013 |
|
94 |
+
| 0.3148 | 27.0 | 270 | 0.8503 | 0.7025 |
|
95 |
+
| 0.3543 | 28.0 | 280 | 0.6707 | 0.7152 |
|
96 |
+
| 0.2581 | 29.0 | 290 | 0.6273 | 0.7595 |
|
97 |
+
| 0.2237 | 30.0 | 300 | 0.5921 | 0.7722 |
|
98 |
+
| 0.1946 | 31.0 | 310 | 0.5894 | 0.7911 |
|
99 |
+
| 0.2369 | 32.0 | 320 | 0.7187 | 0.7278 |
|
100 |
+
| 0.2564 | 33.0 | 330 | 0.8258 | 0.7025 |
|
101 |
+
| 0.1967 | 34.0 | 340 | 0.5263 | 0.7911 |
|
102 |
+
| 0.1974 | 35.0 | 350 | 0.7137 | 0.7152 |
|
103 |
+
| 0.1656 | 36.0 | 360 | 0.6219 | 0.7722 |
|
104 |
+
| 0.1874 | 37.0 | 370 | 0.7103 | 0.7342 |
|
105 |
+
| 0.22 | 38.0 | 380 | 0.6303 | 0.7785 |
|
106 |
+
| 0.1705 | 39.0 | 390 | 0.6412 | 0.7658 |
|
107 |
+
| 0.1848 | 40.0 | 400 | 0.6148 | 0.7785 |
|
108 |
+
| 0.1567 | 41.0 | 410 | 0.5199 | 0.8101 |
|
109 |
+
| 0.113 | 42.0 | 420 | 0.7023 | 0.7595 |
|
110 |
+
| 0.1704 | 43.0 | 430 | 0.6339 | 0.7848 |
|
111 |
+
| 0.1829 | 44.0 | 440 | 0.5446 | 0.8165 |
|
112 |
+
| 0.1325 | 45.0 | 450 | 0.6403 | 0.7658 |
|
113 |
+
| 0.1375 | 46.0 | 460 | 0.6033 | 0.8101 |
|
114 |
+
| 0.1425 | 47.0 | 470 | 0.5715 | 0.8101 |
|
115 |
+
| 0.16 | 48.0 | 480 | 0.6529 | 0.7911 |
|
116 |
+
| 0.1862 | 49.0 | 490 | 0.7063 | 0.7468 |
|
117 |
+
| 0.1583 | 50.0 | 500 | 0.4872 | 0.7975 |
|
118 |
+
| 0.1141 | 51.0 | 510 | 0.7283 | 0.7089 |
|
119 |
+
| 0.1333 | 52.0 | 520 | 0.6197 | 0.8101 |
|
120 |
+
| 0.1062 | 53.0 | 530 | 0.5728 | 0.8291 |
|
121 |
+
| 0.1159 | 54.0 | 540 | 0.7551 | 0.7532 |
|
122 |
+
| 0.1152 | 55.0 | 550 | 0.7598 | 0.7532 |
|
123 |
+
| 0.1339 | 56.0 | 560 | 0.7102 | 0.7658 |
|
124 |
+
| 0.1244 | 57.0 | 570 | 0.5283 | 0.8038 |
|
125 |
+
| 0.1247 | 58.0 | 580 | 0.6756 | 0.7658 |
|
126 |
+
| 0.1269 | 59.0 | 590 | 0.7887 | 0.7468 |
|
127 |
+
| 0.1321 | 60.0 | 600 | 0.6724 | 0.7658 |
|
128 |
+
| 0.1267 | 61.0 | 610 | 0.6647 | 0.7911 |
|
129 |
+
| 0.1066 | 62.0 | 620 | 0.5684 | 0.8038 |
|
130 |
+
| 0.1058 | 63.0 | 630 | 0.6389 | 0.7848 |
|
131 |
+
| 0.0944 | 64.0 | 640 | 0.5810 | 0.7975 |
|
132 |
+
| 0.0751 | 65.0 | 650 | 0.8577 | 0.7215 |
|
133 |
+
| 0.1129 | 66.0 | 660 | 0.5848 | 0.8038 |
|
134 |
+
| 0.1448 | 67.0 | 670 | 0.5494 | 0.7911 |
|
135 |
+
| 0.0962 | 68.0 | 680 | 0.6846 | 0.7722 |
|
136 |
+
| 0.0766 | 69.0 | 690 | 0.5374 | 0.8101 |
|
137 |
+
| 0.0955 | 70.0 | 700 | 0.6121 | 0.7848 |
|
138 |
+
| 0.0917 | 71.0 | 710 | 0.6612 | 0.7848 |
|
139 |
+
| 0.0832 | 72.0 | 720 | 0.6200 | 0.7911 |
|
140 |
+
| 0.0686 | 73.0 | 730 | 0.6439 | 0.8038 |
|
141 |
+
| 0.082 | 74.0 | 740 | 0.5290 | 0.8291 |
|
142 |
+
| 0.0853 | 75.0 | 750 | 0.7542 | 0.7595 |
|
143 |
+
| 0.0789 | 76.0 | 760 | 0.6179 | 0.8165 |
|
144 |
+
| 0.1031 | 77.0 | 770 | 0.5439 | 0.8354 |
|
145 |
+
| 0.0724 | 78.0 | 780 | 0.6302 | 0.8165 |
|
146 |
+
| 0.0695 | 79.0 | 790 | 0.6113 | 0.7975 |
|
147 |
+
| 0.1089 | 80.0 | 800 | 0.7490 | 0.7532 |
|
148 |
+
| 0.0714 | 81.0 | 810 | 0.6824 | 0.8038 |
|
149 |
+
| 0.09 | 82.0 | 820 | 0.5732 | 0.8165 |
|
150 |
+
| 0.0962 | 83.0 | 830 | 0.6818 | 0.7785 |
|
151 |
+
| 0.0614 | 84.0 | 840 | 0.5182 | 0.8165 |
|
152 |
+
| 0.0685 | 85.0 | 850 | 0.6753 | 0.7532 |
|
153 |
+
| 0.0861 | 86.0 | 860 | 0.5541 | 0.8228 |
|
154 |
+
| 0.09 | 87.0 | 870 | 0.7829 | 0.7658 |
|
155 |
+
| 0.0565 | 88.0 | 880 | 0.7735 | 0.7595 |
|
156 |
+
| 0.0574 | 89.0 | 890 | 0.6467 | 0.8038 |
|
157 |
+
| 0.0431 | 90.0 | 900 | 0.6314 | 0.8038 |
|
158 |
+
| 0.091 | 91.0 | 910 | 0.6226 | 0.8038 |
|
159 |
+
| 0.055 | 92.0 | 920 | 0.7533 | 0.7785 |
|
160 |
+
| 0.0776 | 93.0 | 930 | 0.6564 | 0.7975 |
|
161 |
+
| 0.056 | 94.0 | 940 | 0.6182 | 0.8038 |
|
162 |
+
| 0.0683 | 95.0 | 950 | 0.5490 | 0.8228 |
|
163 |
+
| 0.0695 | 96.0 | 960 | 0.6460 | 0.7911 |
|
164 |
+
| 0.0464 | 97.0 | 970 | 0.6381 | 0.7975 |
|
165 |
+
| 0.0483 | 98.0 | 980 | 0.5261 | 0.8608 |
|
166 |
+
| 0.0487 | 99.0 | 990 | 0.5322 | 0.8291 |
|
167 |
+
| 0.0537 | 100.0 | 1000 | 0.6404 | 0.8101 |
|
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:968a1d5fce0a3e4611412a055b1763a0d7a0bc25fc50ac639c2527f69c7281d7
|
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/Jun16_15-04-58_DESKTOP-QA5IM1O/events.out.tfevents.1718521498.DESKTOP-QA5IM1O.11328.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b5f0dfa42f8021c7e9719271c66f1c951627e80c7eae99eed95be6c9b04740af
|
3 |
+
size 58570
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:015669dda81173e9b305f7234bdd3f4c9b80fa2255486fdfd7e4be5bec0557c4
|
3 |
+
size 5176
|