zbbg1111 commited on
Commit
e51cde8
1 Parent(s): 1a08c3a

Training in progress, epoch 1

Browse files
Files changed (27) hide show
  1. README.md +80 -0
  2. all_results.json +13 -0
  3. config.json +81 -0
  4. eval_results.json +8 -0
  5. model.safetensors +3 -0
  6. preprocessor_config.json +22 -0
  7. runs/Nov16_10-11-36_PC27LEL8/events.out.tfevents.1700147496.PC27LEL8 +3 -0
  8. runs/Nov16_10-11-36_PC27LEL8/events.out.tfevents.1700147884.PC27LEL8 +3 -0
  9. runs/Nov16_15-16-26_PC27LEL8/events.out.tfevents.1700165787.PC27LEL8 +3 -0
  10. runs/Nov16_15-16-26_PC27LEL8/events.out.tfevents.1700166077.PC27LEL8 +3 -0
  11. runs/Nov16_15-30-49_PC27LEL8/events.out.tfevents.1700166649.PC27LEL8 +3 -0
  12. runs/Nov16_15-30-49_PC27LEL8/events.out.tfevents.1700166964.PC27LEL8 +3 -0
  13. runs/Nov16_16-05-13_PC27LEL8/events.out.tfevents.1700168713.PC27LEL8 +3 -0
  14. runs/Nov16_16-06-15_PC27LEL8/events.out.tfevents.1700168776.PC27LEL8 +3 -0
  15. runs/Nov16_16-06-15_PC27LEL8/events.out.tfevents.1700169095.PC27LEL8 +3 -0
  16. runs/Nov16_16-21-10_PC27LEL8/events.out.tfevents.1700169670.PC27LEL8 +3 -0
  17. runs/Nov16_16-21-10_PC27LEL8/events.out.tfevents.1700169970.PC27LEL8 +3 -0
  18. runs/Nov16_16-28-10_PC27LEL8/events.out.tfevents.1700170091.PC27LEL8 +0 -0
  19. runs/Nov16_16-30-15_PC27LEL8/events.out.tfevents.1700170216.PC27LEL8 +3 -0
  20. runs/Nov16_16-30-15_PC27LEL8/events.out.tfevents.1700170533.PC27LEL8 +3 -0
  21. runs/Nov16_17-10-25_PC27LEL8/events.out.tfevents.1700172625.PC27LEL8 +3 -0
  22. runs/Nov16_17-10-25_PC27LEL8/events.out.tfevents.1700172909.PC27LEL8 +3 -0
  23. runs/Nov17_14-43-35_PC27LEL8/events.out.tfevents.1700250215.PC27LEL8 +0 -0
  24. runs/Nov17_14-47-12_PC27LEL8/events.out.tfevents.1700250432.PC27LEL8 +3 -0
  25. train_results.json +8 -0
  26. trainer_state.json +55 -0
  27. training_args.bin +3 -0
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-geo-industrials
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.9803921568627451
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-geo-industrials
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.1426
36
+ - Accuracy: 0.9804
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.8 | 3 | 0.1426 | 0.9804 |
71
+ | No log | 1.87 | 7 | 0.0373 | 0.9804 |
72
+ | No log | 2.4 | 9 | 0.0328 | 0.9804 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.35.0
78
+ - Pytorch 2.1.0+cpu
79
+ - Datasets 2.14.6
80
+ - Tokenizers 0.14.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.4,
3
+ "eval_accuracy": 0.9803921568627451,
4
+ "eval_loss": 0.14262183010578156,
5
+ "eval_runtime": 4.6152,
6
+ "eval_samples_per_second": 11.05,
7
+ "eval_steps_per_second": 0.433,
8
+ "total_flos": 2.759014777430016e+16,
9
+ "train_loss": 0.25441352526346844,
10
+ "train_runtime": 256.0149,
11
+ "train_samples_per_second": 5.379,
12
+ "train_steps_per_second": 0.035
13
+ }
config.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "AnnualCrop",
21
+ "1": "Cement",
22
+ "2": "Forest",
23
+ "3": "HerbaceousVegetation",
24
+ "4": "Highway",
25
+ "5": "Industrial",
26
+ "6": "OilStorage",
27
+ "7": "Pasture",
28
+ "8": "PermanentCrop",
29
+ "9": "Residential",
30
+ "10": "River",
31
+ "11": "SeaLake"
32
+ },
33
+ "image_size": 224,
34
+ "initializer_range": 0.02,
35
+ "label2id": {
36
+ "AnnualCrop": 0,
37
+ "Cement": 1,
38
+ "Forest": 2,
39
+ "HerbaceousVegetation": 3,
40
+ "Highway": 4,
41
+ "Industrial": 5,
42
+ "OilStorage": 6,
43
+ "Pasture": 7,
44
+ "PermanentCrop": 8,
45
+ "Residential": 9,
46
+ "River": 10,
47
+ "SeaLake": 11
48
+ },
49
+ "layer_norm_eps": 1e-05,
50
+ "mlp_ratio": 4.0,
51
+ "model_type": "swin",
52
+ "num_channels": 3,
53
+ "num_heads": [
54
+ 3,
55
+ 6,
56
+ 12,
57
+ 24
58
+ ],
59
+ "num_layers": 4,
60
+ "out_features": [
61
+ "stage4"
62
+ ],
63
+ "out_indices": [
64
+ 4
65
+ ],
66
+ "patch_size": 4,
67
+ "path_norm": true,
68
+ "problem_type": "single_label_classification",
69
+ "qkv_bias": true,
70
+ "stage_names": [
71
+ "stem",
72
+ "stage1",
73
+ "stage2",
74
+ "stage3",
75
+ "stage4"
76
+ ],
77
+ "torch_dtype": "float32",
78
+ "transformers_version": "4.35.0",
79
+ "use_absolute_embeddings": false,
80
+ "window_size": 7
81
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.4,
3
+ "eval_accuracy": 0.9803921568627451,
4
+ "eval_loss": 0.14262183010578156,
5
+ "eval_runtime": 4.6152,
6
+ "eval_samples_per_second": 11.05,
7
+ "eval_steps_per_second": 0.433
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bcfb9b7de3f1ac2eba28ed69bd478b8509db327b757ed44a8b0fde0ab945f9c
3
+ size 110373600
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/Nov16_10-11-36_PC27LEL8/events.out.tfevents.1700147496.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14c1f2931bc91b83022575c4860ab352a05093550299ee8c3894d9e4396ba805
3
+ size 5967
runs/Nov16_10-11-36_PC27LEL8/events.out.tfevents.1700147884.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc9092ee5f028c3812d3a77f7bf465399bc9ecccb2a84e4f6c0914d69c21328d
3
+ size 357
runs/Nov16_15-16-26_PC27LEL8/events.out.tfevents.1700165787.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c4bd0ce897fbee7b0afd3076f6c3534f6b1284cb62173c438a653457c9b8a7d
3
+ size 5967
runs/Nov16_15-16-26_PC27LEL8/events.out.tfevents.1700166077.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:515f574f52a6278f4fc1369b7da47e115f62ad9c292b1b8923c972b442041ddc
3
+ size 357
runs/Nov16_15-30-49_PC27LEL8/events.out.tfevents.1700166649.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:830f86829a02b1e800fc47bcf761477b2ac1053a36e2a94e6b839e647eac3047
3
+ size 5967
runs/Nov16_15-30-49_PC27LEL8/events.out.tfevents.1700166964.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65e79b152322014164efe7090a7e1640ad0dbe4ea7451e6fc7cd8f562a29d3af
3
+ size 357
runs/Nov16_16-05-13_PC27LEL8/events.out.tfevents.1700168713.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45a0c313d98b6f90506f9f3033f12f9c61aa15ce5515c58b0e97e251d899c05e
3
+ size 4668
runs/Nov16_16-06-15_PC27LEL8/events.out.tfevents.1700168776.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e5093345cdc9bfb196b8582f9521de935309706b5a7e56934e9d7c95b30425c
3
+ size 5967
runs/Nov16_16-06-15_PC27LEL8/events.out.tfevents.1700169095.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5422ec1e5d016a0e51d9eae7ce1233072d458492d72f293babcf6a4b66a2473
3
+ size 357
runs/Nov16_16-21-10_PC27LEL8/events.out.tfevents.1700169670.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f055288f3891fc8d244aee4be43322cad8d726b2e4b4431fef9b21f819d8229
3
+ size 5967
runs/Nov16_16-21-10_PC27LEL8/events.out.tfevents.1700169970.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04875c6d4db6f7a694884414ee8045e824901ab398920516c54a509e51042cd7
3
+ size 357
runs/Nov16_16-28-10_PC27LEL8/events.out.tfevents.1700170091.PC27LEL8 ADDED
File without changes
runs/Nov16_16-30-15_PC27LEL8/events.out.tfevents.1700170216.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:950a10b6d9774606e6070b97f9e7960ee891cde7e24731a4a99eefa2671f5703
3
+ size 5967
runs/Nov16_16-30-15_PC27LEL8/events.out.tfevents.1700170533.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecc4c074e0b0b0384a72378ffec0c4e1de8c7a5574cb27a29a5931657c14fe97
3
+ size 357
runs/Nov16_17-10-25_PC27LEL8/events.out.tfevents.1700172625.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd840d3beefcbca5837d06e0d11e67025359a4fe8b4d60e894fef4a50827bad9
3
+ size 5967
runs/Nov16_17-10-25_PC27LEL8/events.out.tfevents.1700172909.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cde2419c87e0ae613b0be32981e5d05d73ac55b8460669636f510d0d5baafa2
3
+ size 357
runs/Nov17_14-43-35_PC27LEL8/events.out.tfevents.1700250215.PC27LEL8 ADDED
File without changes
runs/Nov17_14-47-12_PC27LEL8/events.out.tfevents.1700250432.PC27LEL8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fbbe040c520a69186b3dfbd96170e5420e8c7c028b171873d5293f05a6c5b4c
3
+ size 8041
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.4,
3
+ "total_flos": 2.759014777430016e+16,
4
+ "train_loss": 0.25441352526346844,
5
+ "train_runtime": 256.0149,
6
+ "train_samples_per_second": 5.379,
7
+ "train_steps_per_second": 0.035
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9803921568627451,
3
+ "best_model_checkpoint": "swin-tiny-patch4-window7-224-finetuned-geo-industrials\\checkpoint-3",
4
+ "epoch": 2.4,
5
+ "eval_steps": 500,
6
+ "global_step": 9,
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.8,
13
+ "eval_accuracy": 0.9803921568627451,
14
+ "eval_loss": 0.14262183010578156,
15
+ "eval_runtime": 4.423,
16
+ "eval_samples_per_second": 11.531,
17
+ "eval_steps_per_second": 0.452,
18
+ "step": 3
19
+ },
20
+ {
21
+ "epoch": 1.87,
22
+ "eval_accuracy": 0.9803921568627451,
23
+ "eval_loss": 0.0373072475194931,
24
+ "eval_runtime": 4.3389,
25
+ "eval_samples_per_second": 11.754,
26
+ "eval_steps_per_second": 0.461,
27
+ "step": 7
28
+ },
29
+ {
30
+ "epoch": 2.4,
31
+ "eval_accuracy": 0.9803921568627451,
32
+ "eval_loss": 0.03279232978820801,
33
+ "eval_runtime": 4.51,
34
+ "eval_samples_per_second": 11.308,
35
+ "eval_steps_per_second": 0.443,
36
+ "step": 9
37
+ },
38
+ {
39
+ "epoch": 2.4,
40
+ "step": 9,
41
+ "total_flos": 2.759014777430016e+16,
42
+ "train_loss": 0.25441352526346844,
43
+ "train_runtime": 256.0149,
44
+ "train_samples_per_second": 5.379,
45
+ "train_steps_per_second": 0.035
46
+ }
47
+ ],
48
+ "logging_steps": 10,
49
+ "max_steps": 9,
50
+ "num_train_epochs": 3,
51
+ "save_steps": 500,
52
+ "total_flos": 2.759014777430016e+16,
53
+ "trial_name": null,
54
+ "trial_params": null
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d6c880e9ad8d50eea0d43641f77a2e03013fb46933711f8cf1b874a7745c3aa
3
+ size 4664