End of training
Browse files- README.md +95 -0
- config.json +60 -0
- model.safetensors +3 -0
- preprocessor_config.json +28 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/beit-base-patch16-224-pt22k-ft22k
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: Boya1_3Class_RMSprop_1-e5_20Epoch_Beit-base-patch16_fold5
|
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: test
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.8310279359913209
|
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 |
+
# Boya1_3Class_RMSprop_1-e5_20Epoch_Beit-base-patch16_fold5
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [microsoft/beit-base-patch16-224-pt22k-ft22k](https://huggingface.co/microsoft/beit-base-patch16-224-pt22k-ft22k) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 1.7877
|
36 |
+
- Accuracy: 0.8310
|
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: 1e-05
|
56 |
+
- train_batch_size: 16
|
57 |
+
- eval_batch_size: 16
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- lr_scheduler_warmup_ratio: 0.1
|
62 |
+
- num_epochs: 20
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
67 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
68 |
+
| 0.5804 | 1.0 | 924 | 0.4986 | 0.8004 |
|
69 |
+
| 0.4299 | 2.0 | 1848 | 0.4370 | 0.8248 |
|
70 |
+
| 0.2235 | 3.0 | 2772 | 0.4410 | 0.8446 |
|
71 |
+
| 0.1347 | 4.0 | 3696 | 0.5720 | 0.8343 |
|
72 |
+
| 0.0488 | 5.0 | 4620 | 0.8207 | 0.8275 |
|
73 |
+
| 0.2009 | 6.0 | 5544 | 1.0317 | 0.8329 |
|
74 |
+
| 0.0566 | 7.0 | 6468 | 1.3823 | 0.8205 |
|
75 |
+
| 0.0733 | 8.0 | 7392 | 1.3466 | 0.8324 |
|
76 |
+
| 0.0357 | 9.0 | 8316 | 1.3267 | 0.8362 |
|
77 |
+
| 0.071 | 10.0 | 9240 | 1.5459 | 0.8264 |
|
78 |
+
| 0.0505 | 11.0 | 10164 | 1.6231 | 0.8280 |
|
79 |
+
| 0.1165 | 12.0 | 11088 | 1.6016 | 0.8297 |
|
80 |
+
| 0.0243 | 13.0 | 12012 | 1.7023 | 0.8351 |
|
81 |
+
| 0.0327 | 14.0 | 12936 | 1.6673 | 0.8354 |
|
82 |
+
| 0.002 | 15.0 | 13860 | 1.7768 | 0.8259 |
|
83 |
+
| 0.0008 | 16.0 | 14784 | 1.8057 | 0.8302 |
|
84 |
+
| 0.0117 | 17.0 | 15708 | 1.8092 | 0.8253 |
|
85 |
+
| 0.024 | 18.0 | 16632 | 1.7701 | 0.8324 |
|
86 |
+
| 0.0349 | 19.0 | 17556 | 1.7881 | 0.8291 |
|
87 |
+
| 0.0001 | 20.0 | 18480 | 1.7877 | 0.8310 |
|
88 |
+
|
89 |
+
|
90 |
+
### Framework versions
|
91 |
+
|
92 |
+
- Transformers 4.35.0
|
93 |
+
- Pytorch 2.1.0
|
94 |
+
- Datasets 2.14.6
|
95 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/beit-base-patch16-224-pt22k-ft22k",
|
3 |
+
"architectures": [
|
4 |
+
"BeitForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"auxiliary_channels": 256,
|
8 |
+
"auxiliary_concat_input": false,
|
9 |
+
"auxiliary_loss_weight": 0.4,
|
10 |
+
"auxiliary_num_convs": 1,
|
11 |
+
"drop_path_rate": 0.1,
|
12 |
+
"hidden_act": "gelu",
|
13 |
+
"hidden_dropout_prob": 0.0,
|
14 |
+
"hidden_size": 768,
|
15 |
+
"id2label": {
|
16 |
+
"0": "HeadAbnormalities",
|
17 |
+
"1": "NeckAbnormalities",
|
18 |
+
"2": "Normal",
|
19 |
+
"3": "TailAbnormalities"
|
20 |
+
},
|
21 |
+
"image_size": 224,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"HeadAbnormalities": "0",
|
26 |
+
"NeckAbnormalities": "1",
|
27 |
+
"Normal": "2",
|
28 |
+
"TailAbnormalities": "3"
|
29 |
+
},
|
30 |
+
"layer_norm_eps": 1e-12,
|
31 |
+
"layer_scale_init_value": 0.1,
|
32 |
+
"model_type": "beit",
|
33 |
+
"num_attention_heads": 12,
|
34 |
+
"num_channels": 3,
|
35 |
+
"num_hidden_layers": 12,
|
36 |
+
"out_indices": [
|
37 |
+
3,
|
38 |
+
5,
|
39 |
+
7,
|
40 |
+
11
|
41 |
+
],
|
42 |
+
"patch_size": 16,
|
43 |
+
"pool_scales": [
|
44 |
+
1,
|
45 |
+
2,
|
46 |
+
3,
|
47 |
+
6
|
48 |
+
],
|
49 |
+
"problem_type": "single_label_classification",
|
50 |
+
"semantic_loss_ignore_index": 255,
|
51 |
+
"torch_dtype": "float32",
|
52 |
+
"transformers_version": "4.35.0",
|
53 |
+
"use_absolute_position_embeddings": false,
|
54 |
+
"use_auxiliary_head": true,
|
55 |
+
"use_mask_token": false,
|
56 |
+
"use_mean_pooling": true,
|
57 |
+
"use_relative_position_bias": true,
|
58 |
+
"use_shared_relative_position_bias": false,
|
59 |
+
"vocab_size": 8192
|
60 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:032976be02eb4dc2b64917839f20807ebef3979074c92907a9a48a6d5b621ad3
|
3 |
+
size 343086480
|
preprocessor_config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 224,
|
4 |
+
"width": 224
|
5 |
+
},
|
6 |
+
"do_center_crop": false,
|
7 |
+
"do_normalize": true,
|
8 |
+
"do_reduce_labels": false,
|
9 |
+
"do_rescale": true,
|
10 |
+
"do_resize": true,
|
11 |
+
"image_mean": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"image_processor_type": "BeitImageProcessor",
|
17 |
+
"image_std": [
|
18 |
+
0.5,
|
19 |
+
0.5,
|
20 |
+
0.5
|
21 |
+
],
|
22 |
+
"resample": 2,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"height": 224,
|
26 |
+
"width": 224
|
27 |
+
}
|
28 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:582b5d816f8af013c4bbd0e7ba4640d3f0ecc2f62a6b7356c8cdab09ecddf269
|
3 |
+
size 4704
|