End of training
Browse files
README.md
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224-in21k
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: image_classification
|
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: train[:]
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.59375
|
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 |
+
# image_classification
|
32 |
+
|
33 |
+
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.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 1.2364
|
36 |
+
- Accuracy: 0.5938
|
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: 16
|
57 |
+
- eval_batch_size: 16
|
58 |
+
- seed: 42
|
59 |
+
- gradient_accumulation_steps: 4
|
60 |
+
- total_train_batch_size: 64
|
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 |
+
| 2.0702 | 1.0 | 10 | 2.0666 | 0.1437 |
|
71 |
+
| 2.0583 | 2.0 | 20 | 2.0476 | 0.2125 |
|
72 |
+
| 2.0291 | 3.0 | 30 | 2.0018 | 0.3 |
|
73 |
+
| 1.9639 | 4.0 | 40 | 1.9175 | 0.3563 |
|
74 |
+
| 1.8582 | 5.0 | 50 | 1.7997 | 0.4375 |
|
75 |
+
| 1.7385 | 6.0 | 60 | 1.6756 | 0.4625 |
|
76 |
+
| 1.5984 | 7.0 | 70 | 1.5469 | 0.4625 |
|
77 |
+
| 1.4739 | 8.0 | 80 | 1.4684 | 0.5188 |
|
78 |
+
| 1.3737 | 9.0 | 90 | 1.4090 | 0.5125 |
|
79 |
+
| 1.2719 | 10.0 | 100 | 1.3740 | 0.525 |
|
80 |
+
| 1.2072 | 11.0 | 110 | 1.3527 | 0.55 |
|
81 |
+
| 1.1158 | 12.0 | 120 | 1.3118 | 0.5188 |
|
82 |
+
| 1.0487 | 13.0 | 130 | 1.2349 | 0.6 |
|
83 |
+
| 0.9873 | 14.0 | 140 | 1.2931 | 0.525 |
|
84 |
+
| 0.8928 | 15.0 | 150 | 1.2731 | 0.55 |
|
85 |
+
|
86 |
+
|
87 |
+
### Framework versions
|
88 |
+
|
89 |
+
- Transformers 4.42.4
|
90 |
+
- Pytorch 2.4.0+cu121
|
91 |
+
- Datasets 2.21.0
|
92 |
+
- Tokenizers 0.19.1
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343242432
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e37ba7481fa8d18b5c3748be6f8f168374c59501f3d5d562552aa343728d553
|
3 |
size 343242432
|
runs/Aug31_10-58-44_3bcc1d917efc/events.out.tfevents.1725101937.3bcc1d917efc.4353.0
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:a44a2db777921fcdfe4bc854c7d364a1b4e67ae85b946a8afc93da1b4a2ccfc0
|
3 |
+
size 13333
|
runs/Aug31_10-58-44_3bcc1d917efc/events.out.tfevents.1725122328.3bcc1d917efc.4353.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b27e8d319036ba4ad1d68c595cd7643053780bd9e143215e2424092e50dfcfea
|
3 |
+
size 411
|