End of training
Browse files- README.md +112 -0
- config.json +105 -0
- model.safetensors +3 -0
- preprocessor_config.json +42 -0
- runs/Apr09_18-00-14_165-1-65-97/events.out.tfevents.1712685614.165-1-65-97.1392.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/levit-128
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
- precision
|
11 |
+
- recall
|
12 |
+
- f1
|
13 |
+
model-index:
|
14 |
+
- name: levit-128-finetuned-flower
|
15 |
+
results:
|
16 |
+
- task:
|
17 |
+
name: Image Classification
|
18 |
+
type: image-classification
|
19 |
+
dataset:
|
20 |
+
name: imagefolder
|
21 |
+
type: imagefolder
|
22 |
+
config: default
|
23 |
+
split: train
|
24 |
+
args: default
|
25 |
+
metrics:
|
26 |
+
- name: Accuracy
|
27 |
+
type: accuracy
|
28 |
+
value: 0.9506352087114338
|
29 |
+
- name: Precision
|
30 |
+
type: precision
|
31 |
+
value: 0.950988634564862
|
32 |
+
- name: Recall
|
33 |
+
type: recall
|
34 |
+
value: 0.9506352087114338
|
35 |
+
- name: F1
|
36 |
+
type: f1
|
37 |
+
value: 0.9505680872971296
|
38 |
+
---
|
39 |
+
|
40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
41 |
+
should probably proofread and complete it, then remove this comment. -->
|
42 |
+
|
43 |
+
# levit-128-finetuned-flower
|
44 |
+
|
45 |
+
This model is a fine-tuned version of [facebook/levit-128](https://huggingface.co/facebook/levit-128) on the imagefolder dataset.
|
46 |
+
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 0.1807
|
48 |
+
- Accuracy: 0.9506
|
49 |
+
- Precision: 0.9510
|
50 |
+
- Recall: 0.9506
|
51 |
+
- F1: 0.9506
|
52 |
+
|
53 |
+
## Model description
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
|
59 |
+
More information needed
|
60 |
+
|
61 |
+
## Training and evaluation data
|
62 |
+
|
63 |
+
More information needed
|
64 |
+
|
65 |
+
## Training procedure
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
- learning_rate: 0.005
|
71 |
+
- train_batch_size: 64
|
72 |
+
- eval_batch_size: 64
|
73 |
+
- seed: 42
|
74 |
+
- gradient_accumulation_steps: 4
|
75 |
+
- total_train_batch_size: 256
|
76 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
77 |
+
- lr_scheduler_type: linear
|
78 |
+
- lr_scheduler_warmup_ratio: 0.1
|
79 |
+
- num_epochs: 20
|
80 |
+
|
81 |
+
### Training results
|
82 |
+
|
83 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
84 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
85 |
+
| 0.6679 | 1.0 | 40 | 0.6957 | 0.8076 | 0.8492 | 0.8076 | 0.8060 |
|
86 |
+
| 0.7188 | 2.0 | 80 | 0.7094 | 0.7822 | 0.7997 | 0.7822 | 0.7789 |
|
87 |
+
| 0.7277 | 3.0 | 120 | 0.7803 | 0.7477 | 0.7912 | 0.7477 | 0.7480 |
|
88 |
+
| 0.561 | 4.0 | 160 | 0.5489 | 0.8352 | 0.8462 | 0.8352 | 0.8292 |
|
89 |
+
| 0.4958 | 5.0 | 200 | 0.4067 | 0.8770 | 0.8852 | 0.8770 | 0.8766 |
|
90 |
+
| 0.4681 | 6.0 | 240 | 0.4801 | 0.8457 | 0.8570 | 0.8457 | 0.8423 |
|
91 |
+
| 0.368 | 7.0 | 280 | 0.4348 | 0.8617 | 0.8697 | 0.8617 | 0.8618 |
|
92 |
+
| 0.355 | 8.0 | 320 | 0.3401 | 0.8926 | 0.8971 | 0.8926 | 0.8924 |
|
93 |
+
| 0.3164 | 9.0 | 360 | 0.3510 | 0.8871 | 0.8935 | 0.8871 | 0.8871 |
|
94 |
+
| 0.2972 | 10.0 | 400 | 0.2877 | 0.9140 | 0.9159 | 0.9140 | 0.9133 |
|
95 |
+
| 0.2639 | 11.0 | 440 | 0.2588 | 0.9245 | 0.9246 | 0.9245 | 0.9233 |
|
96 |
+
| 0.264 | 12.0 | 480 | 0.2811 | 0.9096 | 0.9155 | 0.9096 | 0.9097 |
|
97 |
+
| 0.2082 | 13.0 | 520 | 0.2368 | 0.9238 | 0.9244 | 0.9238 | 0.9225 |
|
98 |
+
| 0.1506 | 14.0 | 560 | 0.2552 | 0.9205 | 0.9244 | 0.9205 | 0.9200 |
|
99 |
+
| 0.179 | 15.0 | 600 | 0.2133 | 0.9401 | 0.9421 | 0.9401 | 0.9399 |
|
100 |
+
| 0.1388 | 16.0 | 640 | 0.2170 | 0.9376 | 0.9388 | 0.9376 | 0.9377 |
|
101 |
+
| 0.116 | 17.0 | 680 | 0.1817 | 0.9466 | 0.9468 | 0.9466 | 0.9464 |
|
102 |
+
| 0.0976 | 18.0 | 720 | 0.1915 | 0.9470 | 0.9477 | 0.9470 | 0.9473 |
|
103 |
+
| 0.0806 | 19.0 | 760 | 0.1876 | 0.9492 | 0.9501 | 0.9492 | 0.9493 |
|
104 |
+
| 0.0911 | 20.0 | 800 | 0.1807 | 0.9506 | 0.9510 | 0.9506 | 0.9506 |
|
105 |
+
|
106 |
+
|
107 |
+
### Framework versions
|
108 |
+
|
109 |
+
- Transformers 4.39.3
|
110 |
+
- Pytorch 2.0.1
|
111 |
+
- Datasets 2.18.0
|
112 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/levit-128",
|
3 |
+
"architectures": [
|
4 |
+
"LevitForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_ratio": [
|
7 |
+
2,
|
8 |
+
2,
|
9 |
+
2
|
10 |
+
],
|
11 |
+
"depths": [
|
12 |
+
4,
|
13 |
+
4,
|
14 |
+
4
|
15 |
+
],
|
16 |
+
"down_ops": [
|
17 |
+
[
|
18 |
+
"Subsample",
|
19 |
+
16,
|
20 |
+
8,
|
21 |
+
4,
|
22 |
+
2,
|
23 |
+
2
|
24 |
+
],
|
25 |
+
[
|
26 |
+
"Subsample",
|
27 |
+
16,
|
28 |
+
16,
|
29 |
+
4,
|
30 |
+
2,
|
31 |
+
2
|
32 |
+
],
|
33 |
+
[
|
34 |
+
""
|
35 |
+
]
|
36 |
+
],
|
37 |
+
"drop_path_rate": 0,
|
38 |
+
"hidden_sizes": [
|
39 |
+
128,
|
40 |
+
256,
|
41 |
+
384
|
42 |
+
],
|
43 |
+
"id2label": {
|
44 |
+
"0": "astilbe",
|
45 |
+
"1": "bellflower",
|
46 |
+
"2": "black_eyed_susan",
|
47 |
+
"3": "calendula",
|
48 |
+
"4": "california_poppy",
|
49 |
+
"5": "carnation",
|
50 |
+
"6": "common_daisy",
|
51 |
+
"7": "coreopsis",
|
52 |
+
"8": "daffodil",
|
53 |
+
"9": "dandelion",
|
54 |
+
"10": "iris",
|
55 |
+
"11": "magnolia",
|
56 |
+
"12": "rose",
|
57 |
+
"13": "sunflower",
|
58 |
+
"14": "tulip",
|
59 |
+
"15": "water_lily"
|
60 |
+
},
|
61 |
+
"image_size": 224,
|
62 |
+
"initializer_range": 0.02,
|
63 |
+
"kernel_size": 3,
|
64 |
+
"key_dim": [
|
65 |
+
16,
|
66 |
+
16,
|
67 |
+
16
|
68 |
+
],
|
69 |
+
"label2id": {
|
70 |
+
"astilbe": 0,
|
71 |
+
"bellflower": 1,
|
72 |
+
"black_eyed_susan": 2,
|
73 |
+
"calendula": 3,
|
74 |
+
"california_poppy": 4,
|
75 |
+
"carnation": 5,
|
76 |
+
"common_daisy": 6,
|
77 |
+
"coreopsis": 7,
|
78 |
+
"daffodil": 8,
|
79 |
+
"dandelion": 9,
|
80 |
+
"iris": 10,
|
81 |
+
"magnolia": 11,
|
82 |
+
"rose": 12,
|
83 |
+
"sunflower": 13,
|
84 |
+
"tulip": 14,
|
85 |
+
"water_lily": 15
|
86 |
+
},
|
87 |
+
"mlp_ratio": [
|
88 |
+
2,
|
89 |
+
2,
|
90 |
+
2
|
91 |
+
],
|
92 |
+
"model_type": "levit",
|
93 |
+
"num_attention_heads": [
|
94 |
+
4,
|
95 |
+
8,
|
96 |
+
12
|
97 |
+
],
|
98 |
+
"num_channels": 3,
|
99 |
+
"padding": 1,
|
100 |
+
"patch_size": 16,
|
101 |
+
"problem_type": "single_label_classification",
|
102 |
+
"stride": 2,
|
103 |
+
"torch_dtype": "float32",
|
104 |
+
"transformers_version": "4.39.3"
|
105 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:127217572d7d53e9d5f4de3e3f8fbf1a0368f7d724e93fe3acd7c5b6b70d9283
|
3 |
+
size 34042032
|
preprocessor_config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_center_crop",
|
8 |
+
"crop_size",
|
9 |
+
"do_rescale",
|
10 |
+
"rescale_factor",
|
11 |
+
"do_normalize",
|
12 |
+
"image_mean",
|
13 |
+
"image_std",
|
14 |
+
"return_tensors",
|
15 |
+
"data_format",
|
16 |
+
"input_data_format"
|
17 |
+
],
|
18 |
+
"crop_size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
},
|
22 |
+
"do_center_crop": true,
|
23 |
+
"do_normalize": true,
|
24 |
+
"do_rescale": true,
|
25 |
+
"do_resize": true,
|
26 |
+
"image_mean": [
|
27 |
+
0.485,
|
28 |
+
0.456,
|
29 |
+
0.406
|
30 |
+
],
|
31 |
+
"image_processor_type": "LevitImageProcessor",
|
32 |
+
"image_std": [
|
33 |
+
0.229,
|
34 |
+
0.224,
|
35 |
+
0.225
|
36 |
+
],
|
37 |
+
"resample": 3,
|
38 |
+
"rescale_factor": 0.00392156862745098,
|
39 |
+
"size": {
|
40 |
+
"shortest_edge": 224
|
41 |
+
}
|
42 |
+
}
|
runs/Apr09_18-00-14_165-1-65-97/events.out.tfevents.1712685614.165-1-65-97.1392.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1971d903ee4d3c763e7f8a0a838270c0ac781cfc62d16d96982c7ca1144fd7e4
|
3 |
+
size 32147
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:523d806ba95fa2618dd032be0059d51252c7b04de0c73fe026c8b39cde113940
|
3 |
+
size 4475
|