Training in progress, epoch 1
Browse files
README.md
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/swin-base-patch4-window7-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: swin-base-patch4-window7-224-MM_Classification_base
|
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: validation
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.8681177976952625
|
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-base-patch4-window7-224-MM_Classification_base
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [microsoft/swin-base-patch4-window7-224](https://huggingface.co/microsoft/swin-base-patch4-window7-224) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.3364
|
36 |
+
- Accuracy: 0.8681
|
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: 128
|
57 |
+
- eval_batch_size: 128
|
58 |
+
- seed: 42
|
59 |
+
- gradient_accumulation_steps: 4
|
60 |
+
- total_train_batch_size: 512
|
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: 15
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
70 |
+
| 0.9771 | 1.0 | 19 | 0.5489 | 0.7913 |
|
71 |
+
| 0.4913 | 2.0 | 38 | 0.3562 | 0.8553 |
|
72 |
+
| 0.3633 | 3.0 | 57 | 0.3353 | 0.8668 |
|
73 |
+
| 0.3343 | 4.0 | 76 | 0.3177 | 0.8656 |
|
74 |
+
| 0.3096 | 5.0 | 95 | 0.3072 | 0.8758 |
|
75 |
+
| 0.2822 | 6.0 | 114 | 0.3213 | 0.8630 |
|
76 |
+
| 0.2749 | 7.0 | 133 | 0.3173 | 0.8643 |
|
77 |
+
| 0.2526 | 8.0 | 152 | 0.3110 | 0.8758 |
|
78 |
+
| 0.2405 | 9.0 | 171 | 0.3263 | 0.8758 |
|
79 |
+
| 0.2152 | 10.0 | 190 | 0.3268 | 0.8656 |
|
80 |
+
| 0.2226 | 11.0 | 209 | 0.3209 | 0.8732 |
|
81 |
+
| 0.2067 | 12.0 | 228 | 0.3289 | 0.8771 |
|
82 |
+
| 0.2019 | 13.0 | 247 | 0.3316 | 0.8745 |
|
83 |
+
| 0.195 | 14.0 | 266 | 0.3398 | 0.8732 |
|
84 |
+
| 0.1862 | 15.0 | 285 | 0.3364 | 0.8681 |
|
85 |
+
|
86 |
+
|
87 |
+
### Framework versions
|
88 |
+
|
89 |
+
- Transformers 4.43.3
|
90 |
+
- Pytorch 1.13.1+cu117
|
91 |
+
- Datasets 2.20.0
|
92 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/swin-base-patch4-window7-224",
|
3 |
+
"architectures": [
|
4 |
+
"SwinForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"depths": [
|
8 |
+
2,
|
9 |
+
2,
|
10 |
+
18,
|
11 |
+
2
|
12 |
+
],
|
13 |
+
"drop_path_rate": 0.1,
|
14 |
+
"embed_dim": 128,
|
15 |
+
"encoder_stride": 32,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 1024,
|
19 |
+
"id2label": {
|
20 |
+
"0": "Invalid",
|
21 |
+
"1": "Mid Market",
|
22 |
+
"2": "Non Mid Market"
|
23 |
+
},
|
24 |
+
"image_size": 224,
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"label2id": {
|
27 |
+
"Invalid": 0,
|
28 |
+
"Mid Market": 1,
|
29 |
+
"Non Mid Market": 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 |
+
4,
|
37 |
+
8,
|
38 |
+
16,
|
39 |
+
32
|
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.43.3",
|
61 |
+
"use_absolute_embeddings": false,
|
62 |
+
"window_size": 7
|
63 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4385fa7376eb6210e56b3d65e4a29d847cff255b8c9e816d4061a2cc527bdfe4
|
3 |
+
size 347502916
|
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/Jul28_13-56-29_cc86077eaeac/events.out.tfevents.1722175027.cc86077eaeac
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2673ea2468d819d4a0a4920c11bd2b1ce54832b0b35830a7c29139e886afc73a
|
3 |
+
size 16423
|
runs/Jul29_05-32-15_57c74b225367/events.out.tfevents.1722231150.57c74b225367
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2bc371058d81396dea5a7472910a3890dac1777328e52232597eec0265973665
|
3 |
+
size 5607
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20f78b2c36d3971eb56910289308001e4291726093ea9c35dab1dc4f333f8432
|
3 |
+
size 4795
|