talli96123 commited on
Commit
9c69a9c
·
verified ·
1 Parent(s): ad74758

End of training

Browse files
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_4
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.7935483870967742
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_4
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.3588
36
+ - Accuracy: 0.7935
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: 1
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.0748 | 1.0 | 617 | 0.9992 | 0.5290 |
69
+ | 1.0075 | 2.0 | 1234 | 1.1657 | 0.4774 |
70
+ | 1.1387 | 3.0 | 1851 | 1.7110 | 0.3355 |
71
+ | 1.2272 | 4.0 | 2468 | 1.0090 | 0.5032 |
72
+ | 1.1872 | 5.0 | 3085 | 1.0040 | 0.5871 |
73
+ | 1.1936 | 6.0 | 3702 | 1.4017 | 0.5484 |
74
+ | 1.1596 | 7.0 | 4319 | 1.2642 | 0.5935 |
75
+ | 1.1932 | 8.0 | 4936 | 1.5967 | 0.5161 |
76
+ | 1.1215 | 9.0 | 5553 | 1.4047 | 0.6194 |
77
+ | 1.097 | 10.0 | 6170 | 1.2934 | 0.5806 |
78
+ | 1.0044 | 11.0 | 6787 | 1.3448 | 0.6323 |
79
+ | 0.8965 | 12.0 | 7404 | 1.3799 | 0.6645 |
80
+ | 0.9943 | 13.0 | 8021 | 1.3963 | 0.6581 |
81
+ | 0.9558 | 14.0 | 8638 | 1.7787 | 0.5742 |
82
+ | 0.8692 | 15.0 | 9255 | 1.4618 | 0.6516 |
83
+ | 0.8126 | 16.0 | 9872 | 1.2486 | 0.7097 |
84
+ | 0.8093 | 17.0 | 10489 | 1.1204 | 0.7226 |
85
+ | 0.6681 | 18.0 | 11106 | 1.7933 | 0.6452 |
86
+ | 0.5894 | 19.0 | 11723 | 1.2285 | 0.7355 |
87
+ | 0.4993 | 20.0 | 12340 | 1.7193 | 0.6516 |
88
+ | 0.4736 | 21.0 | 12957 | 1.7766 | 0.6774 |
89
+ | 0.4952 | 22.0 | 13574 | 1.8535 | 0.6516 |
90
+ | 0.5312 | 23.0 | 14191 | 1.7282 | 0.6774 |
91
+ | 0.3942 | 24.0 | 14808 | 1.9881 | 0.6516 |
92
+ | 0.4166 | 25.0 | 15425 | 1.6196 | 0.6903 |
93
+ | 0.4656 | 26.0 | 16042 | 1.6721 | 0.6774 |
94
+ | 0.326 | 27.0 | 16659 | 2.1897 | 0.6387 |
95
+ | 0.3692 | 28.0 | 17276 | 1.6734 | 0.6968 |
96
+ | 0.3956 | 29.0 | 17893 | 1.6272 | 0.7290 |
97
+ | 0.3108 | 30.0 | 18510 | 1.6487 | 0.7548 |
98
+ | 0.2318 | 31.0 | 19127 | 1.8501 | 0.6968 |
99
+ | 0.3835 | 32.0 | 19744 | 1.7877 | 0.6774 |
100
+ | 0.3779 | 33.0 | 20361 | 1.4747 | 0.7355 |
101
+ | 0.2913 | 34.0 | 20978 | 1.6122 | 0.7355 |
102
+ | 0.275 | 35.0 | 21595 | 1.9130 | 0.6839 |
103
+ | 0.2483 | 36.0 | 22212 | 1.9305 | 0.6839 |
104
+ | 0.2389 | 37.0 | 22829 | 1.5973 | 0.7419 |
105
+ | 0.3375 | 38.0 | 23446 | 1.2684 | 0.7742 |
106
+ | 0.1867 | 39.0 | 24063 | 1.7777 | 0.7484 |
107
+ | 0.2066 | 40.0 | 24680 | 1.5134 | 0.7613 |
108
+ | 0.2555 | 41.0 | 25297 | 1.9315 | 0.6839 |
109
+ | 0.1508 | 42.0 | 25914 | 1.6165 | 0.7484 |
110
+ | 0.1262 | 43.0 | 26531 | 1.8465 | 0.7290 |
111
+ | 0.1113 | 44.0 | 27148 | 2.0645 | 0.7161 |
112
+ | 0.1692 | 45.0 | 27765 | 1.7539 | 0.7484 |
113
+ | 0.0973 | 46.0 | 28382 | 2.0104 | 0.7161 |
114
+ | 0.166 | 47.0 | 28999 | 1.6435 | 0.7742 |
115
+ | 0.1476 | 48.0 | 29616 | 1.6865 | 0.7677 |
116
+ | 0.1616 | 49.0 | 30233 | 2.1759 | 0.6903 |
117
+ | 0.1715 | 50.0 | 30850 | 1.3588 | 0.7935 |
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:a225522a6ebe8c8263a1e6e50b0e3708983422a5400583f1995836a71fa6d8fa
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/Jun09_00-14-13_DESKTOP-QA5IM1O/events.out.tfevents.1717863254.DESKTOP-QA5IM1O.7160.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1741e394a2b5c4c1155101ce2af05f401776186a92120dce19cc0269797895b
3
+ size 32189
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74225275c6d0a92dc8a1a84e01625e8691fe969ee1c541bccf022ac8ae68c77b
3
+ size 5112