Downloads · 30 days
25
100% of all-time downloads
Ant-One/GenD_CLIP_L_336_FF
GenD_CLIP_L_336_FF is a image classification model from Ant-One. Use it when you need a label for an image. The card lists the license as mit.
State-of-the-art Deepfake Detection model trained on FaceForensics++ (FF++) based on the GenD framework fine-tuned with Sharpness-Aware Minimization (SAM) and Label Smoothing.
Downloads · 30 days
25
100% of all-time downloads
All-time downloads
25
Public
Parameters
304M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
State-of-the-art Deepfake Detection model trained on FaceForensics++ (FF++) based on the GenD framework fine-tuned with Sharpness-Aware Minimization (SAM) and Label Smoothing.
This model uses openai/clip-vit-large-patch14-336 as visual foundation backbone and fine-tunes only the Layer Normalization parameters (accounting for only ~0.03% of total parameters) while enforcing a hyperspherical feature manifold through L2-normalization and metric learning (Uniformity & Alignment losses).
| Metric | Score |
|---|---|
| Video AUROC | 93.18% |
| Video mAP | 92.14% |
| Video Accuracy | 85.59% |
| Video EER | 14.41% |
| Frame AUROC | 89.23% |
| Frame mAP | 87.18% |
| Frame Accuracy | 81.85% |
FaceForensics++ (FF++) (FF++)openai/clip-vit-large-patch14-336LinearNormSAM-AdamW (SAM $\rho=0.05$, adaptive=True)3032bf16-mixed0.0003import torch
from PIL import Image
from transformers import AutoModel
# Load the model directly from Hugging Face Hub
model = AutoModel.from_pretrained("Ant-One/GenD_CLIP_L_336_FF", trust_remote_code=True)
model.eval()
# Preprocess image crop (aligned face)
image = Image.open("path/to/face_crop.png").convert("RGB")
tensor = model.feature_extractor.preprocess(image).unsqueeze(0)
# Run inference
with torch.no_grad():
logits = model(tensor)
# Output class 0: Real, Output class 1: Fake
fake_prob = logits.softmax(dim=-1)[0, 1].item()
print(f"Deepfake Probability: {fake_prob:.2%}")
src.hf.modeling_gendfrom src.hf.modeling_gend import GenD
model = GenD.from_pretrained("Ant-One/GenD_CLIP_L_336_FF")
model.eval()
The GenD method achieves superior cross-dataset generalization by avoiding catastrophic overfitting on manipulation-specific artifacts: