End of training
Browse files- README.md +90 -0
- config.json +44 -0
- model.safetensors +3 -0
- runs/Sep06_10-26-05_85cb81fa4d7c/events.out.tfevents.1725618377.85cb81fa4d7c.201.0 +3 -0
- runs/Sep06_10-52-29_85cb81fa4d7c/events.out.tfevents.1725619963.85cb81fa4d7c.6981.0 +3 -0
- runs/Sep06_10-52-29_85cb81fa4d7c/events.out.tfevents.1725621808.85cb81fa4d7c.6981.1 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google/vit-base-patch16-224-in21k
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- imagefolder
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: Image-Classification
|
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.46875
|
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 |
+
# Image-Classification
|
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: 1.4789
|
37 |
+
- Accuracy: 0.4688
|
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 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
61 |
+
- lr_scheduler_type: linear
|
62 |
+
- num_epochs: 15
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
67 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
68 |
+
| No log | 1.0 | 20 | 1.9690 | 0.2812 |
|
69 |
+
| No log | 2.0 | 40 | 1.7928 | 0.4 |
|
70 |
+
| No log | 3.0 | 60 | 1.6533 | 0.4313 |
|
71 |
+
| No log | 4.0 | 80 | 1.5701 | 0.45 |
|
72 |
+
| No log | 5.0 | 100 | 1.5244 | 0.45 |
|
73 |
+
| No log | 6.0 | 120 | 1.4789 | 0.4688 |
|
74 |
+
| No log | 7.0 | 140 | 1.4781 | 0.4688 |
|
75 |
+
| No log | 8.0 | 160 | 1.4793 | 0.4375 |
|
76 |
+
| No log | 9.0 | 180 | 1.4670 | 0.4375 |
|
77 |
+
| No log | 10.0 | 200 | 1.5136 | 0.45 |
|
78 |
+
| No log | 11.0 | 220 | 1.5041 | 0.45 |
|
79 |
+
| No log | 12.0 | 240 | 1.5178 | 0.4437 |
|
80 |
+
| No log | 13.0 | 260 | 1.5302 | 0.4437 |
|
81 |
+
| No log | 14.0 | 280 | 1.5348 | 0.45 |
|
82 |
+
| No log | 15.0 | 300 | 1.5386 | 0.45 |
|
83 |
+
|
84 |
+
|
85 |
+
### Framework versions
|
86 |
+
|
87 |
+
- Transformers 4.44.2
|
88 |
+
- Pytorch 2.4.0+cu121
|
89 |
+
- Datasets 2.21.0
|
90 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "LABEL_0",
|
13 |
+
"1": "LABEL_1",
|
14 |
+
"2": "LABEL_2",
|
15 |
+
"3": "LABEL_3",
|
16 |
+
"4": "LABEL_4",
|
17 |
+
"5": "LABEL_5",
|
18 |
+
"6": "LABEL_6",
|
19 |
+
"7": "LABEL_7"
|
20 |
+
},
|
21 |
+
"image_size": 224,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"LABEL_0": 0,
|
26 |
+
"LABEL_1": 1,
|
27 |
+
"LABEL_2": 2,
|
28 |
+
"LABEL_3": 3,
|
29 |
+
"LABEL_4": 4,
|
30 |
+
"LABEL_5": 5,
|
31 |
+
"LABEL_6": 6,
|
32 |
+
"LABEL_7": 7
|
33 |
+
},
|
34 |
+
"layer_norm_eps": 1e-12,
|
35 |
+
"model_type": "vit",
|
36 |
+
"num_attention_heads": 12,
|
37 |
+
"num_channels": 3,
|
38 |
+
"num_hidden_layers": 12,
|
39 |
+
"patch_size": 16,
|
40 |
+
"problem_type": "single_label_classification",
|
41 |
+
"qkv_bias": true,
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.44.2"
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2f039281b4498a89a40ec4b4ddbf190df82ff764433e363672ffce9f70689a8
|
3 |
+
size 343242432
|
runs/Sep06_10-26-05_85cb81fa4d7c/events.out.tfevents.1725618377.85cb81fa4d7c.201.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:661d3b9272843a4064d0460c478d7d50fd0e3c96f3655f1c349f640c7448918f
|
3 |
+
size 8711
|
runs/Sep06_10-52-29_85cb81fa4d7c/events.out.tfevents.1725619963.85cb81fa4d7c.6981.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18a8ee74fbafceaf119ca1eb43fd22d305237c1fccba6a9d0c2a945e05cfb5c7
|
3 |
+
size 10314
|
runs/Sep06_10-52-29_85cb81fa4d7c/events.out.tfevents.1725621808.85cb81fa4d7c.6981.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce052b10bdf6d537130d7bea58cc2af9cde8dc304824e03309baf4b371d477f0
|
3 |
+
size 734
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5ced5e0d15582cccb5131844c7a86c4ec203afd7f247d82d044c73c7fe3bf0d
|
3 |
+
size 5176
|