/ Модель

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

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

xdfdet

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

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

718скачиваний за 30 дней1лайквеса обновлены9 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

Для обработки видео нужны обнаружение, выравнивание и нормализация лиц. Веса доступны в формате Keras float32 и распространяются по лицензии CC BY-NC 4.0, которая запрещает коммерческое использование. Для воспроизведения оценки в точности обучения на GPU предусмотрен режим mixed precision.

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

  • проверка видео с лицом на признаки дипфейка
  • оценка вероятности подлинности ролика с человеком
  • создание Grad-CAM карты для анализа решения детектора
  • исследование влияния аугментаций и маскирования лица на обнаружение дипфейков

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

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

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.

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.10 to 3.12.

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.

Four detectors attend to different regions of the same real face

Research and limits

The UBMK 2026 paper by Mert Kaya and Venera Adanova is accepted, with no DOI yet. 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).

License and citation

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

@inproceedings{kaya2026augmentation,
  title     = {Augmentation and Cutout in Deepfake Detection: A Comparative Study of
               Accuracy, Calibration, and Attention},
  author    = {Kaya, Mert and Adanova, Venera},
  booktitle = {11th International Conference on Computer Science and Engineering (UBMK 2026)},
  year      = {2026},
  note      = {To appear}
}

@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-модели рантайм не загружает.

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

0 моделей