Guldeniz commited on
Commit
cd7c811
1 Parent(s): 0daa955

Upload 7 files

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: Guldeniz/vit-base-patch16-224-in21k-lung_and_colon
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
11
+ probably proofread and complete it, then remove this comment. -->
12
+
13
+ # Guldeniz/vit-base-patch16-224-in21k-lung_and_colon
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.0088
18
+ - Train Accuracy: 1.0
19
+ - Train Top-3-accuracy: 1.0
20
+ - Validation Loss: 0.0084
21
+ - Validation Accuracy: 0.9997
22
+ - Validation Top-3-accuracy: 1.0
23
+ - Epoch: 3
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 3325, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
43
+ - training_precision: float32
44
+
45
+ ### Training results
46
+
47
+ | Train Loss | Train Accuracy | Train Top-3-accuracy | Validation Loss | Validation Accuracy | Validation Top-3-accuracy | Epoch |
48
+ |:----------:|:--------------:|:--------------------:|:---------------:|:-------------------:|:-------------------------:|:-----:|
49
+ | 0.1870 | 0.9784 | 0.9985 | 0.0455 | 0.9987 | 1.0 | 0 |
50
+ | 0.0345 | 0.9972 | 1.0 | 0.0189 | 0.9995 | 1.0 | 1 |
51
+ | 0.0134 | 1.0 | 1.0 | 0.0110 | 0.9997 | 1.0 | 2 |
52
+ | 0.0088 | 1.0 | 1.0 | 0.0084 | 0.9997 | 1.0 | 3 |
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.26.1
58
+ - TensorFlow 2.12.0
59
+ - Datasets 2.10.1
60
+ - Tokenizers 0.13.3
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": "lung_aca",
13
+ "1": "colon_n",
14
+ "2": "colon_aca",
15
+ "3": "lung_n",
16
+ "4": "lung_scc"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "colon_aca": "2",
23
+ "colon_n": "1",
24
+ "lung_aca": "0",
25
+ "lung_n": "3",
26
+ "lung_scc": "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.26.1"
36
+ }
logs/train/events.out.tfevents.1684959325.Guldenizs-MacBook-Pro.local.31812.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d3d0564935fdf29b6ff70226fe42748292102dc9cce32ef0dc0cd51565c1b99
3
+ size 3308148
logs/train/events.out.tfevents.1684997419.Guldenizs-MacBook-Pro.local.40657.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f7ae33149aabe41b1000b8ba3da0d36381366a38c36f292872fc93cece9c0b2
3
+ size 2962790
logs/validation/events.out.tfevents.1684964718.Guldenizs-MacBook-Pro.local.31812.1.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:881ac342cc97d3388ab7290cbdc7ce2c6aeb357cc71e4e92de8f3040d92a76ca
3
+ size 1560
logs/validation/events.out.tfevents.1684998631.Guldenizs-MacBook-Pro.local.40657.1.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f040e6976c570cff26921a5ce098b112bc9664ff1bc1db629e956210560024d2
3
+ size 2056
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf43491673634accfddad7796e018967d2ae8dc2e8f1986cb4c49868bb84c73c
3
+ size 343479072