Instructions to use griseldans/deepfake_vs_real_image_detection_v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use griseldans/deepfake_vs_real_image_detection_v4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="griseldans/deepfake_vs_real_image_detection_v4") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("griseldans/deepfake_vs_real_image_detection_v4") model = AutoModelForImageClassification.from_pretrained("griseldans/deepfake_vs_real_image_detection_v4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
deepfake_vs_real_image_detection_v4
This model is a fine-tuned version of dima806/deepfake_vs_real_image_detection on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.2940
- Accuracy: 0.9436
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 32
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 128
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.05
- num_epochs: 1
- mixed_precision_training: Native AMP
- label_smoothing_factor: 0.1
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.5002 | 0.3225 | 1000 | 0.3300 | 0.9178 |
| 1.3774 | 0.6450 | 2000 | 0.3153 | 0.9271 |
| 1.3372 | 0.9674 | 3000 | 0.2940 | 0.9436 |
Framework versions
- Transformers 4.57.2
- Pytorch 2.9.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 8
Model tree for griseldans/deepfake_vs_real_image_detection_v4
Base model
google/vit-base-patch16-224-in21k Finetuned
dima806/deepfake_vs_real_image_detection