/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Библиотека
keras
Опубликована
23 сен 2026

xdfdet

Классификация видеоВидео → label3 профессии

Модель на EfficientNet-B4 выявляет подделки лиц в видео и показывает с помощью Grad-CAM, какие области повлияли на оценку.

1 514скачиваний за 30 дней1лайквеса обновлены7 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

xdfdet — модель Eschatia Labs для обнаружения манипуляций с лицами в видео и визуального объяснения предсказаний. Она использует EfficientNet-B4; опубликованы восемь контрольных точек с разными вариантами аугментации и маскирования лица. Модель анализирует 12 RGB-кадровых фрагментов лица размером 224×224 и выдаёт вероятность того, что каждый фрагмент подлинный; для оценки видео вероятности усредняются. Grad-CAM создаёт тепловую карту областей лица, повлиявших на оценку.

Модель предназначена для исследовательской проверки видео на подделку. На FaceForensics++ авторы сообщают AUC 0,8981 для контрольной точки aug-cutout-black и 0,8684 для baseline; результаты отдельных контрольных точек получены на разных случайных тестовых разбиениях, поэтому их нельзя считать прямым сравнением. На 398 видео DFDC междатасеточный AUC снижается до 0,60–0,66, и большинство поддельных видео классифицируются как настоящие.

Модель принимает изображения лиц, извлечённые из видео, и выдаёт числовые оценки и тепловую карту. Для неё не заявлена поддержка естественного языка. Веса опубликованы в формате TensorFlow и лицензированы CC BY-NC 4.0, что ограничивает коммерческое использование. Оценка модели сама по себе не подтверждает подлинность видео и не должна служить единственным основанием для решения о человеке.

Сценарии применения

  • проверка видео на подмену лица
  • оценка вероятности подлинности видео
  • визуализация областей лица, влияющих на обнаружение подделки

Ограничения

На обучающем наборе FaceForensics++ модель показала более слабые результаты при проверке на DFDC: AUC 0,60–0,66, при этом большинство подделок прошло как настоящие. Точность на других датасетах и новых методах манипуляции может быть ниже; влияние возраста, пола и тона кожи не оценивалось.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

xdfdet: explainable deepfake detection with EfficientNet-B4 and Grad-CAM

This project is by Eschatia Labs, an independent non-profit open-source AI research lab.

xdfdet detects manipulated face videos and shows which facial regions influence each prediction. The released aug-cutout-black detector scores 0.8981 AUC; the baseline detector scores 0.8684 on FaceForensics++. Each checkpoint used its own random test split, so read these as separate run results.

Quick facts

ItemValue
ArchitectureEfficientNet-B4, 8 released checkpoints
FaceForensics++ AUC, aug-cutout-black0.8971 mean of 3 runs; 0.8981 released checkpoint (single run)
FaceForensics++ AUC, baseline0.8678 mean of 3 runs; 0.8684 released checkpoint (single run)
Cross-dataset DFDC AUC0.60 to 0.66 on 398 unseen videos
Hugging Face downloads727 (as of 2026-10-15)
GitHub stars8

Project links

Cite this

Presented at UBMK 2026 in Istanbul and published in IEEE Xplore: 10.1109/UBMK71847.2026.11745298.

@inproceedings{kaya2026augmentation,
  author    = {Kaya, Mert and Adanova, Venera},
  title     = {Augmentation and Cutout in Deepfake Detection: A Comparative Study of Accuracy, Calibration, and Attention},
  booktitle = {2026 11th International Conference on Computer Science and Engineering (UBMK)},
  pages     = {78--83},
  year      = {2026},
  publisher = {IEEE},
  doi       = {10.1109/UBMK71847.2026.11745298},
  url       = {https://ieeexplore.ieee.org/document/11745298}
}

@mastersthesis{kaya2025xdfdet,
  title  = {Explainable Deepfake Detection Using Frame Level CNN Models: A Comparative Study of Augmentation and Cutout Techniques},
  author = {Kaya, Mert},
  school = {TED University},
  year   = {2025},
  doi    = {10.5281/zenodo.18998566}
}

Detect a video

pip install git+https://github.com/mertkayacs/xdfdet && xdfdet predict video.mp4 --gradcam cam.png

The command downloads the default aug-cutout-black model, prints the probability that the video is real and saves a Grad-CAM heatmap. Select another detector with --model baseline. Use Python 3.11 to 3.13. The package pins TensorFlow 2.21 and Keras 3.15.1.

import xdfdet

model = xdfdet.load_model("aug-cutout-black")

Use the package for face detection, alignment and normalization. Each Keras model takes 12 RGB face crops, shaped (batch, 12, 224, 224, 3), and outputs real probabilities shaped (batch, 12, 1). Average the frames for a video score; below 0.5 is classified as fake.

Released detectors

FileAugmentation and cutoutAUC
aug-cutout-black.kerasstandard augmentation, black-fill cutout0.8981
aug-cutout-random.kerasstandard augmentation, random-fill cutout0.8820
aug-cutout-white.kerasstandard augmentation, white-fill cutout0.8734
cutout-white.keraswhite-fill cutout0.8700
baseline.kerasnone0.8684
cutout-black.kerasblack-fill cutout0.8669
cutout-random.kerasrandom-fill cutout0.8642
aug-standard.kerasstandard augmentation0.8616

AUC measures how well a detector separates real and fake examples: 0.5 is chance and 1.0 is perfect. The eight weights study how augmentation and masking parts of a face during training change detection and attention. Grad-CAM shows where the model looks.

The released checkpoints also retain F1, Brier and log-loss measurements from their own test runs:

FileAUCF1BrierLog loss
aug-cutout-black.keras0.89810.84310.12470.4710
aug-cutout-random.keras0.88200.79500.14510.4656
aug-cutout-white.keras0.87340.78830.14510.4761
cutout-white.keras0.87000.77030.14630.5244
baseline.keras0.86840.77810.15230.4827
cutout-black.keras0.86690.79110.15370.4989
cutout-random.keras0.86420.77740.15260.5241
aug-standard.keras0.86160.80250.15760.5719

Each row is the released checkpoint's single run on its own 150-pair FaceForensics++ test split. The paper reports three-run means and standard deviations. The checkpoints use different random splits, so these rows do not form a controlled head-to-head ranking.

Four detectors attend to different regions of the same real face

Research and limits

The paper by Mert Kaya and Venera Adanova was presented at UBMK 2026 in Istanbul and is published in IEEE Xplore. Its results average three runs per setting; the table above reports the released checkpoints' single runs. A ninth setting, aug-intense, is in the paper but its checkpoint was lost. Research code and full metrics | MSc thesis.

Training uses 1,000 real/fake FaceForensics++ pairs. On 398 unseen DFDC videos, AUC drops to 0.60 to 0.66, and most fakes pass as real. DFDC evaluation. Performance across age, sex and skin tone was not measured. A score alone cannot establish whether a video is authentic or justify a decision about a person.

The released weights are float32 copies of mixed-float16 training runs. For evaluation in the original GPU precision, use xdfdet.load_model(name, mixed_precision=True).

Training details

The study pairs 1,000 real FaceForensics++ videos with one manipulated version each, rotating FaceSwap, Face2Face, FaceShifter and Deepfakes. Each run uses a 70/15/15 split. MTCNN detects and aligns faces. The pipeline samples 32 frames per video and uses 12 per training sample.

Cutout uses an SSIM map to locate a region where the manipulated frame resembles its real source, then fills a landmark polygon covering 2% to 5% of the frame with black, white or random pixels. Real frames receive a small star-shaped cutout with the same fill. Each cutout is applied with probability 0.5. Albumentations adds noise, blur, colour shifts, flips and small rotations at standard or intense probability levels.

Each detector uses ImageNet-initialized EfficientNet-B4 per frame, global average pooling, dropout 0.55 (0.25 for aug-cutout-random), a sigmoid output and L2 regularization of 1e-3. Binary cross-entropy is computed on the frame-averaged prediction. Optimization uses Adam with cosine decay from 1e-3 over 1,000 steps, gradient clipping at 1.0, batches of four pairs and early stopping on validation loss with patience five, for at most 20 epochs. Training used TensorFlow 2.19 and Keras 3.10 on a Colab T4 in mixed precision.

Cutout on fake frames follows the approach from the winning Deepfake Detection Challenge solution. The paired cutout on real frames prevents a blank region alone from identifying a fake. Grad-CAM analysis groups activation into eight facial regions.

Limitations

  • The models were trained and tested on FaceForensics++. Expect lower accuracy on other datasets, newer manipulation methods and heavily compressed video.
  • Each setting used its own random split. A shared-split re-score would measure a different experiment.
  • Cross-dataset DFDC AUC is 0.60 to 0.66 on 398 videos, and most fake videos pass as real.
  • Performance across age, sex and skin tone was not measured.
  • A detector score cannot establish authenticity or justify a decision about a person on its own.

License and citation

Weights: CC BY-NC 4.0, for non-commercial research and education under the FaceForensics++ terms. Code: MIT.

@inproceedings{kaya2026augmentation,
  author    = {Kaya, Mert and Adanova, Venera},
  title     = {Augmentation and Cutout in Deepfake Detection: A Comparative Study of Accuracy, Calibration, and Attention},
  booktitle = {2026 11th International Conference on Computer Science and Engineering (UBMK)},
  pages     = {78--83},
  year      = {2026},
  publisher = {IEEE},
  doi       = {10.1109/UBMK71847.2026.11745298},
  url       = {https://ieeexplore.ieee.org/document/11745298}
}

@mastersthesis{kaya2025xdfdet,
  title  = {Explainable Deepfake Detection Using Frame Level CNN Models:
            A Comparative Study of Augmentation and Cutout Techniques},
  author = {Kaya, Mert},
  school = {TED University},
  year   = {2025},
  doi    = {10.5281/zenodo.18998566}
}

Project and demonstrations | Kaggle weights and quickstart.

An Eschatia Labs project. Mert Kaya.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · keras

Нельзя запустить

Keras/TensorFlow-модели рантайм не загружает.

Ревизия весов
d4a74b5

0 моделей