hi-paris/FakeParts
Viewer • Updated • 82.2k • 7.56k • 2
Frame-level deepfake detector finetuned on the FakeParts benchmark (sora, veo2, ytb). Designed to score real vs. AI-generated video clips from text-to-video generators (Sora, Veo2).
resnet50| metric | value |
|---|---|
| AP | 0.993 |
| accuracy | 0.973 |
| AUROC | 0.988 |
| sora acc (n=50) | 0.980 |
| veo2 acc (n=50) | 1.000 |
| ytb acc (n=50) | 0.940 |
pip install git+https://github.com/gaetanbrison/deepfake-detector
fpd-predict --ckpt ckpt_best.pt --video path/to/clip.mp4 --num-frames 8
streamlit run app.py -- --ckpt ckpt_best.pt
import torch
from deepfake_detector.models import build_model
state = torch.load("ckpt_best.pt", map_location="cpu", weights_only=False)
cfg = state["config"]
model = build_model(cfg["model"]["name"], **cfg["model"].get("kwargs", {}))
model.load_state_dict(state["model"])
model.eval()
# x: (B, 3, 224, 224) ImageNet-normalised RGB
with torch.no_grad():
prob_fake = torch.softmax(model(x), dim=-1)[:, 1]
For a video, sample 4-8 uniformly-spaced frames and average the per-frame fake-probabilities.