Generating human faces from the CelebA dataset

The CelebFaces Attributes (CelebA, http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html) dataset is a large-scale face attributes dataset with more than 200,000 celebrity images, each with 40 attribute annotations. We need to download the cropped and aligned images. We won't need any attribute annotation here so we only need to download the file named img_align_celeba.zip, which is no more than 2 GB in size.

If you can't download the CelebA dataset from official links, try these links provided by Kaggle and the official PyTorch tutorial: https://www.kaggle.com/jessicali9530/celeba-dataset and https://drive.google.com/drive/folders/0B7EVK8r0v71pWEZsZE9oNnFzTm8. Note that you only need to download ...

Get Hands-On Generative Adversarial Networks with PyTorch 1.x now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.