Views
No views yet
| Dataset | Manipulation Type | AUC |
|---|---|---|
| 140k Real-Fake (training dist.) | GAN / StyleGAN synthesis | 0.9992 |
| Fake-Vs-Real Hard | StyleGAN2 harder cases | 0.8948 |
| FF++ derived | Neural face swap | 0.8789 |
| CIPLAB | Photoshop manipulation | 0.7563 |
| Celeb-DF v2 | High-quality face swap | 0.8049 |
EfficientNet-B4 (ImageNet pretrained, last 30% unfrozen)
└── Custom classifier head:
Dropout(0.5)
Linear(in_features → 512)
ReLU
BatchNorm1d(512)
Dropout(0.4)
Linear(512 → 2)1import torch
2from huggingface_hub import hf_hub_download
3from torchvision.models import efficientnet_b4
4import torch.nn as nn
5
6# Download model
7model_path = hf_hub_download(
8 repo_id="viktorahnstrom/xade-deepfake-detector",
9 filename="best_model.pt"
10)
11
12# Load checkpoint
13checkpoint = torch.load(model_path, map_location="cpu", weights_only=False)
14print(f"Trained for {checkpoint['epoch']} epochs")
15print(f"Classes: {checkpoint['class_names']}") # ['fake', 'real']1@misc{xade2026,
2 author = {Viktor Ahnström and Viktor Carlsson},
3 title = {XADE: Cross-Platform Explainable Deepfake Detection
4 Using Vision-Language Models},
5 year = {2026},
6 institution = {Jönköping University},
7 howpublished = {\url{https://huggingface.co/viktorahnstrom/xade-deepfake-detector}}
8}