Datasets:
|
Download README.md from kd13/talkinghead-frames: direct link, hf CLI and curl.
- Browser
- Download file 5.44 kB
-
https://huggingface.co/datasets/kd13/talkinghead-frames/resolve/main/README.md
- Command line
-
hf download hf://datasets/kd13/talkinghead-frames/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/kd13/talkinghead-frames/resolve/main/README.md
5.44 kB
| license: cc-by-3.0 | |
| pretty_name: TalkingHead-1KH Frames (real faces) | |
| task_categories: | |
| - image-classification | |
| tags: | |
| - deepfake-detection | |
| - face-forgery-detection | |
| - faces | |
| - talking-head | |
| - real | |
| size_categories: | |
| - 1M<n<10M | |
| 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_bytes: 53199625136 | |
| num_examples: 1387798 | |
| - name: validation | |
| num_bytes: 10070189173 | |
| num_examples: 279929 | |
| - name: test | |
| num_bytes: 11557548701 | |
| num_examples: 303530 | |
| download_size: 74827363010 | |
| dataset_size: 74827363010 | |
| # TalkingHead-1KH Frames (real faces) | |
| **1,971,257 real face-crop frames** sampled from the | |
| [TalkingHead-1KH](https://github.com/tcwang0509/TalkingHead-1KH) talking-head videos. | |
| They are meant as the **real** class of a deepfake / face-forgery detection dataset. No video and | |
| no audio are included, only individual frames. | |
| ## Schema | |
| | column | type | value in this dataset | | |
| |---|---|---| | |
| | `image` | image | face crop, JPEG (quality 95), native crop size (no resizing) | | |
| | `binary_name` | string | `real` (real / fake) | | |
| | `binary_label` | int64 | `0` (0 = real, 1 = fake) | | |
| | `class_name` | string | `real` (real / FS / EFS / FR / FE) | | |
| | `class_id` | int64 | `0` (0 = real, 1 = FS, 2 = FR, 3 = EFS, 4 = FE) | | |
| All rows are real footage, so the label columns are constant. They follow a shared label scheme, | |
| so this set can be concatenated with fake-class datasets (FS = face swap, FR = face reenactment, | |
| EFS = entire face synthesis, FE = face editing). | |
| ## Splits (identity-safe) | |
| | split | frames | share | clips | source videos | channel groups | shards | | |
| |---|---|---|---|---|---|---| | |
| | train | 1,387,798 | 70.4% | 274,782 | 1,548 | 743 | 101 | | |
| | validation | 279,929 | 14.2% | 54,985 | 248 | 144 | 20 | | |
| | test | 303,530 | 15.4% | 61,120 | 376 | 164 | 22 | | |
| The split is made at the level of **YouTube channels**. All frames of a clip, all clips of a | |
| video, and all videos of the same channel (matched by channel URL *or* channel name) are in the | |
| same split. So no video or channel, and therefore none of their speakers, appears in two splits. | |
| Channel groups were assigned largest first to the split furthest below its 70 / 15 / 15 quota | |
| (seed 42), so every split has a similar mix of large and small channels. | |
| Leakage check on the final files: videos in more than one split = | |
| 0, channel groups in more than one split = | |
| 0, duplicate frames = 0. | |
| *Limitation:* a person appearing on two **different** channels cannot be detected from metadata | |
| alone. | |
| ## How the frames were made | |
| 1. The official clip list (`train` + `val`, 505,466 face clips from 2,898 YouTube videos) was used. | |
| Videos that are no longer public, or whose license is no longer Creative Commons, were skipped. | |
| 2. Each video was downloaded video-only at the resolution the official boxes were annotated on | |
| (720p H.264 for almost all), split into 1-minute chunks by stream copy, and cropped with the | |
| official boxes, exactly like the official `videos_split.sh` / `videos_crop.py`. The crops are | |
| bit-identical to the official clips before image encoding. | |
| 3. Each clip `[S, E]` was divided into **k equal parts** and the **middle frame of each part** was | |
| kept. k = 8, reduced for short clips so kept frames are at least 0.5 s apart (at least 1 | |
| frame per clip). | |
| 4. Rows were shuffled within each split and written as ~500 MB Parquet shards. | |
| ## Usage | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset("kd13/talkinghead-frames") # downloads ~70 GB | |
| ds = load_dataset("kd13/talkinghead-frames", streaming=True) # or stream it | |
| sample = next(iter(ds["train"])) | |
| sample["image"] # PIL.Image | |
| ``` | |
| ## Provenance files (`metadata/`) | |
| * `frames_manifest.parquet`: for every frame (`shard`, `row`), its YouTube `video_id`, official | |
| clip name, frame number, fps, crop size and channel group. The source video is | |
| `https://www.youtube.com/watch?v=<video_id>`. | |
| * `split_assignment.csv`: video → split, channel group, channel name. | |
| * `split_summary.json`, `split_plan.json`, `extract_config.json`: counts, leakage check, settings. | |
| ## License and attribution | |
| The frames come from YouTube videos published by their authors under | |
| **Creative Commons Attribution 3.0 (CC BY 3.0)**, as selected by the TalkingHead-1KH authors. | |
| Attribution for every frame (source video and channel) is in the `metadata/` files. The | |
| TalkingHead-1KH metadata and scripts are MIT licensed by NVIDIA. | |
| **Removal:** if you appear in or own a source video and want your frames removed, please open a | |
| discussion on this repository with the video link. Videos whose license changed away from CC | |
| before collection were already excluded. | |
| ## Citation | |
| ```bibtex | |
| @inproceedings{wang2021facevid2vid, | |
| title={One-Shot Free-View Neural Talking-Head Synthesis for Video Conferencing}, | |
| author={Ting-Chun Wang and Arun Mallya and Ming-Yu Liu}, | |
| booktitle={CVPR}, | |
| year={2021} | |
| } | |
| ``` | |