ahmedesmail16
commited on
Commit
•
a292cb4
1
Parent(s):
a41ce2d
End of training
Browse files- README.md +87 -0
- config.json +105 -0
- model.safetensors +3 -0
- preprocessor_config.json +46 -0
- runs/Jun28_04-53-53_163828ad6818/events.out.tfevents.1719550439.163828ad6818.34.2 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/beit-large-patch16-224-pt22k
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: Psoriasis-500-100aug-224-beit-large
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Image Classification
|
15 |
+
type: image-classification
|
16 |
+
dataset:
|
17 |
+
name: imagefolder
|
18 |
+
type: imagefolder
|
19 |
+
config: default
|
20 |
+
split: validation
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.7991266375545851
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# Psoriasis-500-100aug-224-beit-large
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [microsoft/beit-large-patch16-224-pt22k](https://huggingface.co/microsoft/beit-large-patch16-224-pt22k) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 1.1823
|
36 |
+
- Accuracy: 0.7991
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 5e-05
|
56 |
+
- train_batch_size: 16
|
57 |
+
- eval_batch_size: 16
|
58 |
+
- seed: 42
|
59 |
+
- gradient_accumulation_steps: 4
|
60 |
+
- total_train_batch_size: 64
|
61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
62 |
+
- lr_scheduler_type: linear
|
63 |
+
- lr_scheduler_warmup_ratio: 0.1
|
64 |
+
- num_epochs: 10
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
70 |
+
| 0.8236 | 0.9973 | 92 | 1.1536 | 0.6358 |
|
71 |
+
| 0.4282 | 1.9946 | 184 | 0.8848 | 0.7389 |
|
72 |
+
| 0.2305 | 2.9919 | 276 | 0.9811 | 0.7258 |
|
73 |
+
| 0.1206 | 4.0 | 369 | 0.8858 | 0.7808 |
|
74 |
+
| 0.1107 | 4.9973 | 461 | 1.1129 | 0.7397 |
|
75 |
+
| 0.0319 | 5.9946 | 553 | 1.1625 | 0.7703 |
|
76 |
+
| 0.0073 | 6.9919 | 645 | 1.1938 | 0.7895 |
|
77 |
+
| 0.0078 | 8.0 | 738 | 1.3031 | 0.7790 |
|
78 |
+
| 0.0013 | 8.9973 | 830 | 1.2117 | 0.7974 |
|
79 |
+
| 0.002 | 9.9729 | 920 | 1.1823 | 0.7991 |
|
80 |
+
|
81 |
+
|
82 |
+
### Framework versions
|
83 |
+
|
84 |
+
- Transformers 4.41.2
|
85 |
+
- Pytorch 2.1.2
|
86 |
+
- Datasets 2.19.2
|
87 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/beit-large-patch16-224-pt22k",
|
3 |
+
"add_fpn": false,
|
4 |
+
"architectures": [
|
5 |
+
"BeitForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"auxiliary_channels": 256,
|
9 |
+
"auxiliary_concat_input": false,
|
10 |
+
"auxiliary_loss_weight": 0.4,
|
11 |
+
"auxiliary_num_convs": 1,
|
12 |
+
"drop_path_rate": 0.1,
|
13 |
+
"hidden_act": "gelu",
|
14 |
+
"hidden_dropout_prob": 0.0,
|
15 |
+
"hidden_size": 1024,
|
16 |
+
"id2label": {
|
17 |
+
"0": "Abnormal",
|
18 |
+
"1": "Erythrodermic",
|
19 |
+
"2": "Guttate",
|
20 |
+
"3": "Inverse",
|
21 |
+
"4": "Nail",
|
22 |
+
"5": "Normal",
|
23 |
+
"6": "Not Define",
|
24 |
+
"7": "Palm Soles",
|
25 |
+
"8": "Plaque",
|
26 |
+
"9": "Psoriatic Arthritis",
|
27 |
+
"10": "Pustular",
|
28 |
+
"11": "Scalp"
|
29 |
+
},
|
30 |
+
"image_size": 224,
|
31 |
+
"initializer_range": 0.02,
|
32 |
+
"intermediate_size": 4096,
|
33 |
+
"label2id": {
|
34 |
+
"Abnormal": 0,
|
35 |
+
"Erythrodermic": 1,
|
36 |
+
"Guttate": 2,
|
37 |
+
"Inverse": 3,
|
38 |
+
"Nail": 4,
|
39 |
+
"Normal": 5,
|
40 |
+
"Not Define": 6,
|
41 |
+
"Palm Soles": 7,
|
42 |
+
"Plaque": 8,
|
43 |
+
"Psoriatic Arthritis": 9,
|
44 |
+
"Pustular": 10,
|
45 |
+
"Scalp": 11
|
46 |
+
},
|
47 |
+
"layer_norm_eps": 1e-12,
|
48 |
+
"layer_scale_init_value": 0.1,
|
49 |
+
"model_type": "beit",
|
50 |
+
"num_attention_heads": 16,
|
51 |
+
"num_channels": 3,
|
52 |
+
"num_hidden_layers": 24,
|
53 |
+
"out_features": [
|
54 |
+
"stage24"
|
55 |
+
],
|
56 |
+
"out_indices": [
|
57 |
+
24
|
58 |
+
],
|
59 |
+
"patch_size": 16,
|
60 |
+
"pool_scales": [
|
61 |
+
1,
|
62 |
+
2,
|
63 |
+
3,
|
64 |
+
6
|
65 |
+
],
|
66 |
+
"problem_type": "single_label_classification",
|
67 |
+
"reshape_hidden_states": true,
|
68 |
+
"semantic_loss_ignore_index": 255,
|
69 |
+
"stage_names": [
|
70 |
+
"stem",
|
71 |
+
"stage1",
|
72 |
+
"stage2",
|
73 |
+
"stage3",
|
74 |
+
"stage4",
|
75 |
+
"stage5",
|
76 |
+
"stage6",
|
77 |
+
"stage7",
|
78 |
+
"stage8",
|
79 |
+
"stage9",
|
80 |
+
"stage10",
|
81 |
+
"stage11",
|
82 |
+
"stage12",
|
83 |
+
"stage13",
|
84 |
+
"stage14",
|
85 |
+
"stage15",
|
86 |
+
"stage16",
|
87 |
+
"stage17",
|
88 |
+
"stage18",
|
89 |
+
"stage19",
|
90 |
+
"stage20",
|
91 |
+
"stage21",
|
92 |
+
"stage22",
|
93 |
+
"stage23",
|
94 |
+
"stage24"
|
95 |
+
],
|
96 |
+
"torch_dtype": "float32",
|
97 |
+
"transformers_version": "4.41.2",
|
98 |
+
"use_absolute_position_embeddings": false,
|
99 |
+
"use_auxiliary_head": true,
|
100 |
+
"use_mask_token": true,
|
101 |
+
"use_mean_pooling": true,
|
102 |
+
"use_relative_position_bias": false,
|
103 |
+
"use_shared_relative_position_bias": true,
|
104 |
+
"vocab_size": 8192
|
105 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:467623cb0c7ab92dd2b451f2224c0d38d21a6e93778968c6604b3c3056f83227
|
3 |
+
size 1212647096
|
preprocessor_config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"segmentation_maps",
|
5 |
+
"do_resize",
|
6 |
+
"size",
|
7 |
+
"resample",
|
8 |
+
"do_center_crop",
|
9 |
+
"crop_size",
|
10 |
+
"do_rescale",
|
11 |
+
"rescale_factor",
|
12 |
+
"do_normalize",
|
13 |
+
"image_mean",
|
14 |
+
"image_std",
|
15 |
+
"do_reduce_labels",
|
16 |
+
"return_tensors",
|
17 |
+
"data_format",
|
18 |
+
"input_data_format"
|
19 |
+
],
|
20 |
+
"crop_size": {
|
21 |
+
"height": 224,
|
22 |
+
"width": 224
|
23 |
+
},
|
24 |
+
"do_center_crop": false,
|
25 |
+
"do_normalize": true,
|
26 |
+
"do_reduce_labels": false,
|
27 |
+
"do_rescale": true,
|
28 |
+
"do_resize": true,
|
29 |
+
"image_mean": [
|
30 |
+
0.5,
|
31 |
+
0.5,
|
32 |
+
0.5
|
33 |
+
],
|
34 |
+
"image_processor_type": "BeitImageProcessor",
|
35 |
+
"image_std": [
|
36 |
+
0.5,
|
37 |
+
0.5,
|
38 |
+
0.5
|
39 |
+
],
|
40 |
+
"resample": 2,
|
41 |
+
"rescale_factor": 0.00392156862745098,
|
42 |
+
"size": {
|
43 |
+
"height": 224,
|
44 |
+
"width": 224
|
45 |
+
}
|
46 |
+
}
|
runs/Jun28_04-53-53_163828ad6818/events.out.tfevents.1719550439.163828ad6818.34.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dbf495fa4885581af3a3bc825b8abc3699c0568ab4ba3ed1333c8d87828c41fd
|
3 |
+
size 29266
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9b14558518953efa3150b231c1cf63cd38e18a539e12ae377ffe36b3efbc469d
|
3 |
+
size 5176
|