Training in progress, epoch 1
Browse files- README.md +80 -0
- all_results.json +13 -0
- config.json +71 -0
- eval_results.json +8 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Nov16_17-17-34_PC27LEL8/events.out.tfevents.1700173054.PC27LEL8 +3 -0
- runs/Nov16_17-17-34_PC27LEL8/events.out.tfevents.1700173398.PC27LEL8 +3 -0
- runs/Nov17_12-13-58_PC27LEL8/events.out.tfevents.1700241238.PC27LEL8 +3 -0
- train_results.json +8 -0
- trainer_state.json +55 -0
- 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-industrials1
|
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-industrials1
|
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.3531,
|
6 |
+
"eval_samples_per_second": 11.716,
|
7 |
+
"eval_steps_per_second": 0.459,
|
8 |
+
"total_flos": 2.759014777430016e+16,
|
9 |
+
"train_loss": 0.25441352526346844,
|
10 |
+
"train_runtime": 263.5301,
|
11 |
+
"train_samples_per_second": 5.225,
|
12 |
+
"train_steps_per_second": 0.034
|
13 |
+
}
|
config.json
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Highway",
|
24 |
+
"4": "OilStorage",
|
25 |
+
"5": "Residential",
|
26 |
+
"6": "River"
|
27 |
+
},
|
28 |
+
"image_size": 224,
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"label2id": {
|
31 |
+
"AnnualCrop": 0,
|
32 |
+
"Cement": 1,
|
33 |
+
"Forest": 2,
|
34 |
+
"Highway": 3,
|
35 |
+
"OilStorage": 4,
|
36 |
+
"Residential": 5,
|
37 |
+
"River": 6
|
38 |
+
},
|
39 |
+
"layer_norm_eps": 1e-05,
|
40 |
+
"mlp_ratio": 4.0,
|
41 |
+
"model_type": "swin",
|
42 |
+
"num_channels": 3,
|
43 |
+
"num_heads": [
|
44 |
+
3,
|
45 |
+
6,
|
46 |
+
12,
|
47 |
+
24
|
48 |
+
],
|
49 |
+
"num_layers": 4,
|
50 |
+
"out_features": [
|
51 |
+
"stage4"
|
52 |
+
],
|
53 |
+
"out_indices": [
|
54 |
+
4
|
55 |
+
],
|
56 |
+
"patch_size": 4,
|
57 |
+
"path_norm": true,
|
58 |
+
"problem_type": "single_label_classification",
|
59 |
+
"qkv_bias": true,
|
60 |
+
"stage_names": [
|
61 |
+
"stem",
|
62 |
+
"stage1",
|
63 |
+
"stage2",
|
64 |
+
"stage3",
|
65 |
+
"stage4"
|
66 |
+
],
|
67 |
+
"torch_dtype": "float32",
|
68 |
+
"transformers_version": "4.35.0",
|
69 |
+
"use_absolute_embeddings": false,
|
70 |
+
"window_size": 7
|
71 |
+
}
|
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.3531,
|
6 |
+
"eval_samples_per_second": 11.716,
|
7 |
+
"eval_steps_per_second": 0.459
|
8 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c4f72ea7e52ea07039bd8c614d9c0e480025c5d45be358f9cbabd2217559eeae
|
3 |
+
size 110358212
|
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_17-17-34_PC27LEL8/events.out.tfevents.1700173054.PC27LEL8
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8def17e13f29b5770a519169b73fb766c9e2c7a14898dd0440fee2ecb0cf36ef
|
3 |
+
size 5970
|
runs/Nov16_17-17-34_PC27LEL8/events.out.tfevents.1700173398.PC27LEL8
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4ba1961c9f712c70698659ceaad1397402a826d76a6533d22843abb196c5e11
|
3 |
+
size 357
|
runs/Nov17_12-13-58_PC27LEL8/events.out.tfevents.1700241238.PC27LEL8
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:571e2c907180993936ad2c61a83a9b0aca155ef51f8f8c8b710e79c60b9e9160
|
3 |
+
size 6091
|
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": 263.5301,
|
6 |
+
"train_samples_per_second": 5.225,
|
7 |
+
"train_steps_per_second": 0.034
|
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-industrials1\\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.4355,
|
16 |
+
"eval_samples_per_second": 11.498,
|
17 |
+
"eval_steps_per_second": 0.451,
|
18 |
+
"step": 3
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"epoch": 1.87,
|
22 |
+
"eval_accuracy": 0.9803921568627451,
|
23 |
+
"eval_loss": 0.0373072475194931,
|
24 |
+
"eval_runtime": 4.8366,
|
25 |
+
"eval_samples_per_second": 10.545,
|
26 |
+
"eval_steps_per_second": 0.414,
|
27 |
+
"step": 7
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 2.4,
|
31 |
+
"eval_accuracy": 0.9803921568627451,
|
32 |
+
"eval_loss": 0.03279232978820801,
|
33 |
+
"eval_runtime": 4.7194,
|
34 |
+
"eval_samples_per_second": 10.806,
|
35 |
+
"eval_steps_per_second": 0.424,
|
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": 263.5301,
|
44 |
+
"train_samples_per_second": 5.225,
|
45 |
+
"train_steps_per_second": 0.034
|
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:a851015402fb440d591c932a3706a0ee4ad73ec8f2e4b11c66dfdb801f99e0bf
|
3 |
+
size 4728
|