v2.5.0
Datasets ⭐
EXAMPLE CODE
300w Dataset
Load the 300w dataset of over 300 in-the-wild photographs of faces in Python fast. Stream 300w while training models in PyTorch & TensorFlow. Visualize 300w.
Visualization of 300w train dataset in Activeloop Platform

300w dataset

What is 300w Dataset?

The 300w is a face dataset made up of 300 in-the-wild photographs taken inside and outdoors. It encompasses a wide range of identity, expression, lighting, stance, occlusion, and facial size. The photographs were obtained by searching for "party," "conference," "protests," "football," and "celebrities" on Google. The 300w database has a higher percentage of partially-occluded photos and covers more expressions than the standard "neutral" or "smile," such as "surprise" or "scream," when compared to other in-the-wild datasets. A semi-automatic approach was used to annotate images using the 68-point mark-up.

Download 300w Dataset in Python

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

Load 300w Dataset Training Subset in Python

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

300w Dataset Structure

300w Data Fields

  • image: tensor containing the face image.
  • keypoints: tensor to identify various keypoints from face.
  • labels: tensor to distinguish between indoor and outdoor images.

300w Data Splits

How to use 300w Dataset with PyTorch and TensorFlow in Python

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

1
dataloader = ds.tensorflow()
Copied!

Additional Information about 300w Dataset

300w Dataset Description

300w Dataset Curators

C. Sagonas, E. Antonakos, G, Tzimiropoulos, S. Zafeiriou, M. Pantic

300w 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!

300w Dataset Citation Information

1
@inproceedings{,
2
title = { 300 faces In-the-wild challenge: Database and results},
3
author = {C. Sagonas, E. Antonakos, G, Tzimiropoulos, S. Zafeiriou, M. Pantic},
4
booktitle = {Image and Vision Computing (IMAVIS), Special Issue on Facial Landmark Localisation},
5
year = {2016}
6
}
Copied!

300w Dataset FAQs

What is the 300w dataset for Python?

The 300w dataset is a face dataset comprised of 300 in-the-wild photos taken inside and outside. It includes a wide scope of personality, appearance, lighting, position, impediment, and facial size.
How to download the 300w dataset in Python?
You can load 300w dataset fast with one line of code using the open-source package Activeloop Hub in Python. See detailed instructions on how to load 300w dataset training subset in Python.

How can I use 300w dataset in PyTorch or TensorFlow?

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