nqvii commited on
Commit
2625215
·
verified ·
1 Parent(s): 117ed84

End of training Fold 2

Browse files
Files changed (5) hide show
  1. README.md +131 -0
  2. config.json +37 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +23 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
+ metrics:
10
+ - accuracy
11
+ - recall
12
+ model-index:
13
+ - name: fold_2
14
+ results:
15
+ - task:
16
+ name: Image Classification
17
+ type: image-classification
18
+ dataset:
19
+ name: imagefolder
20
+ type: imagefolder
21
+ config: default
22
+ split: None
23
+ args: default
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 0.9551724137931035
28
+ - name: Recall
29
+ type: recall
30
+ value: 0.9574229691876751
31
+ ---
32
+
33
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
34
+ should probably proofread and complete it, then remove this comment. -->
35
+
36
+ # fold_2
37
+
38
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
39
+ It achieves the following results on the evaluation set:
40
+ - Loss: 1.1210
41
+ - Accuracy: 0.9552
42
+ - F1 Score: 0.9586
43
+ - Recall: 0.9574
44
+
45
+ ## Model description
46
+
47
+ More information needed
48
+
49
+ ## Intended uses & limitations
50
+
51
+ More information needed
52
+
53
+ ## Training and evaluation data
54
+
55
+ More information needed
56
+
57
+ ## Training procedure
58
+
59
+ ### Training hyperparameters
60
+
61
+ The following hyperparameters were used during training:
62
+ - learning_rate: 1e-05
63
+ - train_batch_size: 64
64
+ - eval_batch_size: 64
65
+ - seed: 42
66
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
67
+ - lr_scheduler_type: cosine
68
+ - lr_scheduler_warmup_steps: 150
69
+ - num_epochs: 100
70
+ - label_smoothing_factor: 0.15
71
+
72
+ ### Training results
73
+
74
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score | Recall |
75
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:------:|
76
+ | 2.9670 | 1.0 | 19 | 2.9365 | 0.2310 | 0.2142 | 0.2367 |
77
+ | 2.8214 | 2.0 | 38 | 2.7318 | 0.3138 | 0.2945 | 0.3061 |
78
+ | 2.5025 | 3.0 | 57 | 2.4676 | 0.4621 | 0.4648 | 0.4657 |
79
+ | 2.1814 | 4.0 | 76 | 2.1569 | 0.6414 | 0.6613 | 0.6742 |
80
+ | 1.7422 | 5.0 | 95 | 1.8021 | 0.7966 | 0.8177 | 0.8209 |
81
+ | 1.4256 | 6.0 | 114 | 1.5250 | 0.8586 | 0.8736 | 0.8760 |
82
+ | 1.2174 | 7.0 | 133 | 1.3764 | 0.8966 | 0.9043 | 0.9064 |
83
+ | 1.1838 | 8.0 | 152 | 1.3033 | 0.9276 | 0.9313 | 0.9306 |
84
+ | 1.1151 | 9.0 | 171 | 1.2473 | 0.9345 | 0.9384 | 0.9391 |
85
+ | 1.0729 | 10.0 | 190 | 1.2358 | 0.9345 | 0.9381 | 0.9393 |
86
+ | 1.0619 | 11.0 | 209 | 1.2143 | 0.9379 | 0.9416 | 0.9428 |
87
+ | 1.0402 | 12.0 | 228 | 1.1999 | 0.9414 | 0.9450 | 0.9477 |
88
+ | 1.0234 | 13.0 | 247 | 1.2005 | 0.9448 | 0.9483 | 0.9526 |
89
+ | 0.9990 | 14.0 | 266 | 1.1818 | 0.9414 | 0.9443 | 0.9440 |
90
+ | 1.0022 | 15.0 | 285 | 1.1740 | 0.9276 | 0.9317 | 0.9306 |
91
+ | 1.0124 | 16.0 | 304 | 1.1663 | 0.9414 | 0.9452 | 0.9489 |
92
+ | 1.0106 | 17.0 | 323 | 1.1633 | 0.9414 | 0.9452 | 0.9489 |
93
+ | 0.9904 | 18.0 | 342 | 1.1482 | 0.9517 | 0.9547 | 0.9561 |
94
+ | 0.9845 | 19.0 | 361 | 1.1522 | 0.9483 | 0.9515 | 0.9524 |
95
+ | 0.9829 | 20.0 | 380 | 1.1542 | 0.9448 | 0.9479 | 0.9502 |
96
+ | 0.9808 | 21.0 | 399 | 1.1519 | 0.9414 | 0.9450 | 0.9453 |
97
+ | 0.9780 | 22.0 | 418 | 1.1522 | 0.9379 | 0.9421 | 0.9428 |
98
+ | 0.9700 | 23.0 | 437 | 1.1469 | 0.9448 | 0.9486 | 0.9488 |
99
+ | 0.9899 | 24.0 | 456 | 1.1524 | 0.9448 | 0.9483 | 0.9453 |
100
+ | 0.9710 | 25.0 | 475 | 1.1482 | 0.9414 | 0.9450 | 0.9477 |
101
+ | 0.9649 | 26.0 | 494 | 1.1427 | 0.9379 | 0.9415 | 0.9442 |
102
+ | 0.9655 | 27.0 | 513 | 1.1497 | 0.9379 | 0.9423 | 0.9465 |
103
+ | 0.9712 | 28.0 | 532 | 1.1389 | 0.9414 | 0.9453 | 0.9476 |
104
+ | 0.9629 | 29.0 | 551 | 1.1383 | 0.9379 | 0.9413 | 0.9416 |
105
+ | 0.9616 | 30.0 | 570 | 1.1358 | 0.9517 | 0.9547 | 0.9561 |
106
+ | 0.9715 | 31.0 | 589 | 1.1387 | 0.9448 | 0.9477 | 0.9489 |
107
+ | 0.9589 | 32.0 | 608 | 1.1361 | 0.9483 | 0.9528 | 0.9512 |
108
+ | 0.9800 | 33.0 | 627 | 1.1569 | 0.9414 | 0.9460 | 0.9502 |
109
+ | 0.9658 | 34.0 | 646 | 1.1392 | 0.9483 | 0.9530 | 0.9524 |
110
+ | 0.9648 | 35.0 | 665 | 1.1371 | 0.9448 | 0.9496 | 0.9475 |
111
+ | 0.9629 | 36.0 | 684 | 1.1359 | 0.9517 | 0.9555 | 0.9524 |
112
+ | 0.9599 | 37.0 | 703 | 1.1223 | 0.9517 | 0.9558 | 0.9562 |
113
+ | 0.9649 | 38.0 | 722 | 1.1210 | 0.9552 | 0.9586 | 0.9574 |
114
+ | 0.9641 | 39.0 | 741 | 1.1382 | 0.9517 | 0.9555 | 0.9573 |
115
+ | 0.9593 | 40.0 | 760 | 1.1376 | 0.9517 | 0.9555 | 0.9524 |
116
+ | 0.9619 | 41.0 | 779 | 1.1370 | 0.9448 | 0.9485 | 0.9502 |
117
+ | 0.9573 | 42.0 | 798 | 1.1355 | 0.9517 | 0.9558 | 0.9562 |
118
+ | 0.9648 | 43.0 | 817 | 1.1430 | 0.9448 | 0.9498 | 0.9536 |
119
+ | 0.9605 | 44.0 | 836 | 1.1383 | 0.9483 | 0.9528 | 0.9512 |
120
+ | 0.9601 | 45.0 | 855 | 1.1421 | 0.9414 | 0.9471 | 0.9475 |
121
+ | 0.9610 | 46.0 | 874 | 1.1446 | 0.9379 | 0.9431 | 0.9452 |
122
+ | 0.9625 | 47.0 | 893 | 1.1427 | 0.9414 | 0.9462 | 0.9488 |
123
+ | 0.9602 | 48.0 | 912 | 1.1389 | 0.9414 | 0.9460 | 0.9476 |
124
+
125
+
126
+ ### Framework versions
127
+
128
+ - Transformers 5.0.0
129
+ - Pytorch 2.10.0+cu128
130
+ - Datasets 5.0.0
131
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "dtype": "float32",
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "Bacterial Leaf Blight",
13
+ "1": "Brown Spot",
14
+ "2": "Healthy Leaf",
15
+ "3": "Tungro Virus"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "Bacterial Leaf Blight": "0",
22
+ "Brown Spot": "1",
23
+ "Healthy Leaf": "2",
24
+ "Tungro Virus": "3"
25
+ },
26
+ "layer_norm_eps": 1e-12,
27
+ "model_type": "vit",
28
+ "num_attention_heads": 12,
29
+ "num_channels": 3,
30
+ "num_hidden_layers": 12,
31
+ "patch_size": 16,
32
+ "pooler_act": "tanh",
33
+ "pooler_output_size": 768,
34
+ "qkv_bias": true,
35
+ "transformers_version": "5.0.0",
36
+ "use_cache": false
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5807037845aa976738305d08650cfe12f53012680c54e0d929927d00c3d86077
3
+ size 343230128
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6df290cd8100168510edd498622b6770da0fe6f90a7fb2cea56190baee7c04db
3
+ size 5201