Training in progress, epoch 0
Browse files- README.md +81 -0
- all_results.json +13 -0
- config.json +63 -0
- eval_results.json +8 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/Mar09_14-54-37_6ea84fd0780b/events.out.tfevents.1741532164.6ea84fd0780b.386.0 +3 -0
- runs/Mar09_14-54-37_6ea84fd0780b/events.out.tfevents.1741532966.6ea84fd0780b.386.1 +3 -0
- runs/Mar09_17-18-53_6ea84fd0780b/events.out.tfevents.1741540746.6ea84fd0780b.386.2 +3 -0
- train_results.json +8 -0
- trainer_state.json +111 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
datasets:
|
| 8 |
+
- imagefolder
|
| 9 |
+
metrics:
|
| 10 |
+
- accuracy
|
| 11 |
+
model-index:
|
| 12 |
+
- name: swin-tiny-patch4-window7-224-finetuned-eurosat
|
| 13 |
+
results:
|
| 14 |
+
- task:
|
| 15 |
+
name: Image Classification
|
| 16 |
+
type: image-classification
|
| 17 |
+
dataset:
|
| 18 |
+
name: imagefolder
|
| 19 |
+
type: imagefolder
|
| 20 |
+
config: default
|
| 21 |
+
split: train
|
| 22 |
+
args: default
|
| 23 |
+
metrics:
|
| 24 |
+
- name: Accuracy
|
| 25 |
+
type: accuracy
|
| 26 |
+
value: 0.8990228013029316
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 30 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 31 |
+
|
| 32 |
+
# swin-tiny-patch4-window7-224-finetuned-eurosat
|
| 33 |
+
|
| 34 |
+
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.
|
| 35 |
+
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.2956
|
| 37 |
+
- Accuracy: 0.8990
|
| 38 |
+
|
| 39 |
+
## Model description
|
| 40 |
+
|
| 41 |
+
More information needed
|
| 42 |
+
|
| 43 |
+
## Intended uses & limitations
|
| 44 |
+
|
| 45 |
+
More information needed
|
| 46 |
+
|
| 47 |
+
## Training and evaluation data
|
| 48 |
+
|
| 49 |
+
More information needed
|
| 50 |
+
|
| 51 |
+
## Training procedure
|
| 52 |
+
|
| 53 |
+
### Training hyperparameters
|
| 54 |
+
|
| 55 |
+
The following hyperparameters were used during training:
|
| 56 |
+
- learning_rate: 5e-05
|
| 57 |
+
- train_batch_size: 32
|
| 58 |
+
- eval_batch_size: 32
|
| 59 |
+
- seed: 42
|
| 60 |
+
- gradient_accumulation_steps: 4
|
| 61 |
+
- total_train_batch_size: 128
|
| 62 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 63 |
+
- lr_scheduler_type: linear
|
| 64 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 65 |
+
- num_epochs: 3
|
| 66 |
+
|
| 67 |
+
### Training results
|
| 68 |
+
|
| 69 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 0.5698 | 0.9655 | 21 | 0.7486 | 0.6645 |
|
| 72 |
+
| 0.2988 | 1.9655 | 42 | 0.2956 | 0.8990 |
|
| 73 |
+
| 0.2695 | 2.9655 | 63 | 0.2595 | 0.8958 |
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
### Framework versions
|
| 77 |
+
|
| 78 |
+
- Transformers 4.48.3
|
| 79 |
+
- Pytorch 2.5.1+cu124
|
| 80 |
+
- Datasets 3.3.2
|
| 81 |
+
- Tokenizers 0.21.0
|
all_results.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.9655172413793105,
|
| 3 |
+
"eval_accuracy": 0.8990228013029316,
|
| 4 |
+
"eval_loss": 0.2956256568431854,
|
| 5 |
+
"eval_runtime": 16.6592,
|
| 6 |
+
"eval_samples_per_second": 18.428,
|
| 7 |
+
"eval_steps_per_second": 0.6,
|
| 8 |
+
"total_flos": 2.0203512366720614e+17,
|
| 9 |
+
"train_loss": 0.46530596036759636,
|
| 10 |
+
"train_runtime": 777.4672,
|
| 11 |
+
"train_samples_per_second": 10.638,
|
| 12 |
+
"train_steps_per_second": 0.081
|
| 13 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "1",
|
| 21 |
+
"1": "2",
|
| 22 |
+
"2": "3"
|
| 23 |
+
},
|
| 24 |
+
"image_size": 224,
|
| 25 |
+
"initializer_range": 0.02,
|
| 26 |
+
"label2id": {
|
| 27 |
+
"1": 0,
|
| 28 |
+
"2": 1,
|
| 29 |
+
"3": 2
|
| 30 |
+
},
|
| 31 |
+
"layer_norm_eps": 1e-05,
|
| 32 |
+
"mlp_ratio": 4.0,
|
| 33 |
+
"model_type": "swin",
|
| 34 |
+
"num_channels": 3,
|
| 35 |
+
"num_heads": [
|
| 36 |
+
3,
|
| 37 |
+
6,
|
| 38 |
+
12,
|
| 39 |
+
24
|
| 40 |
+
],
|
| 41 |
+
"num_layers": 4,
|
| 42 |
+
"out_features": [
|
| 43 |
+
"stage4"
|
| 44 |
+
],
|
| 45 |
+
"out_indices": [
|
| 46 |
+
4
|
| 47 |
+
],
|
| 48 |
+
"patch_size": 4,
|
| 49 |
+
"path_norm": true,
|
| 50 |
+
"problem_type": "single_label_classification",
|
| 51 |
+
"qkv_bias": true,
|
| 52 |
+
"stage_names": [
|
| 53 |
+
"stem",
|
| 54 |
+
"stage1",
|
| 55 |
+
"stage2",
|
| 56 |
+
"stage3",
|
| 57 |
+
"stage4"
|
| 58 |
+
],
|
| 59 |
+
"torch_dtype": "float32",
|
| 60 |
+
"transformers_version": "4.48.3",
|
| 61 |
+
"use_absolute_embeddings": false,
|
| 62 |
+
"window_size": 7
|
| 63 |
+
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.9655172413793105,
|
| 3 |
+
"eval_accuracy": 0.8990228013029316,
|
| 4 |
+
"eval_loss": 0.2956256568431854,
|
| 5 |
+
"eval_runtime": 16.6592,
|
| 6 |
+
"eval_samples_per_second": 18.428,
|
| 7 |
+
"eval_steps_per_second": 0.6
|
| 8 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a23eac5a851f15b1c81dbd8722be160f0d7cc28e5a8a2878295c197d1438cf23
|
| 3 |
+
size 110345908
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.485,
|
| 8 |
+
0.456,
|
| 9 |
+
0.406
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.229,
|
| 14 |
+
0.224,
|
| 15 |
+
0.225
|
| 16 |
+
],
|
| 17 |
+
"resample": 3,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
runs/Mar09_14-54-37_6ea84fd0780b/events.out.tfevents.1741532164.6ea84fd0780b.386.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40961cfcb77125809c6a72ae253656b672a47ca703c98fb4b7238fc0a7926508
|
| 3 |
+
size 8069
|
runs/Mar09_14-54-37_6ea84fd0780b/events.out.tfevents.1741532966.6ea84fd0780b.386.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdf1e214935c22c03221f76f8456a3d68539ee3dd2b07df9151789a76a3bddf5
|
| 3 |
+
size 405
|
runs/Mar09_17-18-53_6ea84fd0780b/events.out.tfevents.1741540746.6ea84fd0780b.386.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5355376540222ae009e49917e02b5b64004e296e47690f6fe1aa0896d0eb4486
|
| 3 |
+
size 6259
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.9655172413793105,
|
| 3 |
+
"total_flos": 2.0203512366720614e+17,
|
| 4 |
+
"train_loss": 0.46530596036759636,
|
| 5 |
+
"train_runtime": 777.4672,
|
| 6 |
+
"train_samples_per_second": 10.638,
|
| 7 |
+
"train_steps_per_second": 0.081
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": 0.8990228013029316,
|
| 3 |
+
"best_model_checkpoint": "swin-tiny-patch4-window7-224-finetuned-eurosat/checkpoint-42",
|
| 4 |
+
"epoch": 2.9655172413793105,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 63,
|
| 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.45977011494252873,
|
| 13 |
+
"grad_norm": 4.308095932006836,
|
| 14 |
+
"learning_rate": 4.732142857142857e-05,
|
| 15 |
+
"loss": 0.9696,
|
| 16 |
+
"step": 10
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.9195402298850575,
|
| 20 |
+
"grad_norm": 19.417911529541016,
|
| 21 |
+
"learning_rate": 3.839285714285715e-05,
|
| 22 |
+
"loss": 0.5698,
|
| 23 |
+
"step": 20
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.9655172413793104,
|
| 27 |
+
"eval_accuracy": 0.6644951140065146,
|
| 28 |
+
"eval_loss": 0.7485707402229309,
|
| 29 |
+
"eval_runtime": 18.0627,
|
| 30 |
+
"eval_samples_per_second": 16.996,
|
| 31 |
+
"eval_steps_per_second": 0.554,
|
| 32 |
+
"step": 21
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"epoch": 1.4137931034482758,
|
| 36 |
+
"grad_norm": 11.978184700012207,
|
| 37 |
+
"learning_rate": 2.9464285714285718e-05,
|
| 38 |
+
"loss": 0.4488,
|
| 39 |
+
"step": 30
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"epoch": 1.8735632183908046,
|
| 43 |
+
"grad_norm": 5.141038417816162,
|
| 44 |
+
"learning_rate": 2.0535714285714285e-05,
|
| 45 |
+
"loss": 0.2988,
|
| 46 |
+
"step": 40
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"epoch": 1.9655172413793105,
|
| 50 |
+
"eval_accuracy": 0.8990228013029316,
|
| 51 |
+
"eval_loss": 0.2956256568431854,
|
| 52 |
+
"eval_runtime": 15.9558,
|
| 53 |
+
"eval_samples_per_second": 19.241,
|
| 54 |
+
"eval_steps_per_second": 0.627,
|
| 55 |
+
"step": 42
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"epoch": 2.367816091954023,
|
| 59 |
+
"grad_norm": 6.264738082885742,
|
| 60 |
+
"learning_rate": 1.1607142857142857e-05,
|
| 61 |
+
"loss": 0.3026,
|
| 62 |
+
"step": 50
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"epoch": 2.8275862068965516,
|
| 66 |
+
"grad_norm": 5.892236232757568,
|
| 67 |
+
"learning_rate": 2.6785714285714285e-06,
|
| 68 |
+
"loss": 0.2695,
|
| 69 |
+
"step": 60
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"epoch": 2.9655172413793105,
|
| 73 |
+
"eval_accuracy": 0.8957654723127035,
|
| 74 |
+
"eval_loss": 0.259478896856308,
|
| 75 |
+
"eval_runtime": 16.6934,
|
| 76 |
+
"eval_samples_per_second": 18.39,
|
| 77 |
+
"eval_steps_per_second": 0.599,
|
| 78 |
+
"step": 63
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"epoch": 2.9655172413793105,
|
| 82 |
+
"step": 63,
|
| 83 |
+
"total_flos": 2.0203512366720614e+17,
|
| 84 |
+
"train_loss": 0.46530596036759636,
|
| 85 |
+
"train_runtime": 777.4672,
|
| 86 |
+
"train_samples_per_second": 10.638,
|
| 87 |
+
"train_steps_per_second": 0.081
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"logging_steps": 10,
|
| 91 |
+
"max_steps": 63,
|
| 92 |
+
"num_input_tokens_seen": 0,
|
| 93 |
+
"num_train_epochs": 3,
|
| 94 |
+
"save_steps": 500,
|
| 95 |
+
"stateful_callbacks": {
|
| 96 |
+
"TrainerControl": {
|
| 97 |
+
"args": {
|
| 98 |
+
"should_epoch_stop": false,
|
| 99 |
+
"should_evaluate": false,
|
| 100 |
+
"should_log": false,
|
| 101 |
+
"should_save": true,
|
| 102 |
+
"should_training_stop": true
|
| 103 |
+
},
|
| 104 |
+
"attributes": {}
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
"total_flos": 2.0203512366720614e+17,
|
| 108 |
+
"train_batch_size": 32,
|
| 109 |
+
"trial_name": null,
|
| 110 |
+
"trial_params": null
|
| 111 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32b330fc12ad5f398fd4a9aac3bb70b4a425c1a6a7f9a5844cfa4cef4b05dbc0
|
| 3 |
+
size 5432
|