Downloads · 30 days
40
12% of all-time downloads
desireemcv/vit-face-real-vs-fake
vit-face-real-vs-fake is a image classification model from desireemcv. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
40
12% of all-time downloads
All-time downloads
329
Public
Parameters
85.8M
1.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors343 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the desireemcv/face-real-vs-fake dataset. It achieves the following results on the evaluation set:
More information neeThis model is a fine-tuned Vision Transformer (ViT-Base) for binary image classification of human faces as either REAL (authentic photographs) or FAKE (AI-generated). It was fine-tuned from google/vit-base-patch16-224-in21k on the Computer Vision Face Classification Dataset (v2.0, 2026), which contains facial images sourced from Unsplash (real) and various AI generation methods (fake).
The model achieves 94.67% accuracy on the test set, with balanced performance across both classes (F1=0.94 for FAKE, F1=0.95 for REAL). It was trained for 4 epochs using PyTorch and the Hugging Face Transformers library on a Google Colab T4 GPU.ded
This model is intended for detecting AI-generated facial images (deepfakes) in binary classification scenarios. It can be used as a baseline for deepfake detection research or as a component in content authenticity verification pipelines.
Limitations:
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.2606 | 1.0 | 195 | 0.1915 | 0.9524 |
| 0.2163 | 2.0 | 390 | 0.1641 | 0.9472 |
| 0.1764 | 3.0 | 585 | 0.1451 | 0.9498 |
| 0.1469 | 4.0 | 780 | 0.1253 | 0.9524 |