Lpdsc commited on
Commit
2873306
1 Parent(s): 94c350e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/swin-tiny-patch4-window7-224
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: swin-tiny-patch4-window7-224-finetuned-eurosat
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: train
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.9322033898305084
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
+ # swin-tiny-patch4-window7-224-finetuned-eurosat
32
+
33
+ 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 imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.2078
36
+ - Accuracy: 0.9322
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: 32
57
+ - eval_batch_size: 32
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 4
60
+ - total_train_batch_size: 128
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: 3
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | No log | 0.94 | 4 | 0.2574 | 0.9153 |
71
+ | No log | 1.88 | 8 | 0.2333 | 0.9153 |
72
+ | 0.1896 | 2.82 | 12 | 0.2078 | 0.9322 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.38.1
78
+ - Pytorch 2.1.0+cu121
79
+ - Datasets 2.17.1
80
+ - Tokenizers 0.15.2
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.82,
3
+ "eval_accuracy": 0.9322033898305084,
4
+ "eval_loss": 0.20782968401908875,
5
+ "eval_runtime": 3.4548,
6
+ "eval_samples_per_second": 17.078,
7
+ "eval_steps_per_second": 0.579,
8
+ "total_flos": 3.7283983478784e+16,
9
+ "train_loss": 0.17616023744146028,
10
+ "train_runtime": 116.4895,
11
+ "train_samples_per_second": 13.546,
12
+ "train_steps_per_second": 0.103
13
+ }
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Damaged",
21
+ "1": "Normal"
22
+ },
23
+ "image_size": 224,
24
+ "initializer_range": 0.02,
25
+ "label2id": {
26
+ "Damaged": 0,
27
+ "Normal": 1
28
+ },
29
+ "layer_norm_eps": 1e-05,
30
+ "mlp_ratio": 4.0,
31
+ "model_type": "swin",
32
+ "num_channels": 3,
33
+ "num_heads": [
34
+ 3,
35
+ 6,
36
+ 12,
37
+ 24
38
+ ],
39
+ "num_layers": 4,
40
+ "out_features": [
41
+ "stage4"
42
+ ],
43
+ "out_indices": [
44
+ 4
45
+ ],
46
+ "patch_size": 4,
47
+ "path_norm": true,
48
+ "problem_type": "single_label_classification",
49
+ "qkv_bias": true,
50
+ "stage_names": [
51
+ "stem",
52
+ "stage1",
53
+ "stage2",
54
+ "stage3",
55
+ "stage4"
56
+ ],
57
+ "torch_dtype": "float32",
58
+ "transformers_version": "4.38.1",
59
+ "use_absolute_embeddings": false,
60
+ "window_size": 7
61
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.82,
3
+ "eval_accuracy": 0.9322033898305084,
4
+ "eval_loss": 0.20782968401908875,
5
+ "eval_runtime": 3.4548,
6
+ "eval_samples_per_second": 17.078,
7
+ "eval_steps_per_second": 0.579
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960b69ae11e813d40983d4dfb37a715a0c94dee88654a5adc0793770b26dc166
3
+ size 110342832
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
+ }
runs/Feb26_14-15-18_d0a1246b1f30/events.out.tfevents.1708956919.d0a1246b1f30.1541.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f0739b2d48114ae0053b2db3cee76d6d850a45fea3064d17a973cb2655c1502
3
+ size 6537
runs/Feb26_14-15-18_d0a1246b1f30/events.out.tfevents.1708957064.d0a1246b1f30.1541.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2015a8e6e5b62930b8c8a7b6462a03e27bfd5ab9901e8ce91d4ada021cfcf64
3
+ size 405
runs/Feb26_14-15-18_d0a1246b1f30/events.out.tfevents.1708957110.d0a1246b1f30.1541.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71f70c4afd322b33aff8480bdfd10db79c9bc9d006d68c0bce50bf2b6bddc1a7
3
+ size 6586
runs/Feb26_14-15-18_d0a1246b1f30/events.out.tfevents.1708957231.d0a1246b1f30.1541.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55a8e9b4e249e7acf3a9123b2f44b2dce85ce57c3f4eaaea0e7dbd838478776e
3
+ size 405
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.82,
3
+ "total_flos": 3.7283983478784e+16,
4
+ "train_loss": 0.17616023744146028,
5
+ "train_runtime": 116.4895,
6
+ "train_samples_per_second": 13.546,
7
+ "train_steps_per_second": 0.103
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9322033898305084,
3
+ "best_model_checkpoint": "swin-tiny-patch4-window7-224-finetuned-eurosat/checkpoint-12",
4
+ "epoch": 2.8235294117647056,
5
+ "eval_steps": 500,
6
+ "global_step": 12,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.94,
13
+ "eval_accuracy": 0.9152542372881356,
14
+ "eval_loss": 0.2573569416999817,
15
+ "eval_runtime": 3.3955,
16
+ "eval_samples_per_second": 17.376,
17
+ "eval_steps_per_second": 0.589,
18
+ "step": 4
19
+ },
20
+ {
21
+ "epoch": 1.88,
22
+ "eval_accuracy": 0.9152542372881356,
23
+ "eval_loss": 0.2333347201347351,
24
+ "eval_runtime": 4.3391,
25
+ "eval_samples_per_second": 13.597,
26
+ "eval_steps_per_second": 0.461,
27
+ "step": 8
28
+ },
29
+ {
30
+ "epoch": 2.35,
31
+ "grad_norm": 11.989400863647461,
32
+ "learning_rate": 1e-05,
33
+ "loss": 0.1896,
34
+ "step": 10
35
+ },
36
+ {
37
+ "epoch": 2.82,
38
+ "eval_accuracy": 0.9322033898305084,
39
+ "eval_loss": 0.20782968401908875,
40
+ "eval_runtime": 3.6448,
41
+ "eval_samples_per_second": 16.188,
42
+ "eval_steps_per_second": 0.549,
43
+ "step": 12
44
+ },
45
+ {
46
+ "epoch": 2.82,
47
+ "step": 12,
48
+ "total_flos": 3.7283983478784e+16,
49
+ "train_loss": 0.17616023744146028,
50
+ "train_runtime": 116.4895,
51
+ "train_samples_per_second": 13.546,
52
+ "train_steps_per_second": 0.103
53
+ }
54
+ ],
55
+ "logging_steps": 10,
56
+ "max_steps": 12,
57
+ "num_input_tokens_seen": 0,
58
+ "num_train_epochs": 3,
59
+ "save_steps": 500,
60
+ "total_flos": 3.7283983478784e+16,
61
+ "train_batch_size": 32,
62
+ "trial_name": null,
63
+ "trial_params": null
64
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfe922973277a05a1e3c19748fc5c7a7792ad637191bc46dedb245c844f2d7ef
3
+ size 4984