Upload TFViTForImageClassification
Browse files- README.md +71 -0
- config.json +36 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google/vit-base-patch16-224-in21k
|
5 |
+
tags:
|
6 |
+
- generated_from_keras_callback
|
7 |
+
model-index:
|
8 |
+
- name: Entrnal_5class_agumm_last_newV6_model
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
13 |
+
probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# Entrnal_5class_agumm_last_newV6_model
|
16 |
+
|
17 |
+
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.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Train Loss: 0.0410
|
20 |
+
- Train Accuracy: 0.9612
|
21 |
+
- Train Top-3-accuracy: 0.9962
|
22 |
+
- Validation Loss: 0.3703
|
23 |
+
- Validation Accuracy: 0.9623
|
24 |
+
- Validation Top-3-accuracy: 0.9963
|
25 |
+
- Epoch: 12
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 1209, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
45 |
+
- training_precision: float32
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Train Loss | Train Accuracy | Train Top-3-accuracy | Validation Loss | Validation Accuracy | Validation Top-3-accuracy | Epoch |
|
50 |
+
|:----------:|:--------------:|:--------------------:|:---------------:|:-------------------:|:-------------------------:|:-----:|
|
51 |
+
| 1.0109 | 0.5898 | 0.8913 | 0.5771 | 0.7468 | 0.9576 | 0 |
|
52 |
+
| 0.4103 | 0.7997 | 0.9708 | 0.4029 | 0.8329 | 0.9786 | 1 |
|
53 |
+
| 0.2249 | 0.8581 | 0.9827 | 0.3677 | 0.8769 | 0.9857 | 2 |
|
54 |
+
| 0.1584 | 0.8905 | 0.9877 | 0.3730 | 0.9010 | 0.9893 | 3 |
|
55 |
+
| 0.1164 | 0.9097 | 0.9904 | 0.3957 | 0.9169 | 0.9913 | 4 |
|
56 |
+
| 0.0841 | 0.9231 | 0.9920 | 0.3896 | 0.9285 | 0.9927 | 5 |
|
57 |
+
| 0.0676 | 0.9331 | 0.9932 | 0.3718 | 0.9373 | 0.9937 | 6 |
|
58 |
+
| 0.0561 | 0.9408 | 0.9941 | 0.3701 | 0.9440 | 0.9944 | 7 |
|
59 |
+
| 0.0500 | 0.9468 | 0.9947 | 0.3691 | 0.9493 | 0.9949 | 8 |
|
60 |
+
| 0.0461 | 0.9516 | 0.9952 | 0.3698 | 0.9535 | 0.9954 | 9 |
|
61 |
+
| 0.0435 | 0.9554 | 0.9956 | 0.3694 | 0.9570 | 0.9958 | 10 |
|
62 |
+
| 0.0418 | 0.9585 | 0.9959 | 0.3705 | 0.9598 | 0.9961 | 11 |
|
63 |
+
| 0.0410 | 0.9612 | 0.9962 | 0.3703 | 0.9623 | 0.9963 | 12 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.44.2
|
69 |
+
- TensorFlow 2.15.1
|
70 |
+
- Datasets 3.0.0
|
71 |
+
- 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": "Cataract",
|
13 |
+
"1": "DR",
|
14 |
+
"2": "Glaucoma",
|
15 |
+
"3": "RVO",
|
16 |
+
"4": "normal"
|
17 |
+
},
|
18 |
+
"image_size": 224,
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"Cataract": "0",
|
23 |
+
"DR": "1",
|
24 |
+
"Glaucoma": "2",
|
25 |
+
"RVO": "3",
|
26 |
+
"normal": "4"
|
27 |
+
},
|
28 |
+
"layer_norm_eps": 1e-12,
|
29 |
+
"model_type": "vit",
|
30 |
+
"num_attention_heads": 12,
|
31 |
+
"num_channels": 3,
|
32 |
+
"num_hidden_layers": 12,
|
33 |
+
"patch_size": 16,
|
34 |
+
"qkv_bias": true,
|
35 |
+
"transformers_version": "4.44.2"
|
36 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd48f856c40334af25bc3df3e5037898a3cb1513cf4a66ce67284fcbe23b1b60
|
3 |
+
size 343478968
|