v2.5.0
Datasets ⭐
EXAMPLE CODE
KTH Actions Dataset
Load KTH Actions dataset in Python fast with one line of code. KTH Actions is an action recognition dataset. Stream KTH Actions Dataset while training models in Pytorch and Tensorflow.

KTH Actions dataset

What is KTH Actions Dataset?

The KTH Actions dataset contains six actions (walk, jog, run, box, hand-wave, and hand clap). It is one of the most standard datasets. Each action in the dataset is performed by 25 different individuals, and the setting is systematically altered for each action per actor. Setting variations include outdoor, outdoor with scale variation, outdoor with different clothes, and indoor (s4). These variations test the ability of algorithms to identify actions independent of the background, the appearance of the actors, and the scale of the actors.

Download KTH Actions Dataset in Python

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

Load KTH Actions Dataset Training Subset in Python

1
import hub
2
ds = hub.load('hub://activeloop/kth-actions')
Copied!

KTH Actions Dataset Structure

KTH Actions Data Fields

  • videos: tensor containing the videos.
  • actions: tensor to represent the various actions.
  • scenerios: tensor to represent the different scenerios.

KTH Actions Data Splits

How to use KTH Actions Dataset with PyTorch and TensorFlow in Python

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

1
dataloader = ds.tensorflow()
Copied!

Additional Information about KTH Actions Dataset

KTH Actions Dataset Description

KTH Actions Dataset Curators

Roth, Peter M. and Mauthner, Thomas and Khan, Inayatullah and Bischof, Horst

KTH Actions 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!

KTH Actions Dataset Citation Information

1
@inproceedings{inproceedings,
2
author = {Roth, Peter M. and Mauthner, Thomas and Khan, Inayatullah and Bischof, Horst},
3
year = {2009},
4
month = {11},
5
pages = {546 - 553},
6
title = {Efficient human action recognition by cascaded linear classifcation},
7
doi = {10.1109/ICCVW.2009.5457655}
8
}
Copied!

KTH Actions Dataset FAQs

What is the KTH Actions dataset for Python?

The KTH dataset is one of the most standard datasets, which contains six activities: walk, run, run, box, hand-wave, and hand applaud. To represent execution subtlety, each activity is performed by 25 distinct people, and the setting is deliberately adjusted for each activity per entertainer. Setting varieties in the dataset include open-air, outside with scale variety, open-air with various garments, and indoor.

How can I use the KTH Actions dataset in PyTorch or TensorFlow?

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