Skullly commited on
Commit
1f0b8b5
1 Parent(s): c5e4ad4

End of training

Browse files
Files changed (4) hide show
  1. README.md +66 -0
  2. all_results.json +8 -0
  3. eval_results.json +8 -0
  4. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-384
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: DeepFake-image-detection-ViT-384
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # DeepFake-image-detection-ViT-384
17
+
18
+ This model is a fine-tuned version of [google/vit-base-patch16-384](https://huggingface.co/google/vit-base-patch16-384) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0272
21
+ - Accuracy: 0.9911
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 3e-05
41
+ - train_batch_size: 32
42
+ - eval_batch_size: 32
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 8
45
+ - total_train_batch_size: 256
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 2.5
50
+ - mixed_precision_training: Native AMP
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
55
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
56
+ | 0.0037 | 0.9984 | 546 | 0.0272 | 0.9911 |
57
+ | 0.0006 | 1.9986 | 1093 | 0.1121 | 0.9644 |
58
+ | 0.0002 | 2.496 | 1365 | 0.1357 | 0.9582 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 4.41.2
64
+ - Pytorch 2.1.2
65
+ - Datasets 2.19.2
66
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.496,
3
+ "eval_accuracy": 0.9910666666666667,
4
+ "eval_loss": 0.027157384902238846,
5
+ "eval_runtime": 543.4232,
6
+ "eval_samples_per_second": 55.206,
7
+ "eval_steps_per_second": 1.726
8
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.496,
3
+ "eval_accuracy": 0.9910666666666667,
4
+ "eval_loss": 0.027157384902238846,
5
+ "eval_runtime": 543.4232,
6
+ "eval_samples_per_second": 55.206,
7
+ "eval_steps_per_second": 1.726
8
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:067e5e76a405d69711ed22d23631fe61fb3ad4200175370a83e7728b83717b2d
3
  size 344391328
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:363a0cba9879c0536e384a6941fa055e6cac74030a8ef2cbcb3c0f2505c8a80d
3
  size 344391328