dwiedarioo
commited on
Commit
•
a8a67da
1
Parent(s):
0178a76
Training in progress epoch 0
Browse files
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224-in21k
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: dwiedarioo/vit-base-patch16-224-in21k-brainmri
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
12 |
+
probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# dwiedarioo/vit-base-patch16-224-in21k-brainmri
|
15 |
+
|
16 |
+
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.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 2.2199
|
19 |
+
- Train Accuracy: 0.4215
|
20 |
+
- Train Top-3-accuracy: 0.6564
|
21 |
+
- Validation Loss: 1.8634
|
22 |
+
- Validation Accuracy: 0.5702
|
23 |
+
- Validation Top-3-accuracy: 0.8099
|
24 |
+
- Epoch: 0
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- optimizer: {'inner_optimizer': {'module': 'transformers.optimization_tf', 'class_name': 'AdamWeightDecay', 'config': {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 1230, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.8999999761581421, 'beta_2': 0.9990000128746033, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}, 'registered_name': 'AdamWeightDecay'}, 'dynamic': True, 'initial_scale': 32768.0, 'dynamic_growth_steps': 2000}
|
44 |
+
- training_precision: mixed_float16
|
45 |
+
|
46 |
+
### Training results
|
47 |
+
|
48 |
+
| Train Loss | Train Accuracy | Train Top-3-accuracy | Validation Loss | Validation Accuracy | Validation Top-3-accuracy | Epoch |
|
49 |
+
|:----------:|:--------------:|:--------------------:|:---------------:|:-------------------:|:-------------------------:|:-----:|
|
50 |
+
| 2.2199 | 0.4215 | 0.6564 | 1.8634 | 0.5702 | 0.8099 | 0 |
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.35.0
|
56 |
+
- TensorFlow 2.14.0
|
57 |
+
- Datasets 2.14.6
|
58 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Carcinoma",
|
13 |
+
"1": "Papiloma",
|
14 |
+
"10": "Astrocitoma",
|
15 |
+
"11": "Glioblastoma",
|
16 |
+
"12": "Meningioma",
|
17 |
+
"13": "Tuberculoma",
|
18 |
+
"14": "Schwannoma",
|
19 |
+
"2": "Neurocitoma",
|
20 |
+
"3": "Granuloma",
|
21 |
+
"4": "_NORMAL",
|
22 |
+
"5": "Ganglioglioma",
|
23 |
+
"6": "Germinoma",
|
24 |
+
"7": "Ependimoma",
|
25 |
+
"8": "Oligodendroglioma",
|
26 |
+
"9": "Meduloblastoma"
|
27 |
+
},
|
28 |
+
"image_size": 224,
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 3072,
|
31 |
+
"label2id": {
|
32 |
+
"Astrocitoma": "10",
|
33 |
+
"Carcinoma": "0",
|
34 |
+
"Ependimoma": "7",
|
35 |
+
"Ganglioglioma": "5",
|
36 |
+
"Germinoma": "6",
|
37 |
+
"Glioblastoma": "11",
|
38 |
+
"Granuloma": "3",
|
39 |
+
"Meduloblastoma": "9",
|
40 |
+
"Meningioma": "12",
|
41 |
+
"Neurocitoma": "2",
|
42 |
+
"Oligodendroglioma": "8",
|
43 |
+
"Papiloma": "1",
|
44 |
+
"Schwannoma": "14",
|
45 |
+
"Tuberculoma": "13",
|
46 |
+
"_NORMAL": "4"
|
47 |
+
},
|
48 |
+
"layer_norm_eps": 1e-12,
|
49 |
+
"model_type": "vit",
|
50 |
+
"num_attention_heads": 12,
|
51 |
+
"num_channels": 3,
|
52 |
+
"num_hidden_layers": 12,
|
53 |
+
"patch_size": 16,
|
54 |
+
"qkv_bias": true,
|
55 |
+
"transformers_version": "4.35.0"
|
56 |
+
}
|
logs/train/events.out.tfevents.1699634560.ccc1bc92f64c.114159.0.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1db0ed4561fda97ca7b0d0b1d0ea8614e1485cfd3cd3e400e3e7102f369ce822
|
3 |
+
size 3350547
|
logs/train/events.out.tfevents.1699634709.ccc1bc92f64c.114159.1.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:476acdfce042e5807fe93f6b22fca858189e82954f5533b56c828ecef02c8305
|
3 |
+
size 3350834
|
logs/validation/events.out.tfevents.1699635312.ccc1bc92f64c.114159.2.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5c070ffd3b539c9524341349a78317aec68cd34cdca15492d09be4051d7b46aa
|
3 |
+
size 565
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5d55ea30c2a8efa41e727bea9389cb046a8137ae613c1d26aa979a9185706066
|
3 |
+
size 343509688
|