talli96123
commited on
Commit
•
7e3aaab
1
Parent(s):
ea3b6e4
End of training
Browse files- README.md +125 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Jun08_18-25-13_DESKTOP-QA5IM1O/events.out.tfevents.1717842313.DESKTOP-QA5IM1O.18936.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_V_0_3
|
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.7161290322580646
|
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_V_0_3
|
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: 1.1160
|
36 |
+
- Accuracy: 0.7161
|
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: 16
|
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: 50
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
67 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
68 |
+
| 1.09 | 1.0 | 39 | 1.0822 | 0.4710 |
|
69 |
+
| 1.0215 | 2.0 | 78 | 0.9976 | 0.5419 |
|
70 |
+
| 0.9299 | 3.0 | 117 | 0.9265 | 0.5548 |
|
71 |
+
| 0.8981 | 4.0 | 156 | 0.8926 | 0.5935 |
|
72 |
+
| 0.8256 | 5.0 | 195 | 0.9415 | 0.5548 |
|
73 |
+
| 0.7763 | 6.0 | 234 | 0.9029 | 0.5935 |
|
74 |
+
| 0.6964 | 7.0 | 273 | 0.8402 | 0.5935 |
|
75 |
+
| 0.678 | 8.0 | 312 | 0.8272 | 0.6 |
|
76 |
+
| 0.6114 | 9.0 | 351 | 0.9511 | 0.5935 |
|
77 |
+
| 0.5694 | 10.0 | 390 | 0.7493 | 0.6645 |
|
78 |
+
| 0.5335 | 11.0 | 429 | 0.8895 | 0.6452 |
|
79 |
+
| 0.4437 | 12.0 | 468 | 0.7902 | 0.6774 |
|
80 |
+
| 0.4836 | 13.0 | 507 | 0.8206 | 0.6387 |
|
81 |
+
| 0.4167 | 14.0 | 546 | 0.8594 | 0.6710 |
|
82 |
+
| 0.3775 | 15.0 | 585 | 0.8840 | 0.6645 |
|
83 |
+
| 0.3132 | 16.0 | 624 | 0.7669 | 0.6710 |
|
84 |
+
| 0.3099 | 17.0 | 663 | 0.8012 | 0.6903 |
|
85 |
+
| 0.307 | 18.0 | 702 | 0.8098 | 0.6839 |
|
86 |
+
| 0.2905 | 19.0 | 741 | 0.7889 | 0.7226 |
|
87 |
+
| 0.2854 | 20.0 | 780 | 0.8555 | 0.6968 |
|
88 |
+
| 0.1875 | 21.0 | 819 | 0.8501 | 0.7097 |
|
89 |
+
| 0.2485 | 22.0 | 858 | 0.8381 | 0.7419 |
|
90 |
+
| 0.22 | 23.0 | 897 | 1.0090 | 0.6774 |
|
91 |
+
| 0.2283 | 24.0 | 936 | 0.9999 | 0.6323 |
|
92 |
+
| 0.1934 | 25.0 | 975 | 0.9455 | 0.7097 |
|
93 |
+
| 0.1841 | 26.0 | 1014 | 0.7737 | 0.7484 |
|
94 |
+
| 0.1711 | 27.0 | 1053 | 0.8872 | 0.7355 |
|
95 |
+
| 0.1579 | 28.0 | 1092 | 1.0535 | 0.6903 |
|
96 |
+
| 0.176 | 29.0 | 1131 | 0.9783 | 0.6968 |
|
97 |
+
| 0.2307 | 30.0 | 1170 | 0.8435 | 0.7226 |
|
98 |
+
| 0.1379 | 31.0 | 1209 | 0.9598 | 0.7097 |
|
99 |
+
| 0.1181 | 32.0 | 1248 | 0.9325 | 0.7419 |
|
100 |
+
| 0.1529 | 33.0 | 1287 | 1.0973 | 0.6839 |
|
101 |
+
| 0.1252 | 34.0 | 1326 | 0.8859 | 0.7484 |
|
102 |
+
| 0.1005 | 35.0 | 1365 | 0.9212 | 0.7613 |
|
103 |
+
| 0.1446 | 36.0 | 1404 | 0.7894 | 0.7806 |
|
104 |
+
| 0.0776 | 37.0 | 1443 | 0.9259 | 0.7484 |
|
105 |
+
| 0.1067 | 38.0 | 1482 | 1.0468 | 0.7226 |
|
106 |
+
| 0.0983 | 39.0 | 1521 | 0.9468 | 0.7355 |
|
107 |
+
| 0.1155 | 40.0 | 1560 | 1.0564 | 0.7226 |
|
108 |
+
| 0.1037 | 41.0 | 1599 | 1.0964 | 0.6968 |
|
109 |
+
| 0.102 | 42.0 | 1638 | 0.9690 | 0.7290 |
|
110 |
+
| 0.0904 | 43.0 | 1677 | 0.9662 | 0.7419 |
|
111 |
+
| 0.0577 | 44.0 | 1716 | 1.2786 | 0.6645 |
|
112 |
+
| 0.1086 | 45.0 | 1755 | 1.0993 | 0.7226 |
|
113 |
+
| 0.0698 | 46.0 | 1794 | 1.1927 | 0.7032 |
|
114 |
+
| 0.0532 | 47.0 | 1833 | 0.9616 | 0.7484 |
|
115 |
+
| 0.0705 | 48.0 | 1872 | 0.7846 | 0.7806 |
|
116 |
+
| 0.0611 | 49.0 | 1911 | 0.9952 | 0.7290 |
|
117 |
+
| 0.0769 | 50.0 | 1950 | 1.1160 | 0.7161 |
|
118 |
+
|
119 |
+
|
120 |
+
### Framework versions
|
121 |
+
|
122 |
+
- Transformers 4.41.2
|
123 |
+
- Pytorch 2.3.0
|
124 |
+
- Datasets 2.19.2
|
125 |
+
- 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:03e5f5b17b7864efd591c50a2dd122f95d97059b24bced7366cc6a178a20ab3d
|
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/Jun08_18-25-13_DESKTOP-QA5IM1O/events.out.tfevents.1717842313.DESKTOP-QA5IM1O.18936.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:882cb310ec34b3aa6654f3aeab59e9269251f1ea5c6e219d4526e183f7b19be8
|
3 |
+
size 31914
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c748b843961071cc0f97f4b390cfdb0a30685de1ff65c26d8532b6d9a99b7db0
|
3 |
+
size 5112
|