Instructions to use sandesh2233/Deepfakes_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sandesh2233/Deepfakes_detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="sandesh2233/Deepfakes_detection") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("sandesh2233/Deepfakes_detection") model = AutoModelForImageClassification.from_pretrained("sandesh2233/Deepfakes_detection") - Notebooks
- Google Colab
- Kaggle
Training complete — Celeb-DF v2
Browse files- README.md +69 -3
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/vit-base-patch16-224
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: Deepfakes_detection
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# Deepfakes_detection
|
| 18 |
+
|
| 19 |
+
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.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.3242
|
| 22 |
+
- Accuracy: 0.9222
|
| 23 |
+
- Auc: 0.9998
|
| 24 |
+
- F1 Fake: 0.9278
|
| 25 |
+
|
| 26 |
+
## Model description
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Intended uses & limitations
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Training and evaluation data
|
| 35 |
+
|
| 36 |
+
More information needed
|
| 37 |
+
|
| 38 |
+
## Training procedure
|
| 39 |
+
|
| 40 |
+
### Training hyperparameters
|
| 41 |
+
|
| 42 |
+
The following hyperparameters were used during training:
|
| 43 |
+
- learning_rate: 0.0002
|
| 44 |
+
- train_batch_size: 256
|
| 45 |
+
- eval_batch_size: 512
|
| 46 |
+
- seed: 42
|
| 47 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 48 |
+
- lr_scheduler_type: linear
|
| 49 |
+
- lr_scheduler_warmup_steps: 5
|
| 50 |
+
- num_epochs: 5
|
| 51 |
+
- mixed_precision_training: Native AMP
|
| 52 |
+
|
| 53 |
+
### Training results
|
| 54 |
+
|
| 55 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Auc | F1 Fake |
|
| 56 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:-------:|
|
| 57 |
+
| No log | 1.0 | 11 | 0.3630 | 0.8579 | 0.9527 | 0.8454 |
|
| 58 |
+
| No log | 2.0 | 22 | 0.2680 | 0.9114 | 0.9863 | 0.9166 |
|
| 59 |
+
| No log | 3.0 | 33 | 0.3072 | 0.9123 | 0.9879 | 0.9178 |
|
| 60 |
+
| No log | 4.0 | 44 | 0.2917 | 0.914 | 0.988 | 0.9193 |
|
| 61 |
+
| 0.0568 | 5.0 | 55 | 0.2840 | 0.9132 | 0.988 | 0.9182 |
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
### Framework versions
|
| 65 |
+
|
| 66 |
+
- Transformers 5.5.4
|
| 67 |
+
- Pytorch 2.11.0+cu130
|
| 68 |
+
- Datasets 4.8.4
|
| 69 |
+
- Tokenizers 0.22.2
|
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:5571d40b400b7a70a269db808fd5f26796f113e0233ea93493919bfca19dca44
|
| 3 |
size 343223968
|