CREMA-D-frames / README.md
kd13's picture
Add dataset card and metadata
e51655e verified
|
Raw History Blame Contribute Delete
4.54 kB
---
license: odbl
pretty_name: CREMA-D Frames
task_categories:
- image-classification
tags:
- deepfake-detection
- face
- crema-d
- real-images
size_categories:
- 10K<n<100K
configs:
- config_name: default
data_files:
- split: train
path: data/train-*.parquet
- split: validation
path: data/validation-*.parquet
- split: test
path: data/test-*.parquet
dataset_info:
features:
- name: image
dtype: image
- name: binary_name
dtype: string
- name: binary_label
dtype: int64
- name: class_name
dtype: string
- name: class_id
dtype: int64
splits:
- name: train
num_examples: 52389
- name: validation
num_examples: 11350
- name: test
num_examples: 10650
download_size: 9426290748
---
# CREMA-D Frames
Frame-level image version of [CREMA-D](https://github.com/CheyneyComputerScience/CREMA-D)
(Crowd-sourced Emotional Multimodal Actors Dataset). There is no video and no audio, only
still frames. All samples are **real** (genuine recordings). The data is meant as the real
class of a real-vs-fake face dataset.
- **74,389 frames** from 7,440 videos of 91 actors, PNG (lossless), 480x360
- **Identity-disjoint splits**: every actor appears in exactly one split
## Schema
| Column | Type | Values |
|---|---|---|
| `image` | image | PNG frame |
| `binary_name` | string | `real` / `fake` (always `real` here) |
| `binary_label` | int64 | 0 = real, 1 = fake (always 0 here) |
| `class_name` | string | `real`, `FS`, `FR`, `EFS`, `FE` (always `real` here) |
| `class_id` | int64 | 0 = real, 1 = FS, 2 = FR, 3 = EFS, 4 = FE (always 0 here) |
## Frame selection
Each clip (1.3-5.0 s, 30 fps) is divided into **10 equal temporal segments**, and the
**middle frame of each segment** is kept. That gives up to 10 frames per video, about one every
0.25 s on an average clip, which avoids near-duplicate neighbouring frames. Clips the
CREMA-D README flags as broken are excluded (`1076_MTI_SAD_XX`, `1064_TIE_SAD_XX`). Uniform/blank frames are dropped.
## Splits (by actor, no identity leakage)
The 91 actors are split 70/15/15, stratified by sex, with seed 42. All
actors read the same 12 sentences, so a frame- or video-level split would put the same face in
train and test. Here no actor, no video and no pixel-identical frame is shared between splits
(checked automatically when the dataset was built).
| Split | Actors | Videos | Frames | Share |
|---|---|---|---|---|
| train | 64 | 5,240 | 52,389 | 70.4% |
| validation | 14 | 1,135 | 11,350 | 15.3% |
| test | 13 | 1,065 | 10,650 | 14.3% |
| Split | Actor IDs |
|---|---|
| train | 1001, 1005, 1006, 1007, 1011, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1024, 1026, 1027, 1029, 1031, 1033, 1036, 1037, 1038, 1039, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1057, 1058, 1060, 1061, 1062, 1063, 1065, 1066, 1070, 1071, 1072, 1073, 1075, 1076, 1077, 1078, 1079, 1080, 1082, 1083, 1085, 1086, 1088, 1089, 1090, 1091 |
| validation | 1002, 1004, 1008, 1009, 1012, 1022, 1023, 1034, 1035, 1056, 1059, 1067, 1068, 1074 |
| test | 1003, 1010, 1025, 1028, 1030, 1032, 1040, 1048, 1064, 1069, 1081, 1084, 1087 |
The actor-to-split map is in `metadata/actor_splits.csv`. **If you build fakes from CREMA-D
identities, put each fake in the split of its source/target actor** to keep the splits leak-free.
`metadata/frames_index.csv` maps every row to its source video, actor, frame index and demographics.
## Usage
```python
from datasets import load_dataset
ds = load_dataset("kd13/CREMA-D-frames")
sample = ds["train"][0]
sample["image"] # PIL.Image
sample["binary_label"] # 0
```
## Source, license and citation
Derived from CREMA-D, which is released under the
[Open Database License (ODbL) v1.0](http://opendatacommons.org/licenses/odbl/1.0/), with
individual contents under the [Database Contents License](http://opendatacommons.org/licenses/dbcl/1.0/).
This derived database is released under the same terms.
```bibtex
@article{cao2014crema,
title = {CREMA-D: Crowd-sourced Emotional Multimodal Actors Dataset},
author = {Cao, Houwei and Cooper, David G. and Keutmann, Michael K. and Gur, Ruben C. and Nenkova, Ani and Verma, Ragini},
journal = {IEEE Transactions on Affective Computing},
volume = {5},
number = {4},
pages = {377--390},
year = {2014},
doi = {10.1109/TAFFC.2014.2336244}
}
```