momo345 commited on
Commit
f07a138
1 Parent(s): c5f0baa

End of training

Browse files
README.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/levit-256
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-256-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.9520871143375681
29
+ - name: Precision
30
+ type: precision
31
+ value: 0.9522871286223231
32
+ - name: Recall
33
+ type: recall
34
+ value: 0.9520871143375681
35
+ - name: F1
36
+ type: f1
37
+ value: 0.9518251458019376
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-256-finetuned-flower
44
+
45
+ This model is a fine-tuned version of [facebook/levit-256](https://huggingface.co/facebook/levit-256) on the imagefolder dataset.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.1677
48
+ - Accuracy: 0.9521
49
+ - Precision: 0.9523
50
+ - Recall: 0.9521
51
+ - F1: 0.9518
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.599 | 1.0 | 40 | 0.5907 | 0.8207 | 0.8515 | 0.8207 | 0.8219 |
86
+ | 0.7842 | 2.0 | 80 | 1.4800 | 0.6693 | 0.7271 | 0.6693 | 0.6607 |
87
+ | 0.7716 | 3.0 | 120 | 0.8614 | 0.7554 | 0.7853 | 0.7554 | 0.7544 |
88
+ | 0.5976 | 4.0 | 160 | 0.5576 | 0.8243 | 0.8470 | 0.8243 | 0.8260 |
89
+ | 0.488 | 5.0 | 200 | 0.4656 | 0.8555 | 0.8724 | 0.8555 | 0.8546 |
90
+ | 0.4871 | 6.0 | 240 | 0.4387 | 0.8672 | 0.8823 | 0.8672 | 0.8672 |
91
+ | 0.3606 | 7.0 | 280 | 0.3041 | 0.9045 | 0.9053 | 0.9045 | 0.9034 |
92
+ | 0.3159 | 8.0 | 320 | 0.3283 | 0.8976 | 0.9022 | 0.8976 | 0.8961 |
93
+ | 0.3078 | 9.0 | 360 | 0.2848 | 0.9125 | 0.9156 | 0.9125 | 0.9124 |
94
+ | 0.2922 | 10.0 | 400 | 0.2526 | 0.9180 | 0.9212 | 0.9180 | 0.9184 |
95
+ | 0.2412 | 11.0 | 440 | 0.2367 | 0.9281 | 0.9306 | 0.9281 | 0.9280 |
96
+ | 0.2095 | 12.0 | 480 | 0.2283 | 0.9314 | 0.9323 | 0.9314 | 0.9305 |
97
+ | 0.1786 | 13.0 | 520 | 0.1890 | 0.9408 | 0.9412 | 0.9408 | 0.9408 |
98
+ | 0.123 | 14.0 | 560 | 0.2071 | 0.9383 | 0.9398 | 0.9383 | 0.9382 |
99
+ | 0.1481 | 15.0 | 600 | 0.1854 | 0.9426 | 0.9433 | 0.9426 | 0.9426 |
100
+ | 0.125 | 16.0 | 640 | 0.2051 | 0.9376 | 0.9400 | 0.9376 | 0.9373 |
101
+ | 0.1135 | 17.0 | 680 | 0.1785 | 0.9495 | 0.9496 | 0.9495 | 0.9495 |
102
+ | 0.0815 | 18.0 | 720 | 0.1655 | 0.9539 | 0.9542 | 0.9539 | 0.9538 |
103
+ | 0.0784 | 19.0 | 760 | 0.1707 | 0.9525 | 0.9527 | 0.9525 | 0.9521 |
104
+ | 0.0905 | 20.0 | 800 | 0.1677 | 0.9521 | 0.9523 | 0.9521 | 0.9518 |
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-256",
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
+ 32,
20
+ 8,
21
+ 4,
22
+ 2,
23
+ 2
24
+ ],
25
+ [
26
+ "Subsample",
27
+ 32,
28
+ 12,
29
+ 4,
30
+ 2,
31
+ 2
32
+ ],
33
+ [
34
+ ""
35
+ ]
36
+ ],
37
+ "drop_path_rate": 0,
38
+ "hidden_sizes": [
39
+ 256,
40
+ 384,
41
+ 512
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
+ 32,
66
+ 32,
67
+ 32
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
+ 6,
96
+ 8
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:37915f7bdb3b0c2c27452a354d0491c184515b262ae3795a9a8f1f66a7b64524
3
+ size 71842408
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-10-24_165-1-65-97/events.out.tfevents.1712686224.165-1-65-97.1392.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b360bfa0442a6c12fd66b684c3317ea7b2b741df7efb8357670a62704eecc4b7
3
+ size 32146
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b063503c9bad30dfa0027e534b12a5adf895695c29a1f822b016d9328045f4a5
3
+ size 4475