--- license: other task_categories: - image-classification tags: - deepfake-detection - ai-generated-faces - face-classification - computer-vision - mtcnn pretty_name: Real vs. AI-Generated MTCNN-Cropped Faces size_categories: - 10K **Note:** The companion classification project has been **archived / discontinued** due to insufficient training samples for frontier generative models (such as xAI Grok/FLUX and Ideogram). This dataset is published openly so anyone continuing the project or training their own deepfake/AI-face detectors can reuse the compiled 98.7k cropped faces directly. --- ## Archive Contents (98,797 Images Total) All images are pre-cropped tightly around detected faces using **MTCNN (`facenet-pytorch`)** and packaged inside their `ImageFolder` class subdirectories (`fake_faces/` and `real_faces/`). | Archive File | Class Folder Inside | Image Count | Archive Size | Contents | | --- | --- | ---: | ---: | --- | | `fake_faces.zip` | `fake_faces/` | 36,829 | 1.07 GB (1,100.79 MB) | StyleGAN / TPDNE + StyleGAN3 + Stable Diffusion + Modern AI Collages | | `real_faces_celeba.zip` | `real_faces/` | 9,976 | 0.10 GB (100.06 MB) | CelebA-HQ (256x256) studio & celebrity portraits | | `real_faces_ffhq_part1.zip` | `real_faces/` | 25,996 | 4.03 GB (4,123.29 MB) | FFHQ (Flickr-Faces-HQ) real portraits — Part 1 of 2 | | `real_faces_ffhq_part2.zip` | `real_faces/` | 25,996 | 4.01 GB (4,108.89 MB) | FFHQ (Flickr-Faces-HQ) real portraits — Part 2 of 2 | | **Total** | | **98,797** | **9.21 GB** | | --- ## Dataset Composition & Sources ### Real Human Faces (`real_faces/` — 61,968 images) - **FFHQ (Flickr-Faces-HQ):** `51,992` MTCNN-cropped everyday human portraits across diverse ages, lighting, and backgrounds. - **CelebA-HQ (256x256):** `9,976` MTCNN-cropped studio-lit and celebrity portraits (extracted from a 10,000-image subset) added to fix domain shift on professional photography. ### AI-Generated / Fake Faces (`fake_faces/` — 36,829 images) - **GAN Face Collections (StyleGAN / ThisPersonDoesNotExist & Kaggle GAN sets):** `24,514` images (`14,630` numbered + `9,884` UUID files). - **StyleGAN3:** `2,001` images (`styleGAN3_*.jpg`). - **Stable Diffusion (768px & 1024px):** `5,987` images (`2,987` @ 768px + `3,000` @ 1024px) sourced from Kaggle (`mohannadaymansalah/stable-diffusion-dataaaaaaaaa`) and cropped with MTCNN. - **Modern AI Multi-Face Collages:** `4,327` faces (`collage_fake_*.jpg`) extracted via multi-face MTCNN from 44 custom multi-subject collages generated with **ChatGPT (GPT-Image)**, **Google Gemini**, **xAI Grok (FLUX)**, and **Ideogram**. --- ## Quickstart (Download & Train) ```bash pip install huggingface_hub ``` Download all archives into `Data_cropped/` using Python: ```python import os import zipfile from huggingface_hub import hf_hub_download REPO_ID = "Eren8705/real-vs-ai-cropped-faces" FILES = [ "fake_faces.zip", "real_faces_celeba.zip", "real_faces_ffhq_part1.zip", "real_faces_ffhq_part2.zip", ] os.makedirs("Data_cropped", exist_ok=True) for fname in FILES: zip_path = hf_hub_download(repo_id=REPO_ID, filename=fname, repo_type="dataset") with zipfile.ZipFile(zip_path, "r") as zf: zf.extractall("Data_cropped") ``` After extraction, `Data_cropped/` will have the exact structure expected by `train.py` in [Eren386/face_classification_project](https://github.com/Eren386/face_classification_project): ```text Data_cropped/ ├── fake_faces/ (36,829 images) └── real_faces/ (61,968 images) ``` --- ## License & Attribution This dataset is a compilation of subsets derived from public academic/community datasets (FFHQ, CelebA-HQ, StyleGAN/StyleGAN3, Stable Diffusion) and custom-generated AI face collages. All original upstream licenses and non-commercial / research terms of the respective source datasets apply (`license: other`).