ahmed-ai commited on
Commit
b3d1d56
1 Parent(s): 2177b85

End of training

Browse files
Files changed (4) hide show
  1. README.md +59 -0
  2. config.json +56 -0
  3. preprocessor_config.json +22 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: ahmed-ai/skin_lesions_classifier
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # ahmed-ai/skin_lesions_classifier
15
+
16
+ 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.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.8374
19
+ - Validation Loss: 0.7696
20
+ - Train Accuracy: 0.7102
21
+ - Epoch: 4
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 109580, '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}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Validation Loss | Train Accuracy | Epoch |
46
+ |:----------:|:---------------:|:--------------:|:-----:|
47
+ | 1.3152 | 1.0475 | 0.6511 | 0 |
48
+ | 1.0540 | 0.8775 | 0.6918 | 1 |
49
+ | 0.9540 | 0.8533 | 0.6814 | 2 |
50
+ | 0.8859 | 0.7491 | 0.7201 | 3 |
51
+ | 0.8374 | 0.7696 | 0.7102 | 4 |
52
+
53
+
54
+ ### Framework versions
55
+
56
+ - Transformers 4.36.2
57
+ - TensorFlow 2.15.0
58
+ - Datasets 2.16.1
59
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Actinic keratoses",
13
+ "1": "Basal cell carcinoma",
14
+ "10": "Melanoma",
15
+ "11": "Monkeypox",
16
+ "12": "Squamous cell carcinoma",
17
+ "13": "Vascular lesions",
18
+ "14": "dermatofibroma",
19
+ "2": "Benign keratosis-like lesions",
20
+ "3": "Chickenpox",
21
+ "4": "Cowpox",
22
+ "5": "Dermatofibroma",
23
+ "6": "HFMD",
24
+ "7": "Healthy",
25
+ "8": "Measles",
26
+ "9": "Melanocytic nevi"
27
+ },
28
+ "image_size": 224,
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 3072,
31
+ "label2id": {
32
+ "Actinic keratoses": "0",
33
+ "Basal cell carcinoma": "1",
34
+ "Benign keratosis-like lesions": "2",
35
+ "Chickenpox": "3",
36
+ "Cowpox": "4",
37
+ "Dermatofibroma": "5",
38
+ "HFMD": "6",
39
+ "Healthy": "7",
40
+ "Measles": "8",
41
+ "Melanocytic nevi": "9",
42
+ "Melanoma": "10",
43
+ "Monkeypox": "11",
44
+ "Squamous cell carcinoma": "12",
45
+ "Vascular lesions": "13",
46
+ "dermatofibroma": "14"
47
+ },
48
+ "layer_norm_eps": 1e-12,
49
+ "model_type": "vit",
50
+ "num_attention_heads": 12,
51
+ "num_channels": 3,
52
+ "num_hidden_layers": 12,
53
+ "patch_size": 16,
54
+ "qkv_bias": true,
55
+ "transformers_version": "4.36.2"
56
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f19d70f12bd480c3c4301cdd3dca16151f784a6069590c30d86e57405efea598
3
+ size 343509688