Flickr Diverse Faces (FDF) is a dataset with 1.5M faces "in the wild". FDF has a large diversity in terms of facial pose, age, ethnicity, occluding objects, facial painting, and image background. The dataset is designed for generative models for face anonymization, and it was released with the paper "DeepPrivacy: A Generative Adversarial Network for Face Anonymization.
The dataset was crawled from the website Flickr (YFCC-100M dataset) and automatically annotated. Each face is annotated with 7 facial landmarks (left/right ear, lef/right eye, left/right shoulder, and nose), and a bounding box of the face. Our paper goes into more detail about the automatic annotation.
The images are collected from images in the YFCC-100M dataset and each image in our dataset is free to use for academic or open source projects. For each face, the corresponding original license is given in the metadata. Some of the images require giving proper credit to the original author, as well as indicating any changes that were made to the images. The original author is given in the metadata.
The dataset contains images with the following licenses:
- CC BY-NC-SA 2.0: 623,598 Images (23.4 GB)
- CC BY-SA 2.0: 199,502 Images 7.4 GB)
- CC BY 2.0: 352,961 Images (13.1 GB)
- CC BY-NC 2.0: 295,192 Images (10.9 GB)
The FDF metadata is under Apache 2.0 License.
If you find this code or dataset useful, please cite the following:
@InProceedings{10.1007/978-3-030-33720-9_44,
author="Hukkel{\aa}s, H{\aa}kon
and Mester, Rudolf
and Lindseth, Frank",
title="DeepPrivacy: A Generative Adversarial Network for Face Anonymization",
booktitle="Advances in Visual Computing",
year="2019",
publisher="Springer International Publishing",
pages="565--578",
isbn="978-3-030-33720-9"
}
- First, install dependencies:
pip install wget, tqdm
- To download metadata, run (expects python 3.6+):
python download.py --target_directory data/fdf
- If you want to download including images:
python download.py --target_directory data/fdf --download_images
For each face in the dataset, follows the following metainfo:
{
"0": { // FDF image index
"author": "flickr_username",
"bounding_box": [], # List with 4 eleemnts [xmin, ymin, xmax, ymax] indicating the bounding box of the face in the FDF image. In range 0-1.
"category": "validation", # validation or training set
"date_crawled": "2019-3-6",
"date_taken": "2010-01-16 21:47:59.0",
"date_uploaded": "2010-01-16",
"landmark": [], # List with shape (7,2). Each row is (x0, y0) indicating the position of the landmark. Landmark order: [nose, r_eye, l_eye, r_ear, l_ear, r_shoulder, l_shoulder]. In range 0-1.
"license": "Attribution-NonCommercial License",
"license_url": "http://creativecommons.org/licenses/by-nc/2.0/",
"original_bounding_box": [], # List with 4 eleemnts [xmin, ymin, xmax, ymax] indicating the bounding box of the face in original image from flickr.
"original_landmark": [], # Landmark from the original image from flickr. List with shape (7,2). Each row is (x0, y0) indicating the position of the landmark. Landmark order: [nose, r_eye, l_eye, r_ear, l_ear, r_shoulder, l_shoulder]
"photo_title": "original_photo_name", # Flickr photo title
"photo_url": "http://www.flickr.com/photos/.../", # Original image URL
"yfcc100m_line_idx": "0" # The Line index from the YFCC-100M dataset
},
....
}
There are 50,000 validation images, 1,421,253 training images.
Each face in the original image has a resolution of minimum:
If you find the dataset useful, please cite the following:
@InProceedings{10.1007/978-3-030-33720-9_44,
author="Hukkel{\aa}s, H{\aa}kon
and Mester, Rudolf
and Lindseth, Frank",
title="DeepPrivacy: A Generative Adversarial Network for Face Anonymization",
booktitle="Advances in Visual Computing",
year="2019",
publisher="Springer International Publishing",
pages="565--578",
isbn="978-3-030-33720-9"
}