File size: 3,976 Bytes
38f8be3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---

license: cc-by-nc-nd-4.0
pretty_name: DeepfakeTIMIT Frames
task_categories:
- image-classification
tags:
- deepfake
- deepfake-detection
- face-swap
- faces
- vidtimit
size_categories:
- 10K<n<100K
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
  - split: test
    path: data/test-*
---


# DeepfakeTIMIT Frames

Still frames extracted from the face-swap videos of
[DeepfakeTIMIT](https://www.idiap.ch/en/dataset/deepfaketimit) (Idiap Research Institute),
with an **identity-disjoint** train / validation / test split. No video or audio is included.

DeepfakeTIMIT swaps faces between 16 pairs of similar-looking subjects from
[VidTIMIT](https://conradsanderson.id.au/vidtimit/) using a GAN-based face-swap method, in a
low-quality (LQ, 64×64 model) and a high-quality (HQ, 128×128 model) version. **All samples are fake

(face swap).**

## Schema

| column | type | value in this dataset |
|---|---|---|
| `image` | Image (PNG bytes) | full 512x384 video frame |
| `binary_name` | string | `fake` |
| `binary_label` | int64 | `1` (0 = real, 1 = fake) |
| `class_name` | string | `FS` |
| `class_id` | int64 | `1` (0 = real, 1 = FS, 2 = FR, 3 = EFS, 4 = FE) |

## Frame sampling

Each video (mean 106.3 frames at 25 fps, ~4 s) is divided into **20 equal segments** and the
**middle frame** of each segment is kept: `index_i = floor((i + 0.5) * T / 20)`.
640 videos × 20 = **12,800 images**, stored losslessly as PNG.

## Splits (no identity leakage)

Every fake video contains two people (one person's face on the other person's video), so subjects
are grouped into their face-swap **pairs** and whole pairs are assigned to a split. All frames of a
video, the LQ and HQ versions of a clip, and both people of a pair are always in the same split.
No identity appears in more than one split.

| split | images | share | videos | identities |
|---|---:|---:|---:|---:|
| train | 8,800 | 68.75% | 440 (220 LQ / 220 HQ) | 22 |
| validation | 1,600 | 12.5% | 80 (40 LQ / 40 HQ) | 4 |
| test | 2,400 | 18.75% | 120 (60 LQ / 60 HQ) | 6 |

| split | face-swap pair |
|---|---|
| train | fcft0, fdrd1 |
| train | fcmh0, fjre0 |
| train | fdac1, felc0 |
| train | fjas0, fjwb0 |
| train | fjem0, fkms0 |
| train | mdab0, mpdf0 |
| train | mdbb0, mrcz0 |
| train | mgwt0, mjar0 |
| train | mpgl0, mwbt0 |
| train | mrgg0, msjs1 |
| train | mrjo0, mstk0 |
| validation | fadg0, fram1 |
| validation | faks0, fedw0 |
| test | mccs0, mmdm2 |
| test | mcem0, mdld0 |
| test | mjsw0, mmdb1 |

Per-frame provenance (source video, LQ/HQ, frame index) is in `metadata/manifest.csv`; the
identity → split map is in `metadata/split_assignment.json`. If you combine this with real VidTIMIT
frames, put each subject in the same split listed there.

## Usage

```python

from datasets import load_dataset

ds = load_dataset("kd13/DEEPFAKETIMIT-frames")

ds["train"][0]["image"]  # PIL image

```

## License and citation

Derived from DeepfakeTIMIT, licensed **CC BY-NC-ND 4.0**: non-commercial use only, with attribution.
This repository contains unmodified frames (an excerpt, format-changed) of the original videos.
Any publication using this data must cite:

```bibtex

@article{korshunov2018deepfakes,

  title   = {DeepFakes: a New Threat to Face Recognition? Assessment and Detection},

  author  = {Korshunov, Pavel and Marcel, S{\'e}bastien},

  journal = {arXiv preprint arXiv:1812.08685},

  year    = {2018}

}



@inproceedings{sanderson2009multiregion,

  title     = {Multi-Region Probabilistic Histograms for Robust and Scalable Identity Inference},

  author    = {Sanderson, Conrad and Lovell, Brian C.},

  booktitle = {Advances in Biometrics (ICB 2009)},

  series    = {Lecture Notes in Computer Science},

  volume    = {5558},

  pages     = {199--208},

  year      = {2009}

}

```