Model save
Browse files
README.md
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: vit-cxr4
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# vit-cxr4
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.4289
|
24 |
+
- Precision: 0.8736
|
25 |
+
- Recall: 0.9207
|
26 |
+
- F1: 0.8965
|
27 |
+
- Accuracy: 0.8950
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 3e-05
|
47 |
+
- train_batch_size: 96
|
48 |
+
- eval_batch_size: 64
|
49 |
+
- seed: 17
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 6
|
53 |
+
- mixed_precision_training: Native AMP
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
59 |
+
| 0.3151 | 0.31 | 100 | 0.3317 | 0.8152 | 0.9143 | 0.8619 | 0.8552 |
|
60 |
+
| 0.319 | 0.63 | 200 | 0.3048 | 0.8670 | 0.8514 | 0.8591 | 0.8620 |
|
61 |
+
| 0.2926 | 0.94 | 300 | 0.2867 | 0.8580 | 0.8662 | 0.8621 | 0.8631 |
|
62 |
+
| 0.1884 | 1.25 | 400 | 0.2635 | 0.8468 | 0.9381 | 0.8901 | 0.8856 |
|
63 |
+
| 0.234 | 1.57 | 500 | 0.2639 | 0.8232 | 0.9677 | 0.8896 | 0.8814 |
|
64 |
+
| 0.2349 | 1.88 | 600 | 0.2478 | 0.8530 | 0.9328 | 0.8911 | 0.8874 |
|
65 |
+
| 0.1476 | 2.19 | 700 | 0.2560 | 0.8584 | 0.9297 | 0.8926 | 0.8895 |
|
66 |
+
| 0.1289 | 2.51 | 800 | 0.2698 | 0.8809 | 0.8916 | 0.8862 | 0.8869 |
|
67 |
+
| 0.1579 | 2.82 | 900 | 0.2614 | 0.8879 | 0.8715 | 0.8796 | 0.8822 |
|
68 |
+
| 0.0745 | 3.13 | 1000 | 0.2783 | 0.8854 | 0.8905 | 0.8880 | 0.8889 |
|
69 |
+
| 0.0697 | 3.45 | 1100 | 0.2844 | 0.8893 | 0.8879 | 0.8886 | 0.8900 |
|
70 |
+
| 0.0602 | 3.76 | 1200 | 0.3213 | 0.8797 | 0.8932 | 0.8864 | 0.8869 |
|
71 |
+
| 0.0246 | 4.08 | 1300 | 0.3393 | 0.8753 | 0.9096 | 0.8921 | 0.8913 |
|
72 |
+
| 0.0301 | 4.39 | 1400 | 0.3593 | 0.8644 | 0.9307 | 0.8964 | 0.8937 |
|
73 |
+
| 0.0348 | 4.7 | 1500 | 0.3804 | 0.8653 | 0.9344 | 0.8986 | 0.8957 |
|
74 |
+
| 0.011 | 5.02 | 1600 | 0.3897 | 0.8622 | 0.9365 | 0.8978 | 0.8947 |
|
75 |
+
| 0.0077 | 5.33 | 1700 | 0.4088 | 0.8754 | 0.9180 | 0.8962 | 0.8950 |
|
76 |
+
| 0.0064 | 5.64 | 1800 | 0.4281 | 0.8780 | 0.9170 | 0.8971 | 0.8960 |
|
77 |
+
| 0.0031 | 5.96 | 1900 | 0.4289 | 0.8736 | 0.9207 | 0.8965 | 0.8950 |
|
78 |
+
|
79 |
+
|
80 |
+
### Framework versions
|
81 |
+
|
82 |
+
- Transformers 4.35.2
|
83 |
+
- Pytorch 2.1.0+cu121
|
84 |
+
- Datasets 2.16.1
|
85 |
+
- Tokenizers 0.15.0
|
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:7dff1c75fa296e9b9fa3a24cce41fa49aba2d0de70f4eac4672bea8fb831fa7d
|
3 |
size 343223968
|
runs/Jan11_15-01-00_cfbcec8a46fc/events.out.tfevents.1704985261.cfbcec8a46fc.419.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:4888a1bd70cab997cb99c86979008e32b860a2d873dc242fd0d757a1cd298420
|
3 |
+
size 43457
|