数据集:
Bingsu/Human_Action_Recognition
一个来自 kaggle 的数据集,原始数据: https://dphi.tech/challenges/data-sprint-76-human-activity-recognition/233/data
数据实例具有以下字段:
{ 'calling': 0, 'clapping': 1, 'cycling': 2, 'dancing': 3, 'drinking': 4, 'eating': 5, 'fighting': 6, 'hugging': 7, 'laughing': 8, 'listening_to_music': 9, 'running': 10, 'sitting': 11, 'sleeping': 12, 'texting': 13, 'using_laptop': 14 }
train | test | |
---|---|---|
# of examples | 12600 | 5400 |
>>> from datasets import load_dataset >>> ds = load_dataset("Bingsu/Human_Action_Recognition") >>> ds DatasetDict({ test: Dataset({ features: ['image', 'labels'], num_rows: 5400 }) train: Dataset({ features: ['image', 'labels'], num_rows: 12600 }) }) >>> ds["train"].features {'image': Image(decode=True, id=None), 'labels': ClassLabel(num_classes=15, names=['calling', 'clapping', 'cycling', 'dancing', 'drinking', 'eating', 'fighting', 'hugging', 'laughing', 'listening_to_music', 'running', 'sitting', 'sleeping', 'texting', 'using_laptop'], id=None)} >>> ds["train"][0] {'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=240x160>, 'labels': 11}