v2.5.0
Datasets ⭐
EXAMPLE CODE
LFPW Dataset
Load LFPW dataset in Python fast with one line of code. LFPW is a facial keypoints detection dataset. Stream LFPW Dataset while training models in PyTorch & TensorFlow.
Visualization of the LFPW train Dataset on the Activeloop Platform

LFPW dataset

What is LFPW Dataset?

The Labeled Face Parts-in-the-Wild (LFPW) dataset consists of 1,432 faces gathered from images acquired from the web using simple text queries on sites such as google.com, flickr.com, and yahoo.com. The LFPW dataset was used to showcase a novel approach to localizing parts in photos of human faces. Each image was labeled by three Amazon MTurk workers, with 29 fiducial points included in the dataset.

Download LFPW Dataset in Python

Instead of downloading the LFPW dataset in Python, you can effortlessly load it in Python via our open-source package Hub with just one line of code.

Load LFPW Dataset Training Subset in Python

1
import hub
2
ds = hub.load("hub://activeloop/LFPW-train")
Copied!

Load LFPW Dataset Testing Subset in Python

1
import hub
2
ds = hub.load("hub://activeloop/LFPW-test")
Copied!

LFPW Dataset Structure

LFPW Data Fields

  • images: tensor containing the face image.
  • keypoints: tensor to identify various keypoints from face

LFPW Data Splits

How to use LFPW Dataset with PyTorch and TensorFlow in Python

Train a model on LFPW dataset with PyTorch in Python

Let's use Hub's built-in PyTorch one-line dataloader to connect the data to the compute:
1
dataloader = ds.pytorch(num_workers=0, batch_size=4, shuffle=False)
Copied!

Train a model on LFPW dataset with TensorFlow in Python

1
dataloader = ds.tensorflow()
Copied!

Additional Information about LFPW Dataset

LFPW Dataset Description

  • Paper: "Localizing Parts of Faces Using a Consensus of Exemplars,"
    Peter N. Belhumeur, David W. Jacobs, David J. Kriegman, Neeraj Kumar,
    Proceedings of the 24th IEEE Conference on Computer Vision and Pattern Recognition (CVPR),
    June 2011.
  • Point of Contact: N/A

LFPW Dataset Curators

Peter N. Belhumeur, David W. Jacobs, David J. Kriegman, Neeraj Kumar

LFPW Dataset Licensing Information

Hub users may have access to a variety of publicly available datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have a license to use the datasets. It is your responsibility to determine whether you have permission to use the datasets under their license.
If you're a dataset owner and do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thank you for your contribution to the ML community!

LFPW Dataset Citation Information

1
@inproceedings{,
2
title = {Localizing Parts of Faces Using a Consensus of Exemplars},
3
author = {Peter N. Belhumeur, David W. Jacobs, David J. Kriegman, Neeraj Kumar},
4
booktitle = {Proceedings of the 24th IEEE Conference on Computer Vision and Pattern Recognition (CVPR),
5
June 2011.},
6
year = {2011}
7
}
Copied!

LFPW Dataset FAQs

What is the LFPW dataset for Python?

The Labeled Face Parts-in-the-Wild (LFPW) dataset comprises 1,432 faces assembled from pictures downloaded by querying search engines like Google, Yahoo, and Flickr.

What is the LFPW dataset used for?

This dataset is great for training and testing models for face detection, particularly for recognizing facial attributes such as finding people with brown hair, are smiling, or wearing glasses. Images cover large pose variations, background clutter, and diverse people, supported by a large number of images and rich annotations.

How can I use the LFPW dataset in PyTorch or TensorFlow?

You can stream LFPW dataset while training a model in PyTorch or TensorFlow with one line of code using the open-source package Activeloop Hub in Python. See detailed instructions on how to train a model on LFPW dataset with PyTorch in Python or train a model on LFPW dataset with TensorFlow in Python.