End of training
Browse files- README.md +65 -0
- all_results.json +13 -0
- config.json +67 -0
- eval_results.json +8 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- train_results.json +8 -0
- trainer_state.json +73 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: microsoft/swin-tiny-patch4-window7-224
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
model-index:
|
| 9 |
+
- name: swin-tiny-patch4-window7-224-finetuned-swin-pre_evaluation
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# swin-tiny-patch4-window7-224-finetuned-swin-pre_evaluation
|
| 17 |
+
|
| 18 |
+
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.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 1.5048
|
| 21 |
+
- Accuracy: 0.3193
|
| 22 |
+
|
| 23 |
+
## Model description
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Intended uses & limitations
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training and evaluation data
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training procedure
|
| 36 |
+
|
| 37 |
+
### Training hyperparameters
|
| 38 |
+
|
| 39 |
+
The following hyperparameters were used during training:
|
| 40 |
+
- learning_rate: 5e-05
|
| 41 |
+
- train_batch_size: 32
|
| 42 |
+
- eval_batch_size: 32
|
| 43 |
+
- seed: 42
|
| 44 |
+
- gradient_accumulation_steps: 4
|
| 45 |
+
- total_train_batch_size: 128
|
| 46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 47 |
+
- lr_scheduler_type: linear
|
| 48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 49 |
+
- num_epochs: 3
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 54 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 55 |
+
| 1.5873 | 0.93 | 10 | 1.5200 | 0.2844 |
|
| 56 |
+
| 1.5036 | 1.95 | 21 | 1.5082 | 0.3124 |
|
| 57 |
+
| 1.4965 | 2.79 | 30 | 1.5048 | 0.3193 |
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Framework versions
|
| 61 |
+
|
| 62 |
+
- Transformers 4.32.1
|
| 63 |
+
- Pytorch 2.0.1+cu118
|
| 64 |
+
- Datasets 2.14.4
|
| 65 |
+
- Tokenizers 0.13.3
|
all_results.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.79,
|
| 3 |
+
"eval_accuracy": 0.31934731934731936,
|
| 4 |
+
"eval_loss": 1.5047541856765747,
|
| 5 |
+
"eval_runtime": 4.54,
|
| 6 |
+
"eval_samples_per_second": 94.493,
|
| 7 |
+
"eval_steps_per_second": 3.084,
|
| 8 |
+
"total_flos": 9.465954043959706e+16,
|
| 9 |
+
"train_loss": 1.5291136741638183,
|
| 10 |
+
"train_runtime": 93.8451,
|
| 11 |
+
"train_samples_per_second": 43.476,
|
| 12 |
+
"train_steps_per_second": 0.32
|
| 13 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "0_Soft",
|
| 21 |
+
"1": "1_Semi_Medium",
|
| 22 |
+
"2": "2_Medium",
|
| 23 |
+
"3": "3_Semi_Hard",
|
| 24 |
+
"4": "4_Hard"
|
| 25 |
+
},
|
| 26 |
+
"image_size": 224,
|
| 27 |
+
"initializer_range": 0.02,
|
| 28 |
+
"label2id": {
|
| 29 |
+
"0_Soft": 0,
|
| 30 |
+
"1_Semi_Medium": 1,
|
| 31 |
+
"2_Medium": 2,
|
| 32 |
+
"3_Semi_Hard": 3,
|
| 33 |
+
"4_Hard": 4
|
| 34 |
+
},
|
| 35 |
+
"layer_norm_eps": 1e-05,
|
| 36 |
+
"mlp_ratio": 4.0,
|
| 37 |
+
"model_type": "swin",
|
| 38 |
+
"num_channels": 3,
|
| 39 |
+
"num_heads": [
|
| 40 |
+
3,
|
| 41 |
+
6,
|
| 42 |
+
12,
|
| 43 |
+
24
|
| 44 |
+
],
|
| 45 |
+
"num_layers": 4,
|
| 46 |
+
"out_features": [
|
| 47 |
+
"stage4"
|
| 48 |
+
],
|
| 49 |
+
"out_indices": [
|
| 50 |
+
4
|
| 51 |
+
],
|
| 52 |
+
"patch_size": 4,
|
| 53 |
+
"path_norm": true,
|
| 54 |
+
"problem_type": "single_label_classification",
|
| 55 |
+
"qkv_bias": true,
|
| 56 |
+
"stage_names": [
|
| 57 |
+
"stem",
|
| 58 |
+
"stage1",
|
| 59 |
+
"stage2",
|
| 60 |
+
"stage3",
|
| 61 |
+
"stage4"
|
| 62 |
+
],
|
| 63 |
+
"torch_dtype": "float32",
|
| 64 |
+
"transformers_version": "4.32.1",
|
| 65 |
+
"use_absolute_embeddings": false,
|
| 66 |
+
"window_size": 7
|
| 67 |
+
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.79,
|
| 3 |
+
"eval_accuracy": 0.31934731934731936,
|
| 4 |
+
"eval_loss": 1.5047541856765747,
|
| 5 |
+
"eval_runtime": 4.54,
|
| 6 |
+
"eval_samples_per_second": 94.493,
|
| 7 |
+
"eval_steps_per_second": 3.084
|
| 8 |
+
}
|
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 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07d27209503a04b8d0d31463cd7c916e978c6764b3398a9e23a9d5d4c6988367
|
| 3 |
+
size 110404081
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.79,
|
| 3 |
+
"total_flos": 9.465954043959706e+16,
|
| 4 |
+
"train_loss": 1.5291136741638183,
|
| 5 |
+
"train_runtime": 93.8451,
|
| 6 |
+
"train_samples_per_second": 43.476,
|
| 7 |
+
"train_steps_per_second": 0.32
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": 0.31934731934731936,
|
| 3 |
+
"best_model_checkpoint": "swin-tiny-patch4-window7-224-finetuned-swin-pre_evaluation/checkpoint-30",
|
| 4 |
+
"epoch": 2.7906976744186047,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 30,
|
| 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.93,
|
| 13 |
+
"learning_rate": 3.7037037037037037e-05,
|
| 14 |
+
"loss": 1.5873,
|
| 15 |
+
"step": 10
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"epoch": 0.93,
|
| 19 |
+
"eval_accuracy": 0.28438228438228436,
|
| 20 |
+
"eval_loss": 1.5200079679489136,
|
| 21 |
+
"eval_runtime": 4.9667,
|
| 22 |
+
"eval_samples_per_second": 86.375,
|
| 23 |
+
"eval_steps_per_second": 2.819,
|
| 24 |
+
"step": 10
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 1.86,
|
| 28 |
+
"learning_rate": 1.8518518518518518e-05,
|
| 29 |
+
"loss": 1.5036,
|
| 30 |
+
"step": 20
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 1.95,
|
| 34 |
+
"eval_accuracy": 0.3123543123543124,
|
| 35 |
+
"eval_loss": 1.5081508159637451,
|
| 36 |
+
"eval_runtime": 4.3738,
|
| 37 |
+
"eval_samples_per_second": 98.084,
|
| 38 |
+
"eval_steps_per_second": 3.201,
|
| 39 |
+
"step": 21
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"epoch": 2.79,
|
| 43 |
+
"learning_rate": 0.0,
|
| 44 |
+
"loss": 1.4965,
|
| 45 |
+
"step": 30
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 2.79,
|
| 49 |
+
"eval_accuracy": 0.31934731934731936,
|
| 50 |
+
"eval_loss": 1.5047541856765747,
|
| 51 |
+
"eval_runtime": 4.8256,
|
| 52 |
+
"eval_samples_per_second": 88.9,
|
| 53 |
+
"eval_steps_per_second": 2.901,
|
| 54 |
+
"step": 30
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"epoch": 2.79,
|
| 58 |
+
"step": 30,
|
| 59 |
+
"total_flos": 9.465954043959706e+16,
|
| 60 |
+
"train_loss": 1.5291136741638183,
|
| 61 |
+
"train_runtime": 93.8451,
|
| 62 |
+
"train_samples_per_second": 43.476,
|
| 63 |
+
"train_steps_per_second": 0.32
|
| 64 |
+
}
|
| 65 |
+
],
|
| 66 |
+
"logging_steps": 10,
|
| 67 |
+
"max_steps": 30,
|
| 68 |
+
"num_train_epochs": 3,
|
| 69 |
+
"save_steps": 500,
|
| 70 |
+
"total_flos": 9.465954043959706e+16,
|
| 71 |
+
"trial_name": null,
|
| 72 |
+
"trial_params": null
|
| 73 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8855c697739f2aa202ec46f580781c52c2d41aada49671f762ef8acd3976b602
|
| 3 |
+
size 4155
|