talli96123 commited on
Commit
cbd7582
·
verified ·
1 Parent(s): 3efda28

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_1
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.7741935483870968
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_1
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.5238
36
+ - Accuracy: 0.7742
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
+ | 0.9291 | 1.0 | 617 | 1.0099 | 0.5613 |
69
+ | 1.0473 | 2.0 | 1234 | 1.2180 | 0.4323 |
70
+ | 0.7998 | 3.0 | 1851 | 1.0517 | 0.5548 |
71
+ | 1.21 | 4.0 | 2468 | 1.3208 | 0.4968 |
72
+ | 1.0814 | 5.0 | 3085 | 1.3423 | 0.5290 |
73
+ | 1.4674 | 6.0 | 3702 | 1.5941 | 0.5419 |
74
+ | 0.0633 | 7.0 | 4319 | 1.6778 | 0.5548 |
75
+ | 0.8345 | 8.0 | 4936 | 1.4949 | 0.5419 |
76
+ | 1.6888 | 9.0 | 5553 | 1.6784 | 0.4581 |
77
+ | 1.0997 | 10.0 | 6170 | 1.9437 | 0.5097 |
78
+ | 1.6235 | 11.0 | 6787 | 1.0796 | 0.6194 |
79
+ | 1.3159 | 12.0 | 7404 | 1.7363 | 0.5935 |
80
+ | 0.5513 | 13.0 | 8021 | 1.6918 | 0.6387 |
81
+ | 0.4463 | 14.0 | 8638 | 1.8225 | 0.5742 |
82
+ | 0.0455 | 15.0 | 9255 | 1.6463 | 0.6258 |
83
+ | 0.5906 | 16.0 | 9872 | 2.0199 | 0.6065 |
84
+ | 0.6373 | 17.0 | 10489 | 1.7233 | 0.6516 |
85
+ | 1.0226 | 18.0 | 11106 | 1.4137 | 0.6710 |
86
+ | 1.0566 | 19.0 | 11723 | 1.3841 | 0.7097 |
87
+ | 0.3117 | 20.0 | 12340 | 1.9925 | 0.6258 |
88
+ | 0.3041 | 21.0 | 12957 | 1.6802 | 0.6710 |
89
+ | 1.0978 | 22.0 | 13574 | 1.8269 | 0.6323 |
90
+ | 1.0631 | 23.0 | 14191 | 1.7333 | 0.6645 |
91
+ | 0.0039 | 24.0 | 14808 | 1.8621 | 0.6645 |
92
+ | 0.0018 | 25.0 | 15425 | 2.1279 | 0.6258 |
93
+ | 0.2373 | 26.0 | 16042 | 1.6896 | 0.7032 |
94
+ | 0.5993 | 27.0 | 16659 | 1.8411 | 0.6710 |
95
+ | 0.0021 | 28.0 | 17276 | 1.9047 | 0.6645 |
96
+ | 0.0401 | 29.0 | 17893 | 1.7597 | 0.7226 |
97
+ | 0.3687 | 30.0 | 18510 | 2.2599 | 0.6387 |
98
+ | 0.2841 | 31.0 | 19127 | 2.0735 | 0.6581 |
99
+ | 0.5707 | 32.0 | 19744 | 1.9316 | 0.6581 |
100
+ | 0.46 | 33.0 | 20361 | 2.1935 | 0.6452 |
101
+ | 0.7589 | 34.0 | 20978 | 1.5770 | 0.7355 |
102
+ | 0.0008 | 35.0 | 21595 | 1.7779 | 0.7226 |
103
+ | 0.0005 | 36.0 | 22212 | 2.0994 | 0.6774 |
104
+ | 0.0114 | 37.0 | 22829 | 1.7210 | 0.7161 |
105
+ | 0.4071 | 38.0 | 23446 | 2.2015 | 0.6839 |
106
+ | 0.0007 | 39.0 | 24063 | 1.8165 | 0.7161 |
107
+ | 0.0005 | 40.0 | 24680 | 1.8461 | 0.7032 |
108
+ | 0.0005 | 41.0 | 25297 | 1.9554 | 0.7032 |
109
+ | 0.7269 | 42.0 | 25914 | 1.6843 | 0.7355 |
110
+ | 0.0008 | 43.0 | 26531 | 1.9346 | 0.7032 |
111
+ | 0.5102 | 44.0 | 27148 | 1.7949 | 0.7161 |
112
+ | 1.1679 | 45.0 | 27765 | 1.7431 | 0.7484 |
113
+ | 0.151 | 46.0 | 28382 | 1.7899 | 0.7355 |
114
+ | 0.0004 | 47.0 | 28999 | 1.5098 | 0.7548 |
115
+ | 0.0003 | 48.0 | 29616 | 1.7388 | 0.7419 |
116
+ | 0.0003 | 49.0 | 30233 | 1.5232 | 0.7677 |
117
+ | 0.0003 | 50.0 | 30850 | 1.5238 | 0.7742 |
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:f7f6f02cc969202b849e61ab0870fad1543e82ee37250264a272686624398940
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/Jun07_15-50-42_DESKTOP-QA5IM1O/events.out.tfevents.1717746643.DESKTOP-QA5IM1O.20116.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bcdb531c443ae7dfcfb3591d148d9258d6f9e27b0fc92c82f8d1196e0b545d3
3
+ size 19511
runs/Jun07_15-53-59_DESKTOP-QA5IM1O/events.out.tfevents.1717746839.DESKTOP-QA5IM1O.18436.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4df994eb2947bec1afad0c9d44667ec4c6a1889288d6384737b1ea3185f667a
3
+ size 42200
runs/Jun07_16-45-23_DESKTOP-QA5IM1O/events.out.tfevents.1717749923.DESKTOP-QA5IM1O.12832.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cd606924f53a2458dc77516fa7f19d86030de4e3bd241f6e8ee08486c50e4a7
3
+ size 678217
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a560197d69e4119c8313f09ae38c0bd5ca3c30cf300c467b9a5669c783129dd
3
+ size 5112