Commit
•
93b6300
1
Parent(s):
cbf22ad
End of training
Browse files- README.md +175 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Jun16_14-26-41_DESKTOP-QA5IM1O/events.out.tfevents.1718519201.DESKTOP-QA5IM1O.20020.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_6
|
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.8164556962025317
|
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_6
|
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.5432
|
36 |
+
- Accuracy: 0.8165
|
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.1096 | 1.0 | 10 | 1.1024 | 0.3291 |
|
69 |
+
| 1.0818 | 2.0 | 20 | 1.0876 | 0.4241 |
|
70 |
+
| 1.0619 | 3.0 | 30 | 1.0912 | 0.3987 |
|
71 |
+
| 1.0289 | 4.0 | 40 | 1.0680 | 0.4494 |
|
72 |
+
| 1.0023 | 5.0 | 50 | 1.0357 | 0.4241 |
|
73 |
+
| 0.9453 | 6.0 | 60 | 1.0095 | 0.4937 |
|
74 |
+
| 0.8856 | 7.0 | 70 | 0.9563 | 0.5443 |
|
75 |
+
| 0.8301 | 8.0 | 80 | 0.9307 | 0.5506 |
|
76 |
+
| 0.7855 | 9.0 | 90 | 0.9109 | 0.5696 |
|
77 |
+
| 0.7062 | 10.0 | 100 | 0.8383 | 0.5949 |
|
78 |
+
| 0.6655 | 11.0 | 110 | 0.7534 | 0.7089 |
|
79 |
+
| 0.617 | 12.0 | 120 | 0.8160 | 0.6646 |
|
80 |
+
| 0.5821 | 13.0 | 130 | 0.7361 | 0.6962 |
|
81 |
+
| 0.5097 | 14.0 | 140 | 0.7594 | 0.6899 |
|
82 |
+
| 0.4944 | 15.0 | 150 | 0.7679 | 0.6709 |
|
83 |
+
| 0.4787 | 16.0 | 160 | 0.6902 | 0.7595 |
|
84 |
+
| 0.4234 | 17.0 | 170 | 0.8019 | 0.6835 |
|
85 |
+
| 0.451 | 18.0 | 180 | 0.6534 | 0.7532 |
|
86 |
+
| 0.4402 | 19.0 | 190 | 0.6980 | 0.7152 |
|
87 |
+
| 0.395 | 20.0 | 200 | 0.7276 | 0.6962 |
|
88 |
+
| 0.3548 | 21.0 | 210 | 0.7002 | 0.6899 |
|
89 |
+
| 0.3231 | 22.0 | 220 | 0.7080 | 0.7089 |
|
90 |
+
| 0.2844 | 23.0 | 230 | 0.6934 | 0.7152 |
|
91 |
+
| 0.2909 | 24.0 | 240 | 0.6465 | 0.7468 |
|
92 |
+
| 0.3433 | 25.0 | 250 | 0.5959 | 0.7595 |
|
93 |
+
| 0.2718 | 26.0 | 260 | 0.6787 | 0.7405 |
|
94 |
+
| 0.2516 | 27.0 | 270 | 0.5951 | 0.8165 |
|
95 |
+
| 0.2717 | 28.0 | 280 | 0.6355 | 0.7405 |
|
96 |
+
| 0.2509 | 29.0 | 290 | 0.6980 | 0.6899 |
|
97 |
+
| 0.2407 | 30.0 | 300 | 0.5824 | 0.7722 |
|
98 |
+
| 0.2444 | 31.0 | 310 | 0.6241 | 0.7342 |
|
99 |
+
| 0.2153 | 32.0 | 320 | 0.5982 | 0.7658 |
|
100 |
+
| 0.2294 | 33.0 | 330 | 0.6701 | 0.7532 |
|
101 |
+
| 0.1901 | 34.0 | 340 | 0.8116 | 0.6772 |
|
102 |
+
| 0.252 | 35.0 | 350 | 0.5960 | 0.7848 |
|
103 |
+
| 0.1761 | 36.0 | 360 | 0.5993 | 0.7785 |
|
104 |
+
| 0.1892 | 37.0 | 370 | 0.6046 | 0.7785 |
|
105 |
+
| 0.15 | 38.0 | 380 | 0.6442 | 0.8038 |
|
106 |
+
| 0.1705 | 39.0 | 390 | 0.7802 | 0.7152 |
|
107 |
+
| 0.2171 | 40.0 | 400 | 0.7078 | 0.7278 |
|
108 |
+
| 0.2233 | 41.0 | 410 | 0.5835 | 0.7785 |
|
109 |
+
| 0.2252 | 42.0 | 420 | 0.7923 | 0.7089 |
|
110 |
+
| 0.2304 | 43.0 | 430 | 0.6414 | 0.7342 |
|
111 |
+
| 0.231 | 44.0 | 440 | 0.5405 | 0.7911 |
|
112 |
+
| 0.1573 | 45.0 | 450 | 0.7065 | 0.7468 |
|
113 |
+
| 0.1203 | 46.0 | 460 | 0.7642 | 0.7278 |
|
114 |
+
| 0.1712 | 47.0 | 470 | 0.6204 | 0.7658 |
|
115 |
+
| 0.1406 | 48.0 | 480 | 0.6591 | 0.7658 |
|
116 |
+
| 0.1877 | 49.0 | 490 | 0.7968 | 0.7152 |
|
117 |
+
| 0.1457 | 50.0 | 500 | 0.6790 | 0.7658 |
|
118 |
+
| 0.1391 | 51.0 | 510 | 0.6116 | 0.7658 |
|
119 |
+
| 0.1508 | 52.0 | 520 | 0.7331 | 0.7722 |
|
120 |
+
| 0.1468 | 53.0 | 530 | 0.6900 | 0.7722 |
|
121 |
+
| 0.13 | 54.0 | 540 | 0.5799 | 0.7975 |
|
122 |
+
| 0.1078 | 55.0 | 550 | 0.6568 | 0.7785 |
|
123 |
+
| 0.0945 | 56.0 | 560 | 0.6073 | 0.8101 |
|
124 |
+
| 0.1358 | 57.0 | 570 | 0.4966 | 0.8291 |
|
125 |
+
| 0.1605 | 58.0 | 580 | 0.6678 | 0.7722 |
|
126 |
+
| 0.1673 | 59.0 | 590 | 0.5742 | 0.7975 |
|
127 |
+
| 0.1112 | 60.0 | 600 | 0.6181 | 0.8038 |
|
128 |
+
| 0.1144 | 61.0 | 610 | 0.5031 | 0.8354 |
|
129 |
+
| 0.1154 | 62.0 | 620 | 0.6085 | 0.8038 |
|
130 |
+
| 0.1141 | 63.0 | 630 | 0.4470 | 0.8734 |
|
131 |
+
| 0.1201 | 64.0 | 640 | 0.5089 | 0.8291 |
|
132 |
+
| 0.0871 | 65.0 | 650 | 0.5447 | 0.8481 |
|
133 |
+
| 0.0939 | 66.0 | 660 | 0.5763 | 0.7911 |
|
134 |
+
| 0.1098 | 67.0 | 670 | 0.6186 | 0.7911 |
|
135 |
+
| 0.1062 | 68.0 | 680 | 0.6349 | 0.8038 |
|
136 |
+
| 0.0755 | 69.0 | 690 | 0.8513 | 0.7278 |
|
137 |
+
| 0.1257 | 70.0 | 700 | 0.6852 | 0.7911 |
|
138 |
+
| 0.0651 | 71.0 | 710 | 0.7073 | 0.7722 |
|
139 |
+
| 0.1024 | 72.0 | 720 | 0.5794 | 0.8354 |
|
140 |
+
| 0.0887 | 73.0 | 730 | 0.7889 | 0.7278 |
|
141 |
+
| 0.1014 | 74.0 | 740 | 0.5774 | 0.8228 |
|
142 |
+
| 0.0986 | 75.0 | 750 | 0.6864 | 0.8038 |
|
143 |
+
| 0.098 | 76.0 | 760 | 0.4825 | 0.8354 |
|
144 |
+
| 0.1049 | 77.0 | 770 | 0.7881 | 0.7658 |
|
145 |
+
| 0.0997 | 78.0 | 780 | 0.5239 | 0.8418 |
|
146 |
+
| 0.0939 | 79.0 | 790 | 0.6434 | 0.8228 |
|
147 |
+
| 0.0851 | 80.0 | 800 | 0.5087 | 0.8291 |
|
148 |
+
| 0.0683 | 81.0 | 810 | 0.6410 | 0.7658 |
|
149 |
+
| 0.084 | 82.0 | 820 | 0.6120 | 0.8101 |
|
150 |
+
| 0.0717 | 83.0 | 830 | 0.6231 | 0.8038 |
|
151 |
+
| 0.0811 | 84.0 | 840 | 0.4338 | 0.8544 |
|
152 |
+
| 0.066 | 85.0 | 850 | 0.4633 | 0.8544 |
|
153 |
+
| 0.0746 | 86.0 | 860 | 0.6960 | 0.7595 |
|
154 |
+
| 0.0864 | 87.0 | 870 | 0.6154 | 0.8101 |
|
155 |
+
| 0.0432 | 88.0 | 880 | 0.5864 | 0.8228 |
|
156 |
+
| 0.0644 | 89.0 | 890 | 0.6045 | 0.7911 |
|
157 |
+
| 0.0644 | 90.0 | 900 | 0.5924 | 0.8101 |
|
158 |
+
| 0.0976 | 91.0 | 910 | 0.6515 | 0.8165 |
|
159 |
+
| 0.0593 | 92.0 | 920 | 0.5491 | 0.8101 |
|
160 |
+
| 0.0884 | 93.0 | 930 | 0.6618 | 0.8101 |
|
161 |
+
| 0.0752 | 94.0 | 940 | 0.5612 | 0.8165 |
|
162 |
+
| 0.0423 | 95.0 | 950 | 0.5914 | 0.8101 |
|
163 |
+
| 0.0685 | 96.0 | 960 | 0.5502 | 0.8291 |
|
164 |
+
| 0.0425 | 97.0 | 970 | 0.6455 | 0.7975 |
|
165 |
+
| 0.0639 | 98.0 | 980 | 0.5402 | 0.8291 |
|
166 |
+
| 0.056 | 99.0 | 990 | 0.5159 | 0.8481 |
|
167 |
+
| 0.0663 | 100.0 | 1000 | 0.5432 | 0.8165 |
|
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:ca4ec9a6711412b0f7337f993495fceb88ebea676e5891f72f34b6d290e2c138
|
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_14-26-41_DESKTOP-QA5IM1O/events.out.tfevents.1718519201.DESKTOP-QA5IM1O.20020.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:176fd45c8197a4d0eb367cf0e6d6b0a698355d8b1593f650b8248661eab54b23
|
3 |
+
size 58570
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47ae78613ca193cfbaea0ef2c0e2709aea1ca8944b49094e43350ff1078f4b6b
|
3 |
+
size 5176
|