Model save
Browse files
README.md
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
license: apache-2.0
|
3 |
base_model: google/vit-base-patch16-224
|
4 |
tags:
|
5 |
-
- image-classification
|
6 |
- generated_from_trainer
|
7 |
datasets:
|
8 |
- imagefolder
|
@@ -18,7 +17,7 @@ model-index:
|
|
18 |
name: Image Classification
|
19 |
type: image-classification
|
20 |
dataset:
|
21 |
-
name:
|
22 |
type: imagefolder
|
23 |
config: default
|
24 |
split: train
|
@@ -26,16 +25,16 @@ model-index:
|
|
26 |
metrics:
|
27 |
- name: Accuracy
|
28 |
type: accuracy
|
29 |
-
value: 0.
|
30 |
- name: Precision
|
31 |
type: precision
|
32 |
-
value: 0.
|
33 |
- name: Recall
|
34 |
type: recall
|
35 |
-
value: 0.
|
36 |
- name: F1
|
37 |
type: f1
|
38 |
-
value: 0.
|
39 |
---
|
40 |
|
41 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -43,13 +42,13 @@ should probably proofread and complete it, then remove this comment. -->
|
|
43 |
|
44 |
# vit-base-oxford-brain-tumor_x-ray
|
45 |
|
46 |
-
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the
|
47 |
It achieves the following results on the evaluation set:
|
48 |
-
- Loss: 0.
|
49 |
-
- Accuracy: 0.
|
50 |
-
- Precision: 0.
|
51 |
-
- Recall: 0.
|
52 |
-
- F1: 0.
|
53 |
|
54 |
## Model description
|
55 |
|
@@ -74,22 +73,21 @@ The following hyperparameters were used during training:
|
|
74 |
- seed: 42
|
75 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
76 |
- lr_scheduler_type: linear
|
77 |
-
- num_epochs:
|
78 |
|
79 |
### Training results
|
80 |
|
81 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
82 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
83 |
-
| 0.
|
84 |
-
| 0.
|
85 |
-
| 0.
|
86 |
-
| 0.
|
87 |
-
| 0.5285 | 5.0 | 55 | 0.4036 | 0.92 | 0.92 | 0.92 | 0.92 |
|
88 |
|
89 |
|
90 |
### Framework versions
|
91 |
|
92 |
- Transformers 4.41.2
|
93 |
- Pytorch 2.3.0+cu121
|
94 |
-
- Datasets 2.
|
95 |
- Tokenizers 0.19.1
|
|
|
2 |
license: apache-2.0
|
3 |
base_model: google/vit-base-patch16-224
|
4 |
tags:
|
|
|
5 |
- generated_from_trainer
|
6 |
datasets:
|
7 |
- imagefolder
|
|
|
17 |
name: Image Classification
|
18 |
type: image-classification
|
19 |
dataset:
|
20 |
+
name: imagefolder
|
21 |
type: imagefolder
|
22 |
config: default
|
23 |
split: train
|
|
|
25 |
metrics:
|
26 |
- name: Accuracy
|
27 |
type: accuracy
|
28 |
+
value: 0.9230769230769231
|
29 |
- name: Precision
|
30 |
type: precision
|
31 |
+
value: 0.9230769230769231
|
32 |
- name: Recall
|
33 |
type: recall
|
34 |
+
value: 0.9230769230769231
|
35 |
- name: F1
|
36 |
type: f1
|
37 |
+
value: 0.9230769230769231
|
38 |
---
|
39 |
|
40 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
42 |
|
43 |
# vit-base-oxford-brain-tumor_x-ray
|
44 |
|
45 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
46 |
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 0.2882
|
48 |
+
- Accuracy: 0.9231
|
49 |
+
- Precision: 0.9231
|
50 |
+
- Recall: 0.9231
|
51 |
+
- F1: 0.9231
|
52 |
|
53 |
## Model description
|
54 |
|
|
|
73 |
- seed: 42
|
74 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
75 |
- lr_scheduler_type: linear
|
76 |
+
- num_epochs: 4
|
77 |
|
78 |
### Training results
|
79 |
|
80 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
81 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
82 |
+
| 0.6519 | 1.0 | 11 | 0.3817 | 0.8 | 0.8476 | 0.8 | 0.7751 |
|
83 |
+
| 0.2616 | 2.0 | 22 | 0.0675 | 0.96 | 0.9624 | 0.96 | 0.9594 |
|
84 |
+
| 0.1219 | 3.0 | 33 | 0.1770 | 0.92 | 0.9289 | 0.92 | 0.9174 |
|
85 |
+
| 0.0527 | 4.0 | 44 | 0.0234 | 1.0 | 1.0 | 1.0 | 1.0 |
|
|
|
86 |
|
87 |
|
88 |
### Framework versions
|
89 |
|
90 |
- Transformers 4.41.2
|
91 |
- Pytorch 2.3.0+cu121
|
92 |
+
- Datasets 2.20.0
|
93 |
- Tokenizers 0.19.1
|
runs/Jun18_14-46-45_f111979319ff/events.out.tfevents.1718723911.f111979319ff.190.7
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2359ed144a64521ee04ddff253df334394da94f3f604b0678972f72c3da852b5
|
3 |
+
size 551
|