kd13 commited on
Commit
38f8be3
·
verified ·
1 Parent(s): ef22071

Upload DeepfakeTIMIT frames (identity-disjoint train/validation/test)

Browse files
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-nd-4.0
3
+ pretty_name: DeepfakeTIMIT Frames
4
+ task_categories:
5
+ - image-classification
6
+ tags:
7
+ - deepfake
8
+ - deepfake-detection
9
+ - face-swap
10
+ - faces
11
+ - vidtimit
12
+ size_categories:
13
+ - 10K<n<100K
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - split: train
18
+ path: data/train-*
19
+ - split: validation
20
+ path: data/validation-*
21
+ - split: test
22
+ path: data/test-*
23
+ ---
24
+
25
+ # DeepfakeTIMIT Frames
26
+
27
+ Still frames extracted from the face-swap videos of
28
+ [DeepfakeTIMIT](https://www.idiap.ch/en/dataset/deepfaketimit) (Idiap Research Institute),
29
+ with an **identity-disjoint** train / validation / test split. No video or audio is included.
30
+
31
+ DeepfakeTIMIT swaps faces between 16 pairs of similar-looking subjects from
32
+ [VidTIMIT](https://conradsanderson.id.au/vidtimit/) using a GAN-based face-swap method, in a
33
+ low-quality (LQ, 64×64 model) and a high-quality (HQ, 128×128 model) version. **All samples are fake
34
+ (face swap).**
35
+
36
+ ## Schema
37
+
38
+ | column | type | value in this dataset |
39
+ |---|---|---|
40
+ | `image` | Image (PNG bytes) | full 512x384 video frame |
41
+ | `binary_name` | string | `fake` |
42
+ | `binary_label` | int64 | `1` (0 = real, 1 = fake) |
43
+ | `class_name` | string | `FS` |
44
+ | `class_id` | int64 | `1` (0 = real, 1 = FS, 2 = FR, 3 = EFS, 4 = FE) |
45
+
46
+ ## Frame sampling
47
+
48
+ Each video (mean 106.3 frames at 25 fps, ~4 s) is divided into **20 equal segments** and the
49
+ **middle frame** of each segment is kept: `index_i = floor((i + 0.5) * T / 20)`.
50
+ 640 videos × 20 = **12,800 images**, stored losslessly as PNG.
51
+
52
+ ## Splits (no identity leakage)
53
+
54
+ Every fake video contains two people (one person's face on the other person's video), so subjects
55
+ are grouped into their face-swap **pairs** and whole pairs are assigned to a split. All frames of a
56
+ video, the LQ and HQ versions of a clip, and both people of a pair are always in the same split.
57
+ No identity appears in more than one split.
58
+
59
+ | split | images | share | videos | identities |
60
+ |---|---:|---:|---:|---:|
61
+ | train | 8,800 | 68.75% | 440 (220 LQ / 220 HQ) | 22 |
62
+ | validation | 1,600 | 12.5% | 80 (40 LQ / 40 HQ) | 4 |
63
+ | test | 2,400 | 18.75% | 120 (60 LQ / 60 HQ) | 6 |
64
+
65
+ | split | face-swap pair |
66
+ |---|---|
67
+ | train | fcft0, fdrd1 |
68
+ | train | fcmh0, fjre0 |
69
+ | train | fdac1, felc0 |
70
+ | train | fjas0, fjwb0 |
71
+ | train | fjem0, fkms0 |
72
+ | train | mdab0, mpdf0 |
73
+ | train | mdbb0, mrcz0 |
74
+ | train | mgwt0, mjar0 |
75
+ | train | mpgl0, mwbt0 |
76
+ | train | mrgg0, msjs1 |
77
+ | train | mrjo0, mstk0 |
78
+ | validation | fadg0, fram1 |
79
+ | validation | faks0, fedw0 |
80
+ | test | mccs0, mmdm2 |
81
+ | test | mcem0, mdld0 |
82
+ | test | mjsw0, mmdb1 |
83
+
84
+ Per-frame provenance (source video, LQ/HQ, frame index) is in `metadata/manifest.csv`; the
85
+ identity → split map is in `metadata/split_assignment.json`. If you combine this with real VidTIMIT
86
+ frames, put each subject in the same split listed there.
87
+
88
+ ## Usage
89
+
90
+ ```python
91
+ from datasets import load_dataset
92
+ ds = load_dataset("kd13/DEEPFAKETIMIT-frames")
93
+ ds["train"][0]["image"] # PIL image
94
+ ```
95
+
96
+ ## License and citation
97
+
98
+ Derived from DeepfakeTIMIT, licensed **CC BY-NC-ND 4.0**: non-commercial use only, with attribution.
99
+ This repository contains unmodified frames (an excerpt, format-changed) of the original videos.
100
+ Any publication using this data must cite:
101
+
102
+ ```bibtex
103
+ @article{korshunov2018deepfakes,
104
+ title = {DeepFakes: a New Threat to Face Recognition? Assessment and Detection},
105
+ author = {Korshunov, Pavel and Marcel, S{\'e}bastien},
106
+ journal = {arXiv preprint arXiv:1812.08685},
107
+ year = {2018}
108
+ }
109
+
110
+ @inproceedings{sanderson2009multiregion,
111
+ title = {Multi-Region Probabilistic Histograms for Robust and Scalable Identity Inference},
112
+ author = {Sanderson, Conrad and Lovell, Brian C.},
113
+ booktitle = {Advances in Biometrics (ICB 2009)},
114
+ series = {Lecture Notes in Computer Science},
115
+ volume = {5558},
116
+ pages = {199--208},
117
+ year = {2009}
118
+ }
119
+ ```
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08d52a30985d91dac6c83e9a376c13f160ca156f3be33739d4e0a700be26d1cb
3
+ size 425734208
data/train-00000-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d9ea573e4c03ee38a539b97373c906c74657c1d65827d7e8519ace21e3f946c
3
+ size 499289496
data/train-00001-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f3af47ecab2b204231c73eacb5f9e49264913d9abc79ec06f2e82bfdab4574b
3
+ size 498463077
data/train-00002-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c5ddba22502534a97192826af53b805e7dbd02ed114fe6dc398ea32070b9015
3
+ size 502271359
data/train-00003-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbf84191006c94e796ab6b375fbfcefbfd66a7cfe633657b6f123ed4e8b77cbb
3
+ size 70582058
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4abbb52fd17e061eab350d8e19c4d7364140f5eba944a26db3729b63026bdd5
3
+ size 280541907
metadata/manifest.csv ADDED
The diff for this file is too large to render. See raw diff
 
metadata/split_assignment.json ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "rule": "identity-disjoint: whole face-swap pairs (union-find groups) per split",
3
+ "seed": 42,
4
+ "target_ratios": {
5
+ "train": 0.7,
6
+ "validation": 0.15,
7
+ "test": 0.15
8
+ },
9
+ "groups": [
10
+ {
11
+ "group_id": 0,
12
+ "identities": [
13
+ "fadg0",
14
+ "fram1"
15
+ ],
16
+ "split": "validation",
17
+ "videos": 40
18
+ },
19
+ {
20
+ "group_id": 1,
21
+ "identities": [
22
+ "faks0",
23
+ "fedw0"
24
+ ],
25
+ "split": "validation",
26
+ "videos": 40
27
+ },
28
+ {
29
+ "group_id": 2,
30
+ "identities": [
31
+ "fcft0",
32
+ "fdrd1"
33
+ ],
34
+ "split": "train",
35
+ "videos": 40
36
+ },
37
+ {
38
+ "group_id": 3,
39
+ "identities": [
40
+ "fcmh0",
41
+ "fjre0"
42
+ ],
43
+ "split": "train",
44
+ "videos": 40
45
+ },
46
+ {
47
+ "group_id": 4,
48
+ "identities": [
49
+ "fdac1",
50
+ "felc0"
51
+ ],
52
+ "split": "train",
53
+ "videos": 40
54
+ },
55
+ {
56
+ "group_id": 5,
57
+ "identities": [
58
+ "fjas0",
59
+ "fjwb0"
60
+ ],
61
+ "split": "train",
62
+ "videos": 40
63
+ },
64
+ {
65
+ "group_id": 6,
66
+ "identities": [
67
+ "fjem0",
68
+ "fkms0"
69
+ ],
70
+ "split": "train",
71
+ "videos": 40
72
+ },
73
+ {
74
+ "group_id": 7,
75
+ "identities": [
76
+ "mccs0",
77
+ "mmdm2"
78
+ ],
79
+ "split": "test",
80
+ "videos": 40
81
+ },
82
+ {
83
+ "group_id": 8,
84
+ "identities": [
85
+ "mcem0",
86
+ "mdld0"
87
+ ],
88
+ "split": "test",
89
+ "videos": 40
90
+ },
91
+ {
92
+ "group_id": 9,
93
+ "identities": [
94
+ "mdab0",
95
+ "mpdf0"
96
+ ],
97
+ "split": "train",
98
+ "videos": 40
99
+ },
100
+ {
101
+ "group_id": 10,
102
+ "identities": [
103
+ "mdbb0",
104
+ "mrcz0"
105
+ ],
106
+ "split": "train",
107
+ "videos": 40
108
+ },
109
+ {
110
+ "group_id": 11,
111
+ "identities": [
112
+ "mgwt0",
113
+ "mjar0"
114
+ ],
115
+ "split": "train",
116
+ "videos": 40
117
+ },
118
+ {
119
+ "group_id": 12,
120
+ "identities": [
121
+ "mjsw0",
122
+ "mmdb1"
123
+ ],
124
+ "split": "test",
125
+ "videos": 40
126
+ },
127
+ {
128
+ "group_id": 13,
129
+ "identities": [
130
+ "mpgl0",
131
+ "mwbt0"
132
+ ],
133
+ "split": "train",
134
+ "videos": 40
135
+ },
136
+ {
137
+ "group_id": 14,
138
+ "identities": [
139
+ "mrgg0",
140
+ "msjs1"
141
+ ],
142
+ "split": "train",
143
+ "videos": 40
144
+ },
145
+ {
146
+ "group_id": 15,
147
+ "identities": [
148
+ "mrjo0",
149
+ "mstk0"
150
+ ],
151
+ "split": "train",
152
+ "videos": 40
153
+ }
154
+ ],
155
+ "identity_to_split": {
156
+ "fadg0": "validation",
157
+ "faks0": "validation",
158
+ "fcft0": "train",
159
+ "fcmh0": "train",
160
+ "fdac1": "train",
161
+ "fdrd1": "train",
162
+ "fedw0": "validation",
163
+ "felc0": "train",
164
+ "fjas0": "train",
165
+ "fjem0": "train",
166
+ "fjre0": "train",
167
+ "fjwb0": "train",
168
+ "fkms0": "train",
169
+ "fram1": "validation",
170
+ "mccs0": "test",
171
+ "mcem0": "test",
172
+ "mdab0": "train",
173
+ "mdbb0": "train",
174
+ "mdld0": "test",
175
+ "mgwt0": "train",
176
+ "mjar0": "train",
177
+ "mjsw0": "test",
178
+ "mmdb1": "test",
179
+ "mmdm2": "test",
180
+ "mpdf0": "train",
181
+ "mpgl0": "train",
182
+ "mrcz0": "train",
183
+ "mrgg0": "train",
184
+ "mrjo0": "train",
185
+ "msjs1": "train",
186
+ "mstk0": "train",
187
+ "mwbt0": "train"
188
+ }
189
+ }
metadata/stats.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "DeepfakeTIMIT",
3
+ "labels": {
4
+ "binary_name": "fake",
5
+ "binary_label": 1,
6
+ "class_name": "FS",
7
+ "class_id": 1,
8
+ "class_id_map": {
9
+ "real": 0,
10
+ "FS": 1,
11
+ "FR": 2,
12
+ "EFS": 3,
13
+ "FE": 4
14
+ }
15
+ },
16
+ "frames_per_video": 20,
17
+ "sampling": "middle frame of each of N equal temporal segments",
18
+ "image_format": "png",
19
+ "videos_found": 640,
20
+ "videos_failed": 0,
21
+ "failed": [],
22
+ "total_images": 12800,
23
+ "splits": {
24
+ "train": {
25
+ "images": 8800,
26
+ "image_pct": 68.75,
27
+ "videos": 440,
28
+ "videos_LQ": 220,
29
+ "videos_HQ": 220,
30
+ "identities": [
31
+ "fcft0",
32
+ "fcmh0",
33
+ "fdac1",
34
+ "fdrd1",
35
+ "felc0",
36
+ "fjas0",
37
+ "fjem0",
38
+ "fjre0",
39
+ "fjwb0",
40
+ "fkms0",
41
+ "mdab0",
42
+ "mdbb0",
43
+ "mgwt0",
44
+ "mjar0",
45
+ "mpdf0",
46
+ "mpgl0",
47
+ "mrcz0",
48
+ "mrgg0",
49
+ "mrjo0",
50
+ "msjs1",
51
+ "mstk0",
52
+ "mwbt0"
53
+ ],
54
+ "file": "train.parquet",
55
+ "size_mb": 1570.6
56
+ },
57
+ "validation": {
58
+ "images": 1600,
59
+ "image_pct": 12.5,
60
+ "videos": 80,
61
+ "videos_LQ": 40,
62
+ "videos_HQ": 40,
63
+ "identities": [
64
+ "fadg0",
65
+ "faks0",
66
+ "fedw0",
67
+ "fram1"
68
+ ],
69
+ "file": "validation.parquet",
70
+ "size_mb": 280.5
71
+ },
72
+ "test": {
73
+ "images": 2400,
74
+ "image_pct": 18.75,
75
+ "videos": 120,
76
+ "videos_LQ": 60,
77
+ "videos_HQ": 60,
78
+ "identities": [
79
+ "mccs0",
80
+ "mcem0",
81
+ "mdld0",
82
+ "mjsw0",
83
+ "mmdb1",
84
+ "mmdm2"
85
+ ],
86
+ "file": "test.parquet",
87
+ "size_mb": 425.7
88
+ }
89
+ },
90
+ "video_total_frames": {
91
+ "min": 54,
92
+ "max": 240,
93
+ "mean": 106.3
94
+ },
95
+ "video_fps": {
96
+ "25.0": 640
97
+ },
98
+ "frame_sizes": {
99
+ "512x384": 640
100
+ },
101
+ "elapsed_sec": 34.8
102
+ }