Model save
Browse files- README.md +19 -16
- config.json +8 -0
- model.safetensors +1 -1
- runs/Oct02_14-40-06_dcbb13f74eeb/events.out.tfevents.1727880032.dcbb13f74eeb.1604.0 +3 -0
- training_args.bin +1 -1
README.md
CHANGED
@@ -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
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
33 |
|
34 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
|
35 |
It achieves the following results on the evaluation set:
|
36 |
-
- Loss: 0.
|
37 |
-
- Accuracy: 0.
|
38 |
|
39 |
## Model description
|
40 |
|
@@ -53,26 +53,29 @@ More information needed
|
|
53 |
### Training hyperparameters
|
54 |
|
55 |
The following hyperparameters were used during training:
|
56 |
-
- learning_rate: 0.
|
57 |
-
- train_batch_size:
|
58 |
- eval_batch_size: 8
|
59 |
- seed: 42
|
60 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
61 |
-
- lr_scheduler_type:
|
62 |
-
- num_epochs:
|
63 |
- mixed_precision_training: Native AMP
|
64 |
|
65 |
### Training results
|
66 |
|
67 |
-
| Training Loss | Epoch
|
68 |
-
|
69 |
-
| 0.
|
70 |
-
| 0.
|
71 |
-
| 0.
|
72 |
-
| 0.
|
73 |
-
| 0.
|
74 |
-
| 0.
|
75 |
-
| 0.
|
|
|
|
|
|
|
76 |
|
77 |
|
78 |
### Framework versions
|
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
+
value: 0.8011152416356877
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
33 |
|
34 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
|
35 |
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.5222
|
37 |
+
- Accuracy: 0.8011
|
38 |
|
39 |
## Model description
|
40 |
|
|
|
53 |
### Training hyperparameters
|
54 |
|
55 |
The following hyperparameters were used during training:
|
56 |
+
- learning_rate: 0.0001
|
57 |
+
- train_batch_size: 2
|
58 |
- eval_batch_size: 8
|
59 |
- seed: 42
|
60 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
61 |
+
- lr_scheduler_type: cosine
|
62 |
+
- num_epochs: 10
|
63 |
- mixed_precision_training: Native AMP
|
64 |
|
65 |
### Training results
|
66 |
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
69 |
+
| 0.717 | 1.0 | 1522 | 0.8198 | 0.5186 |
|
70 |
+
| 0.7935 | 2.0 | 3044 | 0.6689 | 0.6989 |
|
71 |
+
| 0.7885 | 3.0 | 4566 | 0.5983 | 0.7082 |
|
72 |
+
| 0.7315 | 4.0 | 6088 | 0.6050 | 0.7398 |
|
73 |
+
| 0.7526 | 5.0 | 7610 | 0.6488 | 0.7454 |
|
74 |
+
| 0.7844 | 6.0 | 9132 | 0.6292 | 0.7584 |
|
75 |
+
| 0.8785 | 7.0 | 10654 | 0.5291 | 0.7900 |
|
76 |
+
| 0.529 | 8.0 | 12176 | 0.4577 | 0.8160 |
|
77 |
+
| 0.9946 | 9.0 | 13698 | 0.4851 | 0.8160 |
|
78 |
+
| 0.7006 | 10.0 | 15220 | 0.5222 | 0.8011 |
|
79 |
|
80 |
|
81 |
### Framework versions
|
config.json
CHANGED
@@ -8,9 +8,17 @@
|
|
8 |
"hidden_act": "gelu",
|
9 |
"hidden_dropout_prob": 0.0,
|
10 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
11 |
"image_size": 224,
|
12 |
"initializer_range": 0.02,
|
13 |
"intermediate_size": 3072,
|
|
|
|
|
|
|
|
|
14 |
"layer_norm_eps": 1e-12,
|
15 |
"model_type": "vit",
|
16 |
"num_attention_heads": 12,
|
|
|
8 |
"hidden_act": "gelu",
|
9 |
"hidden_dropout_prob": 0.0,
|
10 |
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": 0,
|
13 |
+
"1": 1
|
14 |
+
},
|
15 |
"image_size": 224,
|
16 |
"initializer_range": 0.02,
|
17 |
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"0": "0",
|
20 |
+
"1": "1"
|
21 |
+
},
|
22 |
"layer_norm_eps": 1e-12,
|
23 |
"model_type": "vit",
|
24 |
"num_attention_heads": 12,
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343223968
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f96ad6896ae934f3ebc65ef27bc7bc9170fa060f905eeba7398b34f6cfa6737
|
3 |
size 343223968
|
runs/Oct02_14-40-06_dcbb13f74eeb/events.out.tfevents.1727880032.dcbb13f74eeb.1604.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e0160fe601d3b4cedf0dea2077d106c2818632af009ece69271360694d6b853f
|
3 |
+
size 329554
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5176
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:abeb52e96ac7f76ce392655f864ffc8d4f25020703f19d61bcd76e5c61524d99
|
3 |
size 5176
|