End of training
Browse files- README.md +21 -8
- config.json +9 -2
- tf_model.h5 +2 -2
README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
tags:
|
| 3 |
- generated_from_keras_callback
|
| 4 |
model-index:
|
|
@@ -11,12 +12,12 @@ probably proofread and complete it, then remove this comment. -->
|
|
| 11 |
|
| 12 |
# akar49/mri_classifier
|
| 13 |
|
| 14 |
-
This model is a fine-tuned version of [
|
| 15 |
It achieves the following results on the evaluation set:
|
| 16 |
-
- Train Loss: 0.
|
| 17 |
-
- Validation Loss: 0.
|
| 18 |
-
- Train Accuracy: 0.
|
| 19 |
-
- Epoch:
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -42,9 +43,21 @@ The following hyperparameters were used during training:
|
|
| 42 |
|
| 43 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
| 44 |
|:----------:|:---------------:|:--------------:|:-----:|
|
| 45 |
-
| 0.
|
| 46 |
-
| 0.
|
| 47 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
### Framework versions
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
- generated_from_keras_callback
|
| 5 |
model-index:
|
|
|
|
| 12 |
|
| 13 |
# akar49/mri_classifier
|
| 14 |
|
| 15 |
+
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.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
+
- Train Loss: 0.1032
|
| 18 |
+
- Validation Loss: 0.1556
|
| 19 |
+
- Train Accuracy: 0.9367
|
| 20 |
+
- Epoch: 14
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
|
|
| 43 |
|
| 44 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
| 45 |
|:----------:|:---------------:|:--------------:|:-----:|
|
| 46 |
+
| 0.6447 | 0.6133 | 0.7004 | 0 |
|
| 47 |
+
| 0.5405 | 0.5010 | 0.8256 | 1 |
|
| 48 |
+
| 0.4181 | 0.3917 | 0.8650 | 2 |
|
| 49 |
+
| 0.3122 | 0.3189 | 0.9058 | 3 |
|
| 50 |
+
| 0.2474 | 0.3069 | 0.8875 | 4 |
|
| 51 |
+
| 0.2021 | 0.2733 | 0.9044 | 5 |
|
| 52 |
+
| 0.1745 | 0.2455 | 0.9100 | 6 |
|
| 53 |
+
| 0.1591 | 0.2203 | 0.9212 | 7 |
|
| 54 |
+
| 0.1450 | 0.2350 | 0.9142 | 8 |
|
| 55 |
+
| 0.1397 | 0.2122 | 0.9198 | 9 |
|
| 56 |
+
| 0.1227 | 0.2098 | 0.9212 | 10 |
|
| 57 |
+
| 0.1169 | 0.1754 | 0.9325 | 11 |
|
| 58 |
+
| 0.1080 | 0.1782 | 0.9339 | 12 |
|
| 59 |
+
| 0.0971 | 0.1705 | 0.9353 | 13 |
|
| 60 |
+
| 0.1032 | 0.1556 | 0.9367 | 14 |
|
| 61 |
|
| 62 |
|
| 63 |
### Framework versions
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"ViTForImageClassification"
|
| 5 |
],
|
|
@@ -8,9 +8,17 @@
|
|
| 8 |
"hidden_act": "gelu",
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"image_size": 224,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"intermediate_size": 3072,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"layer_norm_eps": 1e-12,
|
| 15 |
"model_type": "vit",
|
| 16 |
"num_attention_heads": 12,
|
|
@@ -18,6 +26,5 @@
|
|
| 18 |
"num_hidden_layers": 12,
|
| 19 |
"patch_size": 16,
|
| 20 |
"qkv_bias": true,
|
| 21 |
-
"torch_dtype": "float32",
|
| 22 |
"transformers_version": "4.30.2"
|
| 23 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
| 3 |
"architectures": [
|
| 4 |
"ViTForImageClassification"
|
| 5 |
],
|
|
|
|
| 8 |
"hidden_act": "gelu",
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "notumor",
|
| 13 |
+
"1": "tumor"
|
| 14 |
+
},
|
| 15 |
"image_size": 224,
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"notumor": "0",
|
| 20 |
+
"tumor": "1"
|
| 21 |
+
},
|
| 22 |
"layer_norm_eps": 1e-12,
|
| 23 |
"model_type": "vit",
|
| 24 |
"num_attention_heads": 12,
|
|
|
|
| 26 |
"num_hidden_layers": 12,
|
| 27 |
"patch_size": 16,
|
| 28 |
"qkv_bias": true,
|
|
|
|
| 29 |
"transformers_version": "4.30.2"
|
| 30 |
}
|
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:433fd89d942ebce5060966566b32d1038bcd8c6fad419f7d89132b1e4a587884
|
| 3 |
+
size 343469752
|