Upload TFViTForImageClassification
Browse files- README.md +68 -0
- config.json +40 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_eyes_data_7class_allNew_withother_resize_224_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_eyes_data_7class_allNew_withother_resize_224_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.0693
|
20 |
+
- Train Accuracy: 0.9107
|
21 |
+
- Train Top-3-accuracy: 0.9914
|
22 |
+
- Validation Loss: 0.4731
|
23 |
+
- Validation Accuracy: 0.9137
|
24 |
+
- Validation Top-3-accuracy: 0.9918
|
25 |
+
- Epoch: 9
|
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': 1580, '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.1195 | 0.5630 | 0.8481 | 0.7181 | 0.7020 | 0.9377 | 0 |
|
52 |
+
| 0.5314 | 0.7457 | 0.9559 | 0.5566 | 0.7758 | 0.9668 | 1 |
|
53 |
+
| 0.3817 | 0.7982 | 0.9725 | 0.4695 | 0.8146 | 0.9767 | 2 |
|
54 |
+
| 0.2853 | 0.8284 | 0.9795 | 0.4379 | 0.8405 | 0.9819 | 3 |
|
55 |
+
| 0.2111 | 0.8515 | 0.9837 | 0.4234 | 0.8605 | 0.9852 | 4 |
|
56 |
+
| 0.1475 | 0.8695 | 0.9864 | 0.4329 | 0.8767 | 0.9874 | 5 |
|
57 |
+
| 0.1070 | 0.8835 | 0.9882 | 0.4625 | 0.8896 | 0.9890 | 6 |
|
58 |
+
| 0.0847 | 0.8948 | 0.9896 | 0.4766 | 0.8993 | 0.9901 | 7 |
|
59 |
+
| 0.0745 | 0.9035 | 0.9906 | 0.4688 | 0.9073 | 0.9910 | 8 |
|
60 |
+
| 0.0693 | 0.9107 | 0.9914 | 0.4731 | 0.9137 | 0.9918 | 9 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- Transformers 4.44.2
|
66 |
+
- TensorFlow 2.15.1
|
67 |
+
- Datasets 3.0.0
|
68 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "DP",
|
13 |
+
"1": "Other",
|
14 |
+
"2": "ROP",
|
15 |
+
"3": "RVO",
|
16 |
+
"4": "cataract",
|
17 |
+
"5": "glaucoma",
|
18 |
+
"6": "normal"
|
19 |
+
},
|
20 |
+
"image_size": 224,
|
21 |
+
"initializer_range": 0.02,
|
22 |
+
"intermediate_size": 3072,
|
23 |
+
"label2id": {
|
24 |
+
"DP": "0",
|
25 |
+
"Other": "1",
|
26 |
+
"ROP": "2",
|
27 |
+
"RVO": "3",
|
28 |
+
"cataract": "4",
|
29 |
+
"glaucoma": "5",
|
30 |
+
"normal": "6"
|
31 |
+
},
|
32 |
+
"layer_norm_eps": 1e-12,
|
33 |
+
"model_type": "vit",
|
34 |
+
"num_attention_heads": 12,
|
35 |
+
"num_channels": 3,
|
36 |
+
"num_hidden_layers": 12,
|
37 |
+
"patch_size": 16,
|
38 |
+
"qkv_bias": true,
|
39 |
+
"transformers_version": "4.44.2"
|
40 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53355b26e2477ce03b861e70ac20fbe5bb25996a14a4a06b0865f90878ba41a7
|
3 |
+
size 343485112
|