/ Модель

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

Лицензия
MIT
Базовая модель
tf_efficientnet_b5.ns_jft_in1k
Библиотека
transformers
Опубликована
13 ноя 2026

deepclip_b5

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

DeepClip B5 обнаруживает подделки лиц в изображениях и видео и оценивает области и типы заметных артефактов.

45 332скачиваний за 30 дней2лайкавеса обновлены16 ноя 2026

Бенчмарки

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

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

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

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

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

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

DeepClip deepclip_b5 — модель для обнаружения подделок лиц, созданная для проекта DeepClip. Она оценивает изображение лица по сходству с текстовыми описаниями CLIP: выдаёт вероятность подделки и оценки 20 сочетаний четырёх областей лица (лицо, глаза, нос, рот) и пяти типов артефактов (размытие, цветовые, текстурные, структурные и смешивания). Это позволяет не только обнаружить возможную подделку, но и указать, где и какие визуальные следы заметны.

Вариант B5 использует обучаемый визуальный энкодер MS-Eff-GCViT B5 и замороженный текстовый энкодер CLIP ViT-L/14; размер эмбеддинга — 768, разрешение входа — 384×384, число параметров — около 50,61 млн. Модель предназначена для классификации изображений и видео с лицами. Для видео README описывает агрегацию результатов по 20 кадрам. Обучение и основная оценка проводились на FaceForensics++; показатели на Celeb-DF и KoDF ниже, что указывает на ограниченную переносимость между наборами данных.

По данным метаданных, веса дообучены относительно timm/tf_efficientnet_b5.ns_jft_in1k и распространяются в формате safetensors. Репозиторий использует лицензию MIT, однако доступ к модели ограничен условиями страницы Hugging Face: для загрузки требуется принять их и войти в систему.

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

  • проверка видео на подмену или генерацию лица
  • обнаружение поддельного лица на отдельном изображении
  • оценка артефактов смешивания в области рта или глаз
  • локализация размытия, цветовых и текстурных следов подделки
  • сравнение подозрительных лицевых кадров при проверке медиаматериалов

Ограничения

На внешних наборах Celeb-DF и KoDF качество ниже, чем на FaceForensics++, поэтому результаты могут хуже переноситься на другие типы подделок и источники видео. Для видео в README описана агрегация по 20 кадрам; при отсутствии найденного лица пайплайн возвращает метку no_face_detected.

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

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

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

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

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

Открыть на Hugging Face

🚀 DeepClip: Region-Aware Face Forgery Artifact Description

GitHub PyPI

DeepClip is CLIP for deepfakes: a face forgery detector whose image embeddings are aligned with CLIP text embeddings. Besides telling whether a face is fake, it describes where and what kind of forgery it sees, in the same words it was trained on (e.g. "a photo of a fake face with blending artifacts in the mouth.").

💡 What DeepClip Predicts

DeepClip scores a face image against CLIP text captions and returns two things:

  • Fake probability: 1 - p_real, where p_real is the score of the caption "a photo of a real face."
  • Artifact scores: 4 regions × 5 artifact types = 20 captions such as "a photo of a fake face with blending artifacts in the mouth.", each a probability in [0, 1].
Values
Regionface, eyes, nose, mouth
Artifact typeblur, color, texture, structure, blend

The 20 artifact scores laid out as a 4 × 5 artifact map (region × type). The darker the cell, the closer the face is to that (region, type) caption.

🏛️ Architecture

DeepClip combines the MS-Eff-GCViT image encoder of DeepGuard, a hybrid CNN-ViT that catches both local and global forgery traces, with the frozen text encoder of CLIP. Only the image encoder is trained: it learns to place each face next to the caption that describes its forgery.

🔄 Training & Inference

  • (1) Caption-supervised training: every fake face gets a caption built from one (region, artifact type) pair sampled from its pair_label. The trainable image encoder is aligned with the frozen CLIP text embeddings with a multi-positive sigmoid loss (SigLIP). The 21 caption embeddings are computed once and kept in a table, so the text encoder is not run during training.
  • (2) Real/fake scoring and artifact map: at test time, the similarity to "a photo of a real face." gives the fake probability, and the similarity to the 20 region–artifact captions gives the artifact map.

🤗 Live Demo

📝 Face Forgery Artifact Description🔍 Detection Explainability (XAI)
Upload a face → verdict, CLIP caption and 4 × 5 artifact mapGrad-CAM maps of the DeepGuard detector
Open in SpacesOpen in Spaces

🧬 Model Zoo

ModeModel NameResolutionImage EncoderText EncoderContrastive Embedding DimParams (M)FLOPs (G)
⚡ Fastdeepclip_b0224×224ms_eff_gcvit_b0CLIP ViT-B/16 (frozen)5128.820.83
🔥 Prodeepclip_b5384×384ms_eff_gcvit_b5CLIP ViT-L/14 (frozen)76850.6113.26

📈 In-Domain Evaluation

Trained and tested on FaceForensics++.

ModelTest@AUCTest@AccuracyTest@Log LossTest@Macro F1
⚡ deepclip_b00.991796.33%0.09590.9396
🔥 deepclip_b50.993598.08%0.07390.9672

📈 Cross-Domain Evaluation (Trained on FaceForensics++)

Generalization to datasets not seen during training.

Celeb-DF (v2)

ModelTest@AUCTest@AccuracyTest@Log LossTest@Macro F1
⚡ deepclip_b00.682161.97%0.88230.6147
🔥 deepclip_b50.767474.13%0.74550.7162

KoDF

ModelTest@AUCTest@AccuracyTest@Log LossTest@Macro F1
⚡ deepclip_b00.772668.83%1.52380.6791
🔥 deepclip_b50.827771.75%1.68680.7072

Video-level results with num_frames=20 and agg_mode="conf". The final fake probability of a video is max(prob, S_art), where S_art is the sigmoid of the mean of the top-3 artifact logits (test_deepclip.py).

🚀 Model Usage

pip install "deepclip[detect]>=1.1.0" transformers

[!NOTE] This model is gated because it was trained on FaceForensics++. Accept the terms on this page and log in with hf auth login before the first download.

from transformers import pipeline

🖼️ Image Classification

clf = pipeline(
    "image-classification",
    model="KoreaPeter/deepclip_b5",
    trust_remote_code=True,
)

# ── Basic Inference ───────────────────────────────────────────────
result = clf("face.jpg")
# [{'label': 'fake', 'score': 0.9712}, {'label': 'real', 'score': 0.0288}]

# ── Artifact Scores ───────────────────────────────────────────────
result = clf("face.jpg", return_artifacts=True)
# [{'label': 'fake', 'score': 0.9712},
#  {'label': 'real', 'score': 0.0288},
#  {'artifacts': {'face':  {'blur': 0.12, 'color': 0.08, 'texture': 0.21, 'structure': 0.05, 'blend': 0.64},
#                 'eyes':  {...}, 'nose': {...}, 'mouth': {...}}}]

# ── Custom Parameters ─────────────────────────────────────────────
result = clf(
    "face.jpg",
    margin_ratio=0.2,       # Margin ratio around the detected face bbox (default: 0.2)
    conf_thres=0.5,         # Confidence threshold for YOLO face detection (default: 0.5)
    min_face_ratio=0.01,    # Minimum face-to-frame area ratio to process (default: 0.01)
    tta_hflip=0.0,          # Probability of horizontal flip for TTA (default: 0.0)
    top_k=1,                # Number of top labels to return (default: all)
    return_artifacts=True,  # Append the 20 artifact scores (default: False)
)

🎬 Video Classification

clf = pipeline(
    "video-classification",
    model="KoreaPeter/deepclip_b5",
    trust_remote_code=True,
)

# ── Basic Inference ───────────────────────────────────────────────
result = clf("video.mp4")
# [{'label': 'fake', 'score': 0.9634}, {'label': 'real', 'score': 0.0366}]

# ── Custom Parameters ─────────────────────────────────────────────
result = clf(
    "video.mp4",
    num_frames=20,              # Number of frames to sample (default: 20)
    margin_ratio=0.2,           # Margin ratio around the detected face bbox (default: 0.2)
    conf_thres=0.5,             # Confidence threshold for YOLO face detection (default: 0.5)
    min_face_ratio=0.01,        # Minimum face-to-frame area ratio to process (default: 0.01)
    tta_hflip=0.0,              # Probability of horizontal flip for TTA (default: 0.0)
    agg_mode="conf",            # Aggregation mode: 'conf' | 'mean' | 'vote' (default: 'conf')
    return_frame_scores=True,   # Return per-frame scores (default: False)
    return_artifacts=True,      # Append the 20 artifact scores, mean over the frames (default: False)
)
# [{'label': 'fake', 'score': 0.9634},
#  {'label': 'real', 'score': 0.0366},
#  {'frame_scores': [0.97, 0.95, 0.98, ...], 'agg_mode': 'conf'},
#  {'artifacts': {'face': {...}, 'eyes': {...}, 'nose': {...}, 'mouth': {...}}}]

When no face is found, both pipelines return [{'label': 'no_face_detected', 'score': -1.0}].

🤝 Citation

@misc{deepclip2026,
  title  = {DeepClip: Region-Aware Face Forgery Artifact Description with Contrastive Language-Image Pre-training},
  author = {seoyunje},
  year   = {2026},
  url    = {https://github.com/SEOYUNJE/DeepClip}
}

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

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

GPU в ailist

Универсальный рантайм · transformers · video-classification

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей