Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ValueError
Message:      Invalid string class label face_classification_project@b5e2709dfc753d07277b0c0fc43eb5c0c8b9bca6
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 151, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 131, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 574, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2591, in __iter__
                  example = _apply_feature_types_on_example(
                      example, self.features, token_per_repo_id=self.token_per_repo_id
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2508, in _apply_feature_types_on_example
                  encoded_example = features.encode_example(example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2252, in encode_example
                  return encode_nested_example(self, example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1526, in encode_nested_example
                  {k: encode_nested_example(schema[k], obj.get(k), level=level + 1) for k in schema}
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1549, in encode_nested_example
                  return schema.encode_example(obj) if obj is not None else None
                         ~~~~~~~~~~~~~~~~~~~~~^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1210, in encode_example
                  example_data = self.str2int(example_data)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1147, in str2int
                  output = [self._strval2int(value) for value in values]
                            ~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1168, in _strval2int
                  raise ValueError(f"Invalid string class label {value}")
              ValueError: Invalid string class label face_classification_project@b5e2709dfc753d07277b0c0fc43eb5c0c8b9bca6

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Real vs. AI-Generated MTCNN-Cropped Faces (98,797 Images)

This dataset is the curated, MTCNN-cropped binary face classification training pool built for the face_classification_project repository.

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)

pip install huggingface_hub

Download all archives into Data_cropped/ using 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:

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).

Downloads last month
35