KiViDrag commited on
Commit
8cf2f92
·
verified ·
1 Parent(s): c1f3aba

End of training

Browse files
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - medmnist-v2
9
+ metrics:
10
+ - accuracy
11
+ - f1
12
+ model-index:
13
+ - name: ViT_breastmnist_std_30
14
+ results:
15
+ - task:
16
+ name: Image Classification
17
+ type: image-classification
18
+ dataset:
19
+ name: medmnist-v2
20
+ type: medmnist-v2
21
+ config: breastmnist
22
+ split: validation
23
+ args: breastmnist
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 0.8269230769230769
28
+ - name: F1
29
+ type: f1
30
+ value: 0.7314974182444062
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
+ # ViT_breastmnist_std_30
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 medmnist-v2 dataset.
39
+ It achieves the following results on the evaluation set:
40
+ - Loss: 0.3936
41
+ - Accuracy: 0.8269
42
+ - F1: 0.7315
43
+
44
+ ## Model description
45
+
46
+ More information needed
47
+
48
+ ## Intended uses & limitations
49
+
50
+ More information needed
51
+
52
+ ## Training and evaluation data
53
+
54
+ More information needed
55
+
56
+ ## Training procedure
57
+
58
+ ### Training hyperparameters
59
+
60
+ The following hyperparameters were used during training:
61
+ - learning_rate: 2e-05
62
+ - train_batch_size: 64
63
+ - eval_batch_size: 16
64
+ - seed: 42
65
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
66
+ - lr_scheduler_type: linear
67
+ - num_epochs: 10
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
72
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|
73
+ | 0.5034 | 0.2597 | 20 | 0.4719 | 0.7436 | 0.4708 |
74
+ | 0.4414 | 0.5195 | 40 | 0.4457 | 0.7821 | 0.6400 |
75
+ | 0.3762 | 0.7792 | 60 | 0.4212 | 0.8205 | 0.7248 |
76
+ | 0.4059 | 1.0390 | 80 | 0.3988 | 0.8462 | 0.7641 |
77
+ | 0.3249 | 1.2987 | 100 | 0.3829 | 0.8333 | 0.7606 |
78
+ | 0.2991 | 1.5584 | 120 | 0.4080 | 0.8462 | 0.7743 |
79
+ | 0.2948 | 1.8182 | 140 | 0.3932 | 0.8462 | 0.7833 |
80
+ | 0.2667 | 2.0779 | 160 | 0.4388 | 0.8333 | 0.7502 |
81
+ | 0.2049 | 2.3377 | 180 | 0.4047 | 0.8333 | 0.7606 |
82
+ | 0.1639 | 2.5974 | 200 | 0.4301 | 0.8333 | 0.7502 |
83
+ | 0.1732 | 2.8571 | 220 | 0.4028 | 0.8333 | 0.7606 |
84
+ | 0.1138 | 3.1169 | 240 | 0.3755 | 0.8718 | 0.8194 |
85
+ | 0.1099 | 3.3766 | 260 | 0.4019 | 0.8590 | 0.7886 |
86
+ | 0.1285 | 3.6364 | 280 | 0.3739 | 0.8590 | 0.7974 |
87
+ | 0.1265 | 3.8961 | 300 | 0.3714 | 0.8590 | 0.8051 |
88
+ | 0.0735 | 4.1558 | 320 | 0.3820 | 0.8718 | 0.8194 |
89
+ | 0.0515 | 4.4156 | 340 | 0.3910 | 0.8462 | 0.7833 |
90
+ | 0.0577 | 4.6753 | 360 | 0.3984 | 0.8462 | 0.7833 |
91
+ | 0.0584 | 4.9351 | 380 | 0.4314 | 0.8590 | 0.7974 |
92
+ | 0.0241 | 5.1948 | 400 | 0.4040 | 0.8718 | 0.8194 |
93
+ | 0.015 | 5.4545 | 420 | 0.4201 | 0.8718 | 0.8194 |
94
+ | 0.023 | 5.7143 | 440 | 0.4276 | 0.8718 | 0.8194 |
95
+ | 0.0254 | 5.9740 | 460 | 0.4271 | 0.8846 | 0.8342 |
96
+ | 0.0086 | 6.2338 | 480 | 0.4149 | 0.8718 | 0.8194 |
97
+ | 0.012 | 6.4935 | 500 | 0.4738 | 0.8718 | 0.8120 |
98
+ | 0.0052 | 6.7532 | 520 | 0.4314 | 0.8846 | 0.8342 |
99
+ | 0.0123 | 7.0130 | 540 | 0.4363 | 0.8718 | 0.8194 |
100
+ | 0.0026 | 7.2727 | 560 | 0.4477 | 0.8846 | 0.8342 |
101
+ | 0.0018 | 7.5325 | 580 | 0.4447 | 0.8718 | 0.8194 |
102
+ | 0.0024 | 7.7922 | 600 | 0.4588 | 0.8718 | 0.8194 |
103
+ | 0.0076 | 8.0519 | 620 | 0.4517 | 0.8718 | 0.8194 |
104
+ | 0.0013 | 8.3117 | 640 | 0.4535 | 0.8718 | 0.8194 |
105
+ | 0.0012 | 8.5714 | 660 | 0.4479 | 0.8846 | 0.8342 |
106
+ | 0.001 | 8.8312 | 680 | 0.4477 | 0.8846 | 0.8342 |
107
+ | 0.0015 | 9.0909 | 700 | 0.4509 | 0.8846 | 0.8342 |
108
+ | 0.001 | 9.3506 | 720 | 0.4529 | 0.8846 | 0.8342 |
109
+ | 0.0009 | 9.6104 | 740 | 0.4569 | 0.8846 | 0.8342 |
110
+ | 0.001 | 9.8701 | 760 | 0.4563 | 0.8846 | 0.8342 |
111
+
112
+
113
+ ### Framework versions
114
+
115
+ - Transformers 4.45.1
116
+ - Pytorch 2.4.0
117
+ - Datasets 3.0.1
118
+ - Tokenizers 0.20.0
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
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": "malignant",
13
+ "1": "normal, benign"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "malignant": "0",
20
+ "normal, benign": "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
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.45.1"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f42b459af9452129502d7fb5c72a272cc51cd404132d0f9307bfcedcbdd3f690
3
+ size 343223968
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
runs/Nov09_15-16-43_d978789b493c/events.out.tfevents.1731165406.d978789b493c.30.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56a1205e8718ebfde2046f7a763b8ce3687e40407de85d3e1fd2e6abe2f928d3
3
+ size 35513
runs/Nov09_15-16-43_d978789b493c/events.out.tfevents.1731166529.d978789b493c.30.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bd37002afa523ec77f12278a6971a1cbe608dc52f6d634b10b582b020d5bf92
3
+ size 457
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21902e8deeaf340837efb5b14bc89d6cb1cefaf0e0a5ab0f69b527009f57d3f5
3
+ size 5240