smartgmin commited on
Commit
f0961af
1 Parent(s): e82e48d

Upload TFViTForImageClassification

Browse files
Files changed (3) hide show
  1. README.md +65 -0
  2. config.json +36 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_6_true_agoiment211_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_6_true_agoiment211_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.1455
20
+ - Train Accuracy: 0.9282
21
+ - Train Top-3-accuracy: 0.9908
22
+ - Validation Loss: 0.3319
23
+ - Validation Accuracy: 0.9322
24
+ - Validation Top-3-accuracy: 0.9914
25
+ - Epoch: 6
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': 434, '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.1623 | 0.5608 | 0.8521 | 0.7419 | 0.7200 | 0.9394 | 0 |
52
+ | 0.5255 | 0.7824 | 0.9588 | 0.4509 | 0.8190 | 0.9701 | 1 |
53
+ | 0.3218 | 0.8454 | 0.9759 | 0.3839 | 0.8644 | 0.9803 | 2 |
54
+ | 0.2230 | 0.8794 | 0.9830 | 0.3494 | 0.8923 | 0.9852 | 3 |
55
+ | 0.1755 | 0.9022 | 0.9868 | 0.3445 | 0.9104 | 0.9882 | 4 |
56
+ | 0.1539 | 0.9173 | 0.9892 | 0.3343 | 0.9231 | 0.9901 | 5 |
57
+ | 0.1455 | 0.9282 | 0.9908 | 0.3319 | 0.9322 | 0.9914 | 6 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.44.2
63
+ - TensorFlow 2.15.1
64
+ - Datasets 3.0.0
65
+ - 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:cc33f88097e1e6c80a838f5448c816366ce88722fdc8c7b4dc3a26d6520315a6
3
+ size 343478968