v2.5.0
Datasets ⭐
EXAMPLE CODE
AFW Dataset
Load AFW in Python with one line of code. Stream AFW while training models in PyTorch & TensorFlow. Visualize the AFW (Annotated Faces in the Wild) dataset.
Visualization of AFW dataset Activeloop Platform

AFW Dataset

What is AFW Dataset?

The AFW (Annotated Faces in the Wild) dataset, is made up of 205 images with 468 faces in total. Every face in the dataset is labeled with at most six landmarks with visibility labels, as well as a bounding box. AFW is often used for landmark estimation in real-world, cluttered images, face detection, and pose estimation

Download AFW Dataset in Python

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

Load AFW Dataset Training Subset in Python

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

AFW Dataset Structure

AFW Data Fields

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

AFW Data Splits

How to use AFW Dataset with PyTorch and TensorFlow in Python

Train a model on AFW 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 AFW dataset with TensorFlow in Python

1
dataloader = ds.tensorflow()
Copied!

Additional Information about AFW Dataset

AFW Dataset Description

  • Paper: Introduced by Xiangxin Zhu et al. in Face detection, pose estimation, and landmark localization in the wild
  • Point of Contact: N/A

AFW Dataset Curators

Xiangxin Zhu; Deva Ramanan

AFW 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!

AFW Dataset Citation Information

1
@inproceedings{,
2
title = {Face detection, pose estimation, and landmark localization in the wild},
3
author = {Xiangxin Zhu; Deva Ramanan},
4
booktitle = {2012 IEEE Conference on Computer Vision and Pattern Recognition},
5
year = {2012}
6
}
Copied!

AFW Dataset FAQs

What is the AFW dataset for Python?

The Annotated Faces in the Wild (AFW) dataset comprises of 205 pictures with 468 faces in total. AFW is a popular standardized benchmark for automatic facial landmark localization and detection. The dataset helps with developing models that detect a set of predefined facial fiducial points.

What is the AFW dataset used for?

The AFW dataset is commonly used for training and testing models for face detection, pose estimation, and landmark estimation in real-world, cluttered images. It is a popular benchmark for automatic facial landmark localization and detection.

How can I use AFW dataset in PyTorch or TensorFlow?

You can stream AFW 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 AFW dataset with PyTorch in Python or train a model on AFW dataset with TensorFlow in Python.