MoaazTalab commited on
Commit
f866752
·
verified ·
1 Parent(s): 6d0c631

End of training

Browse files
Files changed (5) hide show
  1. README.md +91 -0
  2. config.json +34 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +23 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: ViT_B16
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # ViT_B16
21
+
22
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0999
25
+ - Accuracy: 0.9729
26
+ - Precision: 0.9874
27
+ - Recall: 0.9536
28
+ - F1: 0.9702
29
+ - Tp: 1562
30
+ - Tn: 1890
31
+ - Fp: 20
32
+ - Fn: 76
33
+
34
+ ## Model description
35
+
36
+ More information needed
37
+
38
+ ## Intended uses & limitations
39
+
40
+ More information needed
41
+
42
+ ## Training and evaluation data
43
+
44
+ More information needed
45
+
46
+ ## Training procedure
47
+
48
+ ### Training hyperparameters
49
+
50
+ The following hyperparameters were used during training:
51
+ - learning_rate: 5e-06
52
+ - train_batch_size: 64
53
+ - eval_batch_size: 64
54
+ - seed: 42
55
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
56
+ - lr_scheduler_type: linear
57
+ - lr_scheduler_warmup_steps: 276
58
+ - num_epochs: 5
59
+
60
+ ### Training results
61
+
62
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Tp | Tn | Fp | Fn |
63
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:----:|:----:|:---:|:---:|
64
+ | 0.6533 | 0.2477 | 55 | 0.5250 | 0.8470 | 0.8296 | 0.8413 | 0.8354 | 1378 | 1627 | 283 | 260 |
65
+ | 0.4246 | 0.4955 | 110 | 0.3119 | 0.9081 | 0.9379 | 0.8578 | 0.8960 | 1405 | 1817 | 93 | 233 |
66
+ | 0.2834 | 0.7432 | 165 | 0.2395 | 0.9194 | 0.9033 | 0.9243 | 0.9137 | 1514 | 1748 | 162 | 124 |
67
+ | 0.2425 | 0.9910 | 220 | 0.1882 | 0.9369 | 0.9348 | 0.9280 | 0.9314 | 1520 | 1804 | 106 | 118 |
68
+ | 0.2127 | 1.2387 | 275 | 0.1657 | 0.9501 | 0.9551 | 0.9359 | 0.9454 | 1533 | 1838 | 72 | 105 |
69
+ | 0.1973 | 1.4865 | 330 | 0.1446 | 0.9580 | 0.9709 | 0.9371 | 0.9537 | 1535 | 1864 | 46 | 103 |
70
+ | 0.1943 | 1.7342 | 385 | 0.1417 | 0.9628 | 0.9772 | 0.9414 | 0.9590 | 1542 | 1874 | 36 | 96 |
71
+ | 0.1934 | 1.9820 | 440 | 0.1173 | 0.9696 | 0.9904 | 0.9432 | 0.9662 | 1545 | 1895 | 15 | 93 |
72
+ | 0.1671 | 2.2297 | 495 | 0.1085 | 0.9707 | 0.9968 | 0.9396 | 0.9673 | 1539 | 1905 | 5 | 99 |
73
+ | 0.1755 | 2.4775 | 550 | 0.1140 | 0.9713 | 0.9898 | 0.9475 | 0.9682 | 1552 | 1894 | 16 | 86 |
74
+ | 0.1836 | 2.7252 | 605 | 0.1238 | 0.9659 | 0.9720 | 0.9536 | 0.9627 | 1562 | 1865 | 45 | 76 |
75
+ | 0.1664 | 2.9730 | 660 | 0.1199 | 0.9667 | 0.975 | 0.9524 | 0.9636 | 1560 | 1870 | 40 | 78 |
76
+ | 0.1693 | 3.2207 | 715 | 0.1189 | 0.9679 | 0.9745 | 0.9554 | 0.9649 | 1565 | 1869 | 41 | 73 |
77
+ | 0.1646 | 3.4685 | 770 | 0.1073 | 0.9701 | 0.9867 | 0.9481 | 0.9670 | 1553 | 1889 | 21 | 85 |
78
+ | 0.1585 | 3.7162 | 825 | 0.1076 | 0.9687 | 0.9805 | 0.9512 | 0.9656 | 1558 | 1879 | 31 | 80 |
79
+ | 0.1604 | 3.9640 | 880 | 0.1054 | 0.9729 | 0.9892 | 0.9518 | 0.9701 | 1559 | 1893 | 17 | 79 |
80
+ | 0.1701 | 4.2117 | 935 | 0.1046 | 0.9704 | 0.9806 | 0.9548 | 0.9675 | 1564 | 1879 | 31 | 74 |
81
+ | 0.1607 | 4.4595 | 990 | 0.1039 | 0.9713 | 0.9830 | 0.9542 | 0.9684 | 1563 | 1883 | 27 | 75 |
82
+ | 0.1631 | 4.7072 | 1045 | 0.1010 | 0.9727 | 0.9873 | 0.9530 | 0.9699 | 1561 | 1890 | 20 | 77 |
83
+ | 0.1483 | 4.9550 | 1100 | 0.0999 | 0.9729 | 0.9874 | 0.9536 | 0.9702 | 1562 | 1890 | 20 | 76 |
84
+
85
+
86
+ ### Framework versions
87
+
88
+ - Transformers 5.0.0
89
+ - Pytorch 2.10.0+cu128
90
+ - Datasets 4.0.0
91
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "0",
13
+ "1": "1"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "0": 0,
20
+ "1": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "pooler_act": "tanh",
29
+ "pooler_output_size": 768,
30
+ "problem_type": "single_label_classification",
31
+ "qkv_bias": true,
32
+ "transformers_version": "5.0.0",
33
+ "use_cache": false
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5912f7a0ebfabf8173e5485fc372b69e1781d29b02658feadda38cf2276bf844
3
+ size 343223968
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:a71514775b3b3b514b506b62b283dabe91dfe93d10ec853d85589ab2fd8ca69e
3
+ size 5137