hamnabint commited on
Commit
d32e7d0
·
verified ·
1 Parent(s): e58c2f7

End of training

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: microsoft/swin-tiny-patch4-window7-224
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ - precision
11
+ model-index:
12
+ - name: swin-transformer-results
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # swin-transformer-results
20
+
21
+ This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.8055
24
+ - Accuracy: 0.6794
25
+ - F1: 0.6810
26
+ - Precision: 0.6904
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 2e-05
46
+ - train_batch_size: 8
47
+ - eval_batch_size: 8
48
+ - seed: 42
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 3
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision |
56
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|
57
+ | 1.0686 | 0.1952 | 500 | 1.0585 | 0.5266 | 0.5042 | 0.5355 |
58
+ | 1.3283 | 0.3903 | 1000 | 1.0015 | 0.5722 | 0.5794 | 0.6006 |
59
+ | 0.991 | 0.5855 | 1500 | 0.9601 | 0.5828 | 0.5865 | 0.6194 |
60
+ | 0.7919 | 0.7806 | 2000 | 0.9066 | 0.6135 | 0.6191 | 0.6580 |
61
+ | 0.9748 | 0.9758 | 2500 | 0.8327 | 0.6460 | 0.6443 | 0.6458 |
62
+ | 0.7183 | 1.1710 | 3000 | 0.8808 | 0.6421 | 0.6419 | 0.6638 |
63
+ | 0.769 | 1.3661 | 3500 | 0.8454 | 0.6526 | 0.6483 | 0.6553 |
64
+ | 0.8558 | 1.5613 | 4000 | 0.8773 | 0.6482 | 0.6364 | 0.6454 |
65
+ | 0.6713 | 1.7564 | 4500 | 0.8338 | 0.6561 | 0.6560 | 0.6711 |
66
+ | 0.7476 | 1.9516 | 5000 | 0.8083 | 0.6632 | 0.6636 | 0.6690 |
67
+ | 0.6896 | 2.1468 | 5500 | 0.8055 | 0.6794 | 0.6810 | 0.6904 |
68
+ | 0.648 | 2.3419 | 6000 | 0.8252 | 0.6697 | 0.6726 | 0.6822 |
69
+ | 0.5969 | 2.5371 | 6500 | 0.8179 | 0.6697 | 0.6676 | 0.6661 |
70
+ | 0.7098 | 2.7322 | 7000 | 0.8139 | 0.6724 | 0.6705 | 0.6698 |
71
+ | 0.5318 | 2.9274 | 7500 | 0.8033 | 0.6790 | 0.6783 | 0.6793 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.44.2
77
+ - Pytorch 2.4.1+cpu
78
+ - Datasets 3.0.0
79
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.6794027228809838,
4
+ "eval_f1": 0.6810232542216262,
5
+ "eval_loss": 0.8055222034454346,
6
+ "eval_precision": 0.6903667447745538,
7
+ "eval_runtime": 864.6277,
8
+ "eval_samples_per_second": 2.634,
9
+ "eval_steps_per_second": 0.33,
10
+ "total_flos": 1.5279830292400128e+18,
11
+ "train_loss": 0.8075623554765263,
12
+ "train_runtime": 38574.522,
13
+ "train_samples_per_second": 1.594,
14
+ "train_steps_per_second": 0.199
15
+ }
config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-tiny-patch4-window7-224",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 6,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 96,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 768,
19
+ "id2label": {
20
+ "0": "happy",
21
+ "1": "sad",
22
+ "2": "angry",
23
+ "3": "neutral"
24
+ },
25
+ "image_size": 224,
26
+ "initializer_range": 0.02,
27
+ "label2id": {
28
+ "angry": 2,
29
+ "happy": 0,
30
+ "neutral": 3,
31
+ "sad": 1
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "mlp_ratio": 4.0,
35
+ "model_type": "swin",
36
+ "num_channels": 3,
37
+ "num_heads": [
38
+ 3,
39
+ 6,
40
+ 12,
41
+ 24
42
+ ],
43
+ "num_layers": 4,
44
+ "out_features": [
45
+ "stage4"
46
+ ],
47
+ "out_indices": [
48
+ 4
49
+ ],
50
+ "patch_size": 4,
51
+ "path_norm": true,
52
+ "problem_type": "single_label_classification",
53
+ "qkv_bias": true,
54
+ "stage_names": [
55
+ "stem",
56
+ "stage1",
57
+ "stage2",
58
+ "stage3",
59
+ "stage4"
60
+ ],
61
+ "torch_dtype": "float32",
62
+ "transformers_version": "4.44.2",
63
+ "use_absolute_embeddings": false,
64
+ "window_size": 7
65
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.6794027228809838,
4
+ "eval_f1": 0.6810232542216262,
5
+ "eval_loss": 0.8055222034454346,
6
+ "eval_precision": 0.6903667447745538,
7
+ "eval_runtime": 864.6277,
8
+ "eval_samples_per_second": 2.634,
9
+ "eval_steps_per_second": 0.33
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:184599c33ea8dfc549e3f2298272144331a0e15568fc103666fa79c323ef4db1
3
+ size 110348984
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.485,
7
+ 0.456,
8
+ 0.406
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "resample": 3,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 1.5279830292400128e+18,
4
+ "train_loss": 0.8075623554765263,
5
+ "train_runtime": 38574.522,
6
+ "train_samples_per_second": 1.594,
7
+ "train_steps_per_second": 0.199
8
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0566a38c64901512b53dfad3ef35ffd9d7fd3b4cd14650986935393d9d2d95d6
3
+ size 5112