Access to FaceForensicsC23 Forgery Annotation
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
This dataset is derived from FaceForensics++ and is distributed under the FaceForensics Terms of Use. By requesting access you agree to be bound by those terms, including using the data only for non-commercial research and educational purposes.
Log in or Sign Up to review the conditions and access this dataset content.
FaceForensicsC23 Forgery Annotation
FaceForensics++
(paper) videos and face crops together with the frame-level
raw forgery annotations produced by the preprocessing of
DeepClip (preprocess/). For every fake face crop it records
which facial regions are forged (face, eyes, nose, mouth) and which forgery types appear
in them (blur, color, texture, structure, blend), with the pixel-level forgery masks. The annotations follow the raw annotation stage of the
Face Forgery Text Generator (FFTG) and are turned into the forgery
captions used to train DeepClip.
This dataset contains everything in
KoreaPeter/faceforensics-c23
(videos, face crops, boxes, 5-point landmarks, metadata) plus the DeepClip annotation files, so a single
download restores the full DeepClip DATA_ROOT.
Source: The videos and the Kaggle CSVs (
raw/csv/) come from the Kaggle dataset FaceForensics++ (c23) (xdxd003/ff-c23). The crops and boxes were produced by DeepGuard, and the annotations by DeepClip, from those videos.
| Path | Split | Content |
|---|---|---|
frames/ (Dataset Viewer, frames) |
train |
Preprocessed face crops of the train videos, with landmarks, boxes and labels |
raw/raw_annotation.parquet (Dataset Viewer, annotation) |
train |
New. One row per kept fake frame: forged regions, forgery-type scores and flags |
videos/{split}/{source}.zip |
train, test |
Original .mp4 videos, one zip per split and manipulation method |
raw/ |
train |
Preprocessing outputs and metadata CSVs to restore the DeepClip DATA_ROOT |
Overview
FaceForensics++ is a forensics dataset of 1,000 original video sequences sourced from
977 YouTube videos, manipulated with automated face manipulation methods. All videos
contain a trackable, mostly frontal face without occlusion. The videos are the c23
(light compression) release taken from
Kaggle xdxd003/ff-c23; this dataset
uses the five manipulation methods below and excludes DeepFakeDetection.
| Source | Real/Fake | Description |
|---|---|---|
Deepfakes |
Fake | Deep learning-based face replacement using autoencoders |
Face2Face |
Fake | Facial reenactment that transfers expressions from source to target |
FaceSwap |
Fake | Graphics-based face replacement using traditional algorithms |
FaceShifter |
Fake | High-fidelity face swapping with robust occlusion handling |
NeuralTextures |
Fake | Facial reenactment using learned neural textures to modify expressions |
original |
Real | Unaltered, authentic videos collected from YouTube |
Terms of Use
This is FaceForensics++ data and data derived from it, and it remains subject to the FaceForensics Terms of Use. Access is granted only after you agree to those terms. Do not share the data with anyone who has not agreed to them.
Videos (videos/)
FaceForensics++ has no fixed test set, so the videos are split 8:2 into train and test with
train.json / test.json. videos/{split}/{source}.zip holds {source}/{d_vid}.mp4; the video-level
metadata is raw/train_metadata.csv and raw/test_metadata.csv.
train
| Label | Source | Videos |
|---|---|---|
| REAL | original | 796 |
| FAKE | Deepfakes | 796 |
| FAKE | Face2Face | 798 |
| FAKE | FaceShifter | 810 |
| FAKE | FaceSwap | 793 |
| FAKE | NeuralTextures | 807 |
| Total | 4,800 |
test
| Label | Source | Videos |
|---|---|---|
| REAL | original | 204 |
| FAKE | Deepfakes | 204 |
| FAKE | Face2Face | 202 |
| FAKE | FaceShifter | 190 |
| FAKE | FaceSwap | 207 |
| FAKE | NeuralTextures | 193 |
| Total | 1,200 |
| Column | Description |
|---|---|
label |
REAL or FAKE |
frame_cnt |
Total number of frames in the video |
d_vid |
Video file name within its method folder |
source |
Manipulation method, or original |
ori_vid |
Source real video ID used for the manipulation |
ori_frame_cnt |
Total number of frames in the source real video |
vid |
Unique video ID with method prefix (0_ Deepfakes, 1_ Face2Face, 2_ FaceShifter, 3_ FaceSwap, 4_ NeuralTextures, none for original) |
Preprocessed Frames (frames/)
Only the train videos were preprocessed. The test videos are detected on the fly at inference time,
so the test split has no frames. The frames/ config is the same as in KoreaPeter/faceforensics-c23.
| Label | Source | Videos | Frames |
|---|---|---|---|
| REAL | original | 794 | 15,847 |
| FAKE | Deepfakes | 622 | 12,422 |
| FAKE | Face2Face | 643 | 12,685 |
| FAKE | FaceShifter | 644 | 12,847 |
| FAKE | FaceSwap | 629 | 12,416 |
| FAKE | NeuralTextures | 649 | 12,808 |
| Total | 3,981 | 79,025 |
| Field | Description |
|---|---|
image |
Face crop (PNG) |
landmarks |
5 facial landmarks [[x, y], ...] in crop coordinates |
box |
Face box [xmin, ymin, xmax, ymax] in the original frame |
label |
REAL (0) or FAKE (1) |
source |
Manipulation method, or original |
vid |
Video ID with method prefix |
ori_vid |
Source real video ID |
frame_idx |
Frame index in the video |
Forgery Annotation (annotation)
68 landmarks are detected with dlib on the fake crops (63,007 fake frames with landmarks). A fake frame
is kept only when at least one region is forged and at least one forgery flag of the forged
regions is on (status == "ok").
| Label | Source | Frames with landmarks | no_forged_region |
no_flag |
Kept |
|---|---|---|---|---|---|
| FAKE | Deepfakes | 12,374 | 4 | 6 | 12,364 |
| FAKE | Face2Face | 12,649 | 1,259 | 1,018 | 10,372 |
| FAKE | FaceShifter | 12,813 | 519 | 301 | 11,993 |
| FAKE | FaceSwap | 12,401 | 40 | 40 | 12,321 |
| FAKE | NeuralTextures | 12,770 | 1,897 | 1,107 | 9,766 |
| Total | 63,007 | 3,719 | 2,472 | 56,816 |
The 56,816 kept frames come from 3,167 fake videos (1β20 frames per video, median 20); 17 videos have no
kept frame. All REAL frames are kept in raw/train_clip_frame_metadata.csv (with an all-zero pair_label).
Forged regions
Share of the kept frames of each source in which the region is forged (%):
| Source | face | eyes | nose | mouth |
|---|---|---|---|---|
| Deepfakes | 99.8 | 99.8 | 98.0 | 99.0 |
| Face2Face | 53.8 | 34.4 | 47.7 | 99.6 |
| FaceShifter | 92.2 | 93.3 | 71.1 | 86.7 |
| FaceSwap | 97.7 | 100.0 | 97.1 | 65.4 |
| NeuralTextures | 36.4 | 36.1 | 37.4 | 99.9 |
| All | 78.5 | 75.6 | 72.5 | 89.4 |
Identity-swap methods (Deepfakes, FaceSwap) change the whole face, while reenactment methods (Face2Face, NeuralTextures) are concentrated around the mouth.
Forgery types
Share of the forged regions in which each flag is on (%):
| Region | blur | color | texture | structure | blend | any |
|---|---|---|---|---|---|---|
| face | 36.6 | 26.8 | 69.6 | 100.0 | 71.8 | 100.0 |
| eyes | 41.1 | 13.6 | 53.5 | 85.5 | 42.9 | 95.4 |
| nose | 28.2 | 8.4 | 65.4 | 48.1 | 33.5 | 86.9 |
| mouth | 19.6 | 9.8 | 33.3 | 63.4 | 49.5 | 91.0 |
Fields
| Field | Description |
|---|---|
vid |
Fake video ID with method prefix |
ori_vid |
Source real video ID. The aligned real crop is crops/{ori_vid}/{frame_idx}.png |
frame_idx |
Frame index in the video |
source |
Manipulation method |
status |
Always ok (only kept frames are stored) |
{region}_forged |
Whether the region is forged (region β face, eyes, nose, mouth) |
{region}_blur_score, {region}_blur_flag |
Blur score and flag |
{region}_color_score, {region}_color_flag |
Color score and flag |
{region}_texture_score, {region}_texture_flag |
Texture score and flag |
{region}_structure_score, {region}_structure_flag |
Structure (SSIM) score and flag |
{region}_blend_gradient, {region}_blend_edge, {region}_blend_freq |
Blending scores at the region boundary |
{region}_blend_flag |
At least two of the three blending scores exceed their thresholds |
The scores and flags are empty when the region is not forged.
pair_label
raw/train_clip_frame_metadata.csv (vid, ori_vid, source, frame_idx, label, pair_label) holds all REAL
frames and the kept FAKE frames. pair_label is the 20 flags of a frame as a string of 0/1, in the
order region (face, eyes, nose, mouth) Γ type (blur, color, texture, structure, blend).
An unforged region and every REAL row are 0. Read it with dtype={'pair_label': str} to keep the
leading zeros. The order is PAIR_ORDER of deepclip/data/text/template.py, which turns the flags into
captions.
| vid | label | pair_label (spaces added) | Meaning |
|---|---|---|---|
000 |
REAL | 00000 00000 00000 00000 |
|
000_003 |
FAKE | 01011 00010 00000 10001 |
face: color, structure, blend; eyes: structure; mouth: blur, blend |
Preprocessing
The pipeline is preprocess/ of DeepClip; see its
README for every detail.
Steps 1β3 come from DeepGuard and produced the crops and boxes
of KoreaPeter/faceforensics-c23; steps 4β5 are added by DeepClip.
- Split data β
train.json/test.json. - Detect original face β
yolov8n-faceon the real videos only; fake videos reuse the boxes of their source real video, so a fake crop and the real crop with the sameframe_idxare pixel-aligned. Frames are rescaled by their longest side before detection (< 300px: x2.0, 300β700px: x1.0, 700β1500px: x0.5, > 1500px: x0.33). 20 frames per video, random frame offset 5, confidence threshold 0.5, minimum face area ratio 0.01. - Crop face β margin 0.2, no jitter.
- Generate landmark β dlib 68 landmarks on the fake crops; the same region masks are applied to the aligned real crop.
- Raw annotation β the forgery mask is
1 - SSIMof the real / fake pair. A region is forged when the mean of the mask inside of it exceeds 55. Five forgery types are then measured in every forged region:
| Type | Score | Flag is on if |
|---|---|---|
| blur | Laplacian variance of the real minus the fake image | score > 25 |
| color | Mean of the differences of the mean and std in Lab | score > 1.0 |
| texture | Absolute difference of the GLCM contrast | score > 2.8 |
| structure | SSIM of the real / fake pair (lower = more deformed) | score < 0.985 |
| blend | Gradient, edge and frequency scores at the region boundary | at least two of gradient > 0.5, edge > 4, frequency > 0.15 |
The analysis follows raw_annotation.py of VLFFD. The forgery mask
(55) and blend gradient (0.5) thresholds are the original values; the others were adjusted to the FF++
score distribution, because the original values turned blur/color on for only 1β8% of the forged
regions and texture/structure/edge on for ~90% or more. The scores are stored, so you can re-threshold
without running the analysis again.
Known limit: the structure score depends on the region area, so at 0.985 the flag is on for 100% of forged
faceregions. Useface_structure_scoreif you need the magnitude.
Usage
from datasets import load_dataset
frames = load_dataset("KoreaPeter/faceforensics-c23-forgery-annotation", "frames", split="train")
ann = load_dataset("KoreaPeter/faceforensics-c23-forgery-annotation", "annotation", split="train")
Log in with hf auth login after your access request is approved.
Restore the DeepClip DATA_ROOT layout
raw/ holds the preprocessing outputs and the metadata CSVs:
| File | Size | Description |
|---|---|---|
raw/crops.tar |
9.8 GB | crops/{vid}/{frame_idx}.png, face crops of the real and fake videos |
raw/boxes.tar |
2.8 MB | boxes/{ori_vid}.json, face boxes of the real videos |
raw/landmarks.tar |
83 MB | landmarks/{vid}/{frame_idx}.npy, 5-point landmarks (DeepGuard) |
raw/forgery_masks.tar |
2.7 GB | New. forgery_masks/{vid}/{frame_idx}.png, 8-bit forgery mask of each kept fake crop |
raw/raw_annotation.parquet |
7.7 MB | New. Forgery annotation of the kept fake frames |
raw/train_clip_frame_metadata.csv |
3.8 MB | New. All REAL frames and the kept FAKE frames, with pair_label |
raw/train_frame_metadata.csv |
2.5 MB | Every saved crop (vid, ori_vid, source, frame_idx, label), input of step 4 |
raw/train_metadata.csv, raw/test_metadata.csv |
Video-level metadata | |
raw/csv/ |
Kaggle CSVs (FF++_Metadata.csv, ...) |
hf download KoreaPeter/faceforensics-c23-forgery-annotation --repo-type dataset --include "raw/*" "videos/*" --local-dir DATA_ROOT
cd DATA_ROOT
for f in raw/*.tar; do tar -xf "$f"; done
mv raw/*.csv raw/*.parquet . && mv raw/csv .
for f in videos/*/*.zip; do unzip -q "$f"; done
DATA_ROOT/
βββ Deepfakes/ β¦ original/{d_vid}.mp4
βββ csv/FF++_Metadata.csv
βββ train_metadata.csv, test_metadata.csv
βββ boxes/{ori_vid}.json
βββ crops/{vid}/{frame_idx}.png
βββ landmarks/{vid}/{frame_idx}.npy
βββ train_frame_metadata.csv
βββ forgery_masks/{vid}/{frame_idx}.png
βββ raw_annotation.parquet
βββ train_clip_frame_metadata.csv
This is the layout DeepClip's train_deepclip.py reads.
Build Your Own Annotation with Docker
This dataset is one run of the pipeline with its default arguments. You are free to customize the
preprocessing and build your own version with the DeepClip Docker image
(seoyunje/deepclip-preprocess, gpu / cpu
tags). run_pipeline.sh runs steps 1β5; choose the steps with STEPS and replace the arguments of a
step with its *_ARGS variable (see the
README).
Run the full pipeline from the videos:
docker run --gpus all --shm-size=8g --rm -v <DATA_ROOT>:/data -v deepclip-cache:/root/.cache/deepclip -it seoyunje/deepclip-preprocess:gpu
Reuse the crops and train_frame_metadata.csv of this dataset and only run landmarks and annotation
(CPU is enough; the 68 landmarks are not included, so step 4 detects them again):
docker run --shm-size=8g --rm -v <DATA_ROOT>:/data -v deepclip-cache:/root/.cache/deepclip -e STEPS=4,5 -it seoyunje/deepclip-preprocess:cpu
Change the crop margin (the later steps must be run again):
docker run --gpus all --shm-size=8g --rm -v <DATA_ROOT>:/data -v deepclip-cache:/root/.cache/deepclip -e STEPS=3,4,5 -e CROP_FACE_ARGS="--margin-ratio 0.3 --margin-jitter 0.05" -it seoyunje/deepclip-preprocess:gpu
The forgery-type thresholds are constants in preprocess/forgery_features.py: edit them and build the
image from source (docker build -f preprocess/Dockerfile -t deepclip-preprocess:gpu .), or simply
re-threshold the stored scores of this dataset.
DeepClip Models & Demo
DeepClip (Region-Aware Face Forgery Artifact Description with Contrastive Language-Image Pre-training)
is trained on this dataset. It aligns DeepGuard's MS-Eff-GCViT image encoder with CLIP text embeddings of
the captions built from pair_label, and predicts not only the fake probability but also an
artifact score for each of the 4 regions Γ 5 artifact types: where and how a face is forged.
| Model | Resolution | Image Encoder | Text Encoder | Hub |
|---|---|---|---|---|
| deepclip_b0 | 224 Γ 224 | ms_eff_gcvit_b0 | CLIP ViT-B/16 (frozen) | KoreaPeter/deepclip_b0 |
| deepclip_b5 | 384 Γ 384 | ms_eff_gcvit_b5 | CLIP ViT-L/14 (frozen) | KoreaPeter/deepclip_b5 |
Space:
- DeepClip β Face Forgery Artifact Description: upload an image or video to get the fake probability and the region Γ artifact captions in text.
Citation
The forgery annotation follows the Face Forgery Text Generator (FFTG) of VLFFD (github.com/skJack/VLFFD):
@inproceedings{vlffd2025,
title = {Towards General Visual-Linguistic Face Forgery Detection},
author = {Sun, Ke and Chen, Shen and Yao, Taiping and Zhou, Ziyin and Ji, Jiayi and Sun, Xiaoshuai and Lin, Chia-Wen and Ji, Rongrong},
booktitle = {CVPR},
year = {2025}
}
FaceForensics++:
@inproceedings{roessler2019faceforensicspp,
author = {Andreas R\"ossler and Davide Cozzolino and Luisa Verdoliva and Christian Riess and Justus Thies and Matthias Nie{\ss}ner},
title = {Face{F}orensics++: Learning to Detect Manipulated Facial Images},
booktitle = {International Conference on Computer Vision (ICCV)},
year = {2019}
}
- Downloads last month
- 1,650