v2.5.0
Datasets ⭐
EXAMPLE CODE
LSP Dataset
Load LSP (Leeds Sports Pose) in Python fast with one line of code. Stream LSP while training models in PyTorch and TensorFlow. Visualize the LSP dataset.
Visualization of the LSP train dataset on the Activeloop Platform.

LSP Dataset

What is LSP Dataset?

The Leeds Sports Pose (LSP) dataset is an image dataset. It is widely used as the benchmark for human pose estimation. The LSP dataset contains 10,000 images gathered from Flickr searches for the tags "parkour", "gymnastics", and "athletics". The images in the dataset consist of poses deemed to be challenging to estimate. Each image in the dataset has been scaled such that the annotated person is roughly 150 pixels in length. Also, each image has been annotated with up to 14 visible joint locations.

Download LSP Dataset in Python

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

Load LSP Dataset Training Subset in Python

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

Load LSP Dataset Testing Subset in Python

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

LSP Dataset Structure

LSP Data Fields

  • images: tensor containing images of the dataset.
  • keypoints: tensor containing keypoints in the format x,y, visibility. x and y are multiplied with 1.75 for visualization of key points on Activeloop Hub.
  • images_visualized: tensor containing images the way they will be visualized after training.

LSP Data Splits

How to use LSP Dataset with PyTorch and TensorFlow in Python

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

1
dataloader = ds.tensorflow()
Copied!

Additional Information about LSP Dataset

LSP Dataset Description

LSP Dataset Curators

Sam Johnson, Mark Everingham

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

LSP Dataset Citation Information

1
@inproceedings{johnson2010clustered,
2
title={Clustered Pose and Nonlinear Appearance Models for Human Pose Estimation.},
3
author={Johnson, Sam and Everingham, Mark},
4
booktitle={bmvc},
5
volume={2},
6
number={4},
7
pages={5},
8
year={2010}
9
}
Copied!

LSP Dataset FAQs

What is the LSP dataset for Python?

The Leeds Sports Pose (LSP) is often used as a benchmark for human pose estimation. The dataset is also often used for human body joint detection. The dataset contains 10,000 images gathered from Flickr searches and consists of poses deemed to be challenging to estimate
How to download the LSP dataset in Python?
You can load LSP dataset fast with one line of code using the open-source package Activeloop Hub in Python. See detailed instructions on how to load LSP dataset training subset and LSP testing subset in Python.

LSP vs LSP -Extended. What is the difference between LSP and LSP -Extended?

The LSP-Extended dataset is similar to the LSP dataset; however, it includes more training samples. The LSP-Extended dataset has 10000 training samples including 1000 training samples from the LSP dataset.