dewifaj commited on
Commit
e4f5ce0
1 Parent(s): 1eb829e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - f1
8
+ model-index:
9
+ - name: alzheimer_classification
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # alzheimer_classification
17
+
18
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.3183
21
+ - F1: 0.8946
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 32
42
+ - eval_batch_size: 32
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 15
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | F1 |
51
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
52
+ | No log | 1.0 | 128 | 0.8686 | 0.5548 |
53
+ | No log | 2.0 | 256 | 0.8457 | 0.6087 |
54
+ | No log | 3.0 | 384 | 0.7396 | 0.6478 |
55
+ | 0.8172 | 4.0 | 512 | 0.6833 | 0.6826 |
56
+ | 0.8172 | 5.0 | 640 | 0.6280 | 0.7205 |
57
+ | 0.8172 | 6.0 | 768 | 0.5347 | 0.7727 |
58
+ | 0.8172 | 7.0 | 896 | 0.5108 | 0.7909 |
59
+ | 0.5292 | 8.0 | 1024 | 0.4707 | 0.8078 |
60
+ | 0.5292 | 9.0 | 1152 | 0.4477 | 0.8302 |
61
+ | 0.5292 | 10.0 | 1280 | 0.4075 | 0.8511 |
62
+ | 0.5292 | 11.0 | 1408 | 0.4263 | 0.8380 |
63
+ | 0.3498 | 12.0 | 1536 | 0.3558 | 0.8756 |
64
+ | 0.3498 | 13.0 | 1664 | 0.3768 | 0.8558 |
65
+ | 0.3498 | 14.0 | 1792 | 0.3412 | 0.8701 |
66
+ | 0.3498 | 15.0 | 1920 | 0.3028 | 0.8952 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.41.0
72
+ - Pytorch 2.3.0+cu121
73
+ - Datasets 2.19.1
74
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Mild_Demented",
13
+ "1": "Moderate_Demented",
14
+ "2": "Non_Demented",
15
+ "3": "Very_Mild_Demented"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "Mild_Demented": "0",
22
+ "Moderate_Demented": "1",
23
+ "Non_Demented": "2",
24
+ "Very_Mild_Demented": "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
+ "problem_type": "single_label_classification",
33
+ "qkv_bias": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.41.0"
36
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bf6f2957dab70779d7a825e47b5c14d6ae440bdebddf989a60057710eb41425
3
+ size 343230128
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/May23_03-10-17_ef0de3e3286a/events.out.tfevents.1716433819.ef0de3e3286a.1223.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c456b36f4cd8b18565151658270749541ef513316d21cca8846cc1259c72a24d
3
+ size 10735
runs/May23_03-10-17_ef0de3e3286a/events.out.tfevents.1716436359.ef0de3e3286a.1223.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:780f9e614d854a16db69ed9a1184b508ddc58f264512adc90f4fd3c2375f6267
3
+ size 722
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66653f36e83b78048c8482748d5394708fc0830419b0b1f608f3e47e13ef0857
3
+ size 5112