Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
10K<n<100K
ArXiv:
License:
File size: 2,390 Bytes
080d933 7bafaba 080d933 1b19d5f 5d589fb 1b19d5f 080d933 f855a45 080d933 635d823 080d933 6b48b62 080d933 635d823 080d933 f855a45 080d933 635d823 080d933 f855a45 6b48b62 f855a45 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
---
license:
- cc-by-4.0
size_categories:
- 10K<n<100K
task_categories:
- image-classification
task_ids:
- multi-class-image-classification
paperswithcode_id: fairface
language:
- en
pretty_name: FairFace
---
# Dataset Card for FairFace
## Usage
```python
from io import BytesIO
from PIL import Image
import datasets
def bytes_to_pil(example_batch):
example_batch['img'] = [
Image.open(BytesIO(b)) for b in example_batch.pop('img_bytes')
]
return example_batch
ds = datasets.load_dataset('nateraw/fairface')
ds = ds.with_transform(bytes_to_pil)
```
## Table of Contents
- [Usage](#usage)
- [Dataset Description](#dataset-description)
- [Dataset Summary](#dataset-summary)
- [Dataset Structure](#dataset-structure)
- [Data Fields](#data-fields)
- [Data Instances](#data-instances)
## Dataset Description
- **Repository:** [FairFace repository](https://github.com/joojs/fairface)
- **Paper:** [FairFace: Face Attribute Dataset for Balanced Race, Gender, and Age](https://arxiv.org/abs/1908.04913)
### Dataset Summary
Existing public face datasets are strongly biased toward Caucasian faces, and other races (e.g., Latino) are significantly underrepresented. This can lead to inconsistent model accuracy, limit the applicability of face analytic systems to non-White race groups, and adversely affect research findings based on such skewed data. To mitigate the race bias in these datasets, we construct a novel face image dataset, containing 108,501 images, with an emphasis of balanced race composition in the dataset. We define 7 race groups: White, Black, Indian, East Asian, Southeast Asian, Middle East, and Latino. Images were collected from the YFCC-100M Flickr dataset and labeled with race, gender, and age groups. Evaluations were performed on existing face attribute datasets as well as novel image datasets to measure generalization performance. We find that the model trained from our dataset is substantially more accurate on novel datasets and the accuracy is consistent between race and gender groups.
## Dataset Structure
### Data Fields
- img_bytes: Bytes representing an image
- age: Age of the person in the image
- gender: Gender of the person in the image
- race: Race of the person in the image
### Data Instances
```
{
'age': 6,
'gender': 1,
'img_bytes': b'\\\\\\\\\\\\\\\\xff\\\\\\\\\\\\\\\\xd8...',
'race': 1
}
``` |