Model save
Browse files
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
- recall
|
10 |
+
- precision
|
11 |
+
model-index:
|
12 |
+
- name: vit-real-fake-cls
|
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 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/date3k2/real-fake-classification/runs/3wxs9xk6)
|
20 |
+
# vit-real-fake-cls
|
21 |
+
|
22 |
+
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.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.0398
|
25 |
+
- Accuracy: 0.9866
|
26 |
+
- F1: 0.9878
|
27 |
+
- Recall: 0.9854
|
28 |
+
- Precision: 0.9902
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 5e-05
|
48 |
+
- train_batch_size: 128
|
49 |
+
- eval_batch_size: 128
|
50 |
+
- seed: 42
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- lr_scheduler_warmup_ratio: 0.1
|
54 |
+
- num_epochs: 10
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Recall | Precision |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:------:|:---------:|
|
60 |
+
| 0.1759 | 1.0 | 59 | 0.2212 | 0.9173 | 0.9229 | 0.8978 | 0.9495 |
|
61 |
+
| 0.1903 | 2.0 | 118 | 0.1047 | 0.9629 | 0.9659 | 0.9503 | 0.9819 |
|
62 |
+
| 0.0463 | 3.0 | 177 | 0.0824 | 0.9699 | 0.9730 | 0.9834 | 0.9628 |
|
63 |
+
| 0.0015 | 4.0 | 236 | 0.0763 | 0.9764 | 0.9787 | 0.9825 | 0.9749 |
|
64 |
+
| 0.0631 | 5.0 | 295 | 0.0794 | 0.9737 | 0.9759 | 0.9640 | 0.9880 |
|
65 |
+
| 0.0114 | 6.0 | 354 | 0.0582 | 0.9801 | 0.9819 | 0.9786 | 0.9853 |
|
66 |
+
| 0.0004 | 7.0 | 413 | 0.0662 | 0.9807 | 0.9824 | 0.9796 | 0.9853 |
|
67 |
+
| 0.0231 | 8.0 | 472 | 0.0713 | 0.9753 | 0.9773 | 0.9659 | 0.9890 |
|
68 |
+
| 0.0017 | 9.0 | 531 | 0.0518 | 0.9817 | 0.9834 | 0.9796 | 0.9872 |
|
69 |
+
| 0.0268 | 10.0 | 590 | 0.0385 | 0.9839 | 0.9855 | 0.9903 | 0.9807 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.41.0
|
75 |
+
- Pytorch 2.3.0+cu121
|
76 |
+
- Datasets 2.19.1
|
77 |
+
- Tokenizers 0.19.1
|