End of training
Browse files- README.md +64 -0
- config.json +104 -0
- preprocessor_config.json +23 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
base_model: nvidia/mit-b1
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: ahmed-ai/mit-b1-skin-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/mit-b1-skin-classifier
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [nvidia/mit-b1](https://huggingface.co/nvidia/mit-b1) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 0.4567
|
19 |
+
- Validation Loss: 0.6271
|
20 |
+
- Train Accuracy: 0.7610
|
21 |
+
- Epoch: 9
|
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': 191770, '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.1152 | 0.8715 | 0.6858 | 0 |
|
48 |
+
| 0.8784 | 0.7400 | 0.7216 | 1 |
|
49 |
+
| 0.7774 | 0.7492 | 0.7273 | 2 |
|
50 |
+
| 0.7114 | 0.7229 | 0.7213 | 3 |
|
51 |
+
| 0.6492 | 0.6735 | 0.7393 | 4 |
|
52 |
+
| 0.6005 | 0.6498 | 0.7507 | 5 |
|
53 |
+
| 0.5560 | 0.6181 | 0.7596 | 6 |
|
54 |
+
| 0.5179 | 0.6473 | 0.7582 | 7 |
|
55 |
+
| 0.4913 | 0.6100 | 0.7711 | 8 |
|
56 |
+
| 0.4567 | 0.6271 | 0.7610 | 9 |
|
57 |
+
|
58 |
+
|
59 |
+
### Framework versions
|
60 |
+
|
61 |
+
- Transformers 4.36.2
|
62 |
+
- TensorFlow 2.13.0
|
63 |
+
- Datasets 2.16.1
|
64 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nvidia/mit-b1",
|
3 |
+
"architectures": [
|
4 |
+
"SegformerForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"classifier_dropout_prob": 0.1,
|
8 |
+
"decoder_hidden_size": 256,
|
9 |
+
"depths": [
|
10 |
+
2,
|
11 |
+
2,
|
12 |
+
2,
|
13 |
+
2
|
14 |
+
],
|
15 |
+
"downsampling_rates": [
|
16 |
+
1,
|
17 |
+
4,
|
18 |
+
8,
|
19 |
+
16
|
20 |
+
],
|
21 |
+
"drop_path_rate": 0.1,
|
22 |
+
"hidden_act": "gelu",
|
23 |
+
"hidden_dropout_prob": 0.0,
|
24 |
+
"hidden_sizes": [
|
25 |
+
64,
|
26 |
+
128,
|
27 |
+
320,
|
28 |
+
512
|
29 |
+
],
|
30 |
+
"id2label": {
|
31 |
+
"0": "Actinic keratoses",
|
32 |
+
"1": "Basal cell carcinoma",
|
33 |
+
"10": "Melanoma",
|
34 |
+
"11": "Monkeypox",
|
35 |
+
"12": "Squamous cell carcinoma",
|
36 |
+
"13": "Vascular lesions",
|
37 |
+
"14": "dermatofibroma",
|
38 |
+
"2": "Benign keratosis-like lesions",
|
39 |
+
"3": "Chickenpox",
|
40 |
+
"4": "Cowpox",
|
41 |
+
"5": "Dermatofibroma",
|
42 |
+
"6": "HFMD",
|
43 |
+
"7": "Healthy",
|
44 |
+
"8": "Measles",
|
45 |
+
"9": "Melanocytic nevi"
|
46 |
+
},
|
47 |
+
"image_size": 224,
|
48 |
+
"initializer_range": 0.02,
|
49 |
+
"label2id": {
|
50 |
+
"Actinic keratoses": "0",
|
51 |
+
"Basal cell carcinoma": "1",
|
52 |
+
"Benign keratosis-like lesions": "2",
|
53 |
+
"Chickenpox": "3",
|
54 |
+
"Cowpox": "4",
|
55 |
+
"Dermatofibroma": "5",
|
56 |
+
"HFMD": "6",
|
57 |
+
"Healthy": "7",
|
58 |
+
"Measles": "8",
|
59 |
+
"Melanocytic nevi": "9",
|
60 |
+
"Melanoma": "10",
|
61 |
+
"Monkeypox": "11",
|
62 |
+
"Squamous cell carcinoma": "12",
|
63 |
+
"Vascular lesions": "13",
|
64 |
+
"dermatofibroma": "14"
|
65 |
+
},
|
66 |
+
"layer_norm_eps": 1e-06,
|
67 |
+
"mlp_ratios": [
|
68 |
+
4,
|
69 |
+
4,
|
70 |
+
4,
|
71 |
+
4
|
72 |
+
],
|
73 |
+
"model_type": "segformer",
|
74 |
+
"num_attention_heads": [
|
75 |
+
1,
|
76 |
+
2,
|
77 |
+
5,
|
78 |
+
8
|
79 |
+
],
|
80 |
+
"num_channels": 3,
|
81 |
+
"num_encoder_blocks": 4,
|
82 |
+
"patch_sizes": [
|
83 |
+
7,
|
84 |
+
3,
|
85 |
+
3,
|
86 |
+
3
|
87 |
+
],
|
88 |
+
"reshape_last_stage": true,
|
89 |
+
"semantic_loss_ignore_index": 255,
|
90 |
+
"sr_ratios": [
|
91 |
+
8,
|
92 |
+
4,
|
93 |
+
2,
|
94 |
+
1
|
95 |
+
],
|
96 |
+
"strides": [
|
97 |
+
4,
|
98 |
+
2,
|
99 |
+
2,
|
100 |
+
2
|
101 |
+
],
|
102 |
+
"torch_dtype": "float32",
|
103 |
+
"transformers_version": "4.36.2"
|
104 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_reduce_labels": false,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "SegformerImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 512,
|
21 |
+
"width": 512
|
22 |
+
}
|
23 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37cebfe93296301ff0e8607faf49610a198191637823157bdcfd22e587a37304
|
3 |
+
size 52898992
|