Model save
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
license:
|
4 |
-
base_model:
|
5 |
tags:
|
6 |
- generated_from_trainer
|
7 |
datasets:
|
@@ -23,7 +23,7 @@ model-index:
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
-
value: 0.
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -31,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
31 |
|
32 |
# finetuned-ai-real-swin
|
33 |
|
34 |
-
This model is a fine-tuned version of [
|
35 |
It achieves the following results on the evaluation set:
|
36 |
-
- Loss: 0.
|
37 |
-
- Accuracy: 0.
|
38 |
|
39 |
## Model description
|
40 |
|
@@ -59,14 +59,14 @@ The following hyperparameters were used during training:
|
|
59 |
- seed: 42
|
60 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
61 |
- lr_scheduler_type: linear
|
62 |
-
- num_epochs:
|
63 |
- mixed_precision_training: Native AMP
|
64 |
|
65 |
### Training results
|
66 |
|
67 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
69 |
-
| 0.
|
70 |
|
71 |
|
72 |
### Framework versions
|
|
|
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:
|
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
+
value: 0.8870967741935484
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
31 |
|
32 |
# finetuned-ai-real-swin
|
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.2812
|
37 |
+
- Accuracy: 0.8871
|
38 |
|
39 |
## Model description
|
40 |
|
|
|
59 |
- seed: 42
|
60 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
61 |
- lr_scheduler_type: linear
|
62 |
+
- num_epochs: 1
|
63 |
- mixed_precision_training: Native AMP
|
64 |
|
65 |
### Training results
|
66 |
|
67 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
69 |
+
| 0.3707 | 0.5682 | 25 | 0.2812 | 0.8871 |
|
70 |
|
71 |
|
72 |
### Framework versions
|
config.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
-
"_num_labels": 2,
|
4 |
"architectures": [
|
5 |
"SwinForImageClassification"
|
6 |
],
|
@@ -8,35 +7,34 @@
|
|
8 |
"depths": [
|
9 |
2,
|
10 |
2,
|
11 |
-
|
12 |
2
|
13 |
],
|
14 |
"drop_path_rate": 0.1,
|
15 |
-
"embed_dim":
|
16 |
"encoder_stride": 32,
|
17 |
"hidden_act": "gelu",
|
18 |
"hidden_dropout_prob": 0.0,
|
19 |
-
"hidden_size":
|
20 |
"id2label": {
|
21 |
-
"0": "
|
22 |
-
"1": "
|
23 |
},
|
24 |
"image_size": 224,
|
25 |
"initializer_range": 0.02,
|
26 |
"label2id": {
|
27 |
-
"
|
28 |
-
"
|
29 |
},
|
30 |
"layer_norm_eps": 1e-05,
|
31 |
-
"max_length": 128,
|
32 |
"mlp_ratio": 4.0,
|
33 |
"model_type": "swin",
|
34 |
"num_channels": 3,
|
35 |
"num_heads": [
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
],
|
41 |
"num_layers": 4,
|
42 |
"out_features": [
|
@@ -45,7 +43,6 @@
|
|
45 |
"out_indices": [
|
46 |
4
|
47 |
],
|
48 |
-
"padding": "max_length",
|
49 |
"patch_size": 4,
|
50 |
"path_norm": true,
|
51 |
"problem_type": "single_label_classification",
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "microsoft/swin-tiny-patch4-window7-224",
|
|
|
3 |
"architectures": [
|
4 |
"SwinForImageClassification"
|
5 |
],
|
|
|
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": "AI",
|
21 |
+
"1": "Real"
|
22 |
},
|
23 |
"image_size": 224,
|
24 |
"initializer_range": 0.02,
|
25 |
"label2id": {
|
26 |
+
"AI": "0",
|
27 |
+
"Real": "1"
|
28 |
},
|
29 |
"layer_norm_eps": 1e-05,
|
|
|
30 |
"mlp_ratio": 4.0,
|
31 |
"model_type": "swin",
|
32 |
"num_channels": 3,
|
33 |
"num_heads": [
|
34 |
+
3,
|
35 |
+
6,
|
36 |
+
12,
|
37 |
+
24
|
38 |
],
|
39 |
"num_layers": 4,
|
40 |
"out_features": [
|
|
|
43 |
"out_indices": [
|
44 |
4
|
45 |
],
|
|
|
46 |
"patch_size": 4,
|
47 |
"path_norm": true,
|
48 |
"problem_type": "single_label_classification",
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37d687a35771f6f347ccd91a4bbc2c234a292986ecde55cc75988d8d5d8b52a8
|
3 |
+
size 110342832
|
runs/Jan15_19-48-23_aa149997962b/events.out.tfevents.1736970512.aa149997962b.688.9
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d42d0f38d3834a0487a5030d264c858b5cfc68ec1cef5301a636074a8b3ddd38
|
3 |
+
size 7839
|
runs/Jan15_19-50-06_aa149997962b/events.out.tfevents.1736970612.aa149997962b.688.10
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f242de95e70e3f6470be9e8d34156b3208a20a7cc2997f98720cdcfc7de30d4
|
3 |
+
size 6932
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5304
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b1875f7b5546f193daba0bc6fc3a70935a686f5a3edc07acb182fea33b4d045f
|
3 |
size 5304
|