# CelebA (2015)

> 202,599 celebrity face photos, each tagged with 40 yes/no attributes.

Page: https://mralbu.github.io/ai-datasets/d/celeba

## Key facts

- Category: Vision
- Task: Face attribute recognition; a staple for generative models
- Creators: Ziwei Liu, Ping Luo, Xiaogang Wang, Xiaoou Tang (CUHK)
- Size: 202,599 images of 10,177 people
- Splits: train 162,770, valid 19,867, test 19,962
- Input: Aligned, cropped face, 178×218 px
- Labels: 40 binary attributes (Smiling, Eyeglasses, Bangs, …), identity, 5 landmarks
- License: Non-commercial research only
- Paper: [Deep Learning Face Attributes in the Wild](https://arxiv.org/abs/1411.7766)
- Homepage: https://mmlab.ie.cuhk.edu.hk/projects/CelebA.html
- Hugging Face: [tpremoli/CelebA-attrs](https://huggingface.co/datasets/tpremoli/CelebA-attrs)
- Sampled at Hub revision ed9021d2871ceddbd3cf0fb642544bd7c60c5152 (2026-11-07)

## Why it matters

For years the default dataset for generating and editing faces: VAEs, GANs and their attribute editors (make this face smile, add glasses) were shown on CelebA, and Progressive GAN's high-resolution CelebA-HQ set the bar for photorealism in 2017. Its labels also made it a standard test bed for fairness research, because some attributes are subjective and the celebrities are far from representative.

## Worth knowing

- Faces are aligned by the eye positions and cropped, so eyes sit in almost the same place in every image.
- Some labels are matters of opinion. "Attractive" is one of the 40 attributes, and gender is a single "Male" flag.
- The people are celebrities, so most are young and many are white, a known skew for any model trained on it.
- The tags below are the attributes marked true for each photo.

## Get the data

A community Parquet copy of the aligned images with their attributes. The originals, with identities and landmarks, are on the CelebA homepage.

```bash
# pip install -U huggingface_hub
hf download tpremoli/CelebA-attrs --repo-type dataset \
  --local-dir celeba
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("tpremoli/CelebA-attrs")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/tpremoli/CelebA-attrs@~parquet/default/validation/*.parquet")
print(df.shape)
```

## Related datasets

- [CelebA-HQ](https://github.com/tkarras/progressive_growing_of_gans): 2017, 30k faces at 1024×1024, from Progressive GAN
- [FFHQ](https://github.com/NVlabs/ffhq-dataset): 2019, 70k Flickr faces, made for StyleGAN
- [LFW](https://www.tensorflow.org/datasets/catalog/lfw): 2007, the classic face-verification benchmark

## Landmark papers

- [Progressive Growing of GANs for Improved Quality, Stability, and Variation](https://arxiv.org/abs/1710.10196) (2017)
- [StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translation](https://arxiv.org/abs/1711.09020) (2017)

## Papers on this site that use it

- [DDPM (2020)](https://mralbu.github.io/ai-datasets/p/ddpm.md): Learn to undo noise one small step at a time, and generate images by denoising pure noise.
- [Latent diffusion (2021)](https://mralbu.github.io/ai-datasets/p/latent-diffusion.md): Run diffusion in a compressed latent space instead of on pixels, and steer it with text through cross-attention.
