# lfw

<br />

- **Description**:

Labeled Faces in the Wild: A Database for Studying Face Recognition in
Unconstrained Environments

- **Additional Documentation** :
  [Explore on Papers With Code](https://paperswithcode.com/dataset/lfw)

- **Homepage** :
  <http://vis-www.cs.umass.edu/lfw>

- **Source code** :
  [`tfds.datasets.lfw.Builder`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/lfw/lfw_dataset_builder.py)

- **Versions**:

  - **`0.1.1`** (default): No release notes.
- **Download size** : `172.20 MiB`

- **Dataset size** : `180.28 MiB`

- **Auto-cached**
  ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
  Only when `shuffle_files=False` (train)

- **Splits**:

| Split | Examples |
|---|---|
| `'train'` | 13,233 |

- **Feature structure**:

    FeaturesDict({
        'image': Image(shape=(250, 250, 3), dtype=uint8),
        'label': Text(shape=(), dtype=string),
    })

- **Feature documentation**:

| Feature | Class | Shape | Dtype | Description |
|---|---|---|---|---|
|   | FeaturesDict |   |   |   |
| image | Image | (250, 250, 3) | uint8 |   |
| label | Text |   | string |   |

- **Supervised keys** (See
  [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):
  `('label', 'image')`

- **Figure**
  ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):

![Visualization](https://storage.googleapis.com/tfds-data/visualization/fig/lfw-0.1.1.png)

- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<button id="displaydataframe">Display examples...</button>

- **Citation**:

    @TechReport{LFWTech,
        author = {Gary B. Huang and Manu Ramesh and Tamara Berg and Erik Learned-Miller},
        title = {Labeled Faces in the Wild: A Database for Studying Face Recognition in Unconstrained Environments},
        institution = {University of Massachusetts, Amherst},
        year = 2007,
        number = {07-49},
        month = {October}
    }