---
title: body_2d_keypoints_test_dataset
canonical_url: "https://www.modelscope.cn/datasets/modelscope/body_2d_keypoints_test_dataset"
md_url: "https://www.modelscope.cn/datasets/modelscope/body_2d_keypoints_test_dataset.md"
repository: modelscope/body_2d_keypoints_test_dataset
chinese_name: "人体2d关键点测试数据集"
last_updated: 2022-10-14
license: "Apache License 2.0"
storage_size: "5.5 KB"
domain:
  - image
tasks:
  - body-2d-keypoints
size_scale:
  - 0-115
downloads: 1412
stars: 7
---

# body_2d_keypoints_test_dataset

> body_2d_keypoints_test_dataset - modelscope 在 ModelScope 开源的数据集。本数据集由100张包含人体的图像组成，仅用于测试15点人体关键点模型。

modelscope/body_2d_keypoints_test_dataset 是 ModelScope 魔搭社区上的body-2d-keypoints数据集，涉及 image 领域，存储大小 5.5 KB，采用 Apache License 2.0 许可。

- **Repository**: modelscope/body_2d_keypoints_test_dataset
- **License**: Apache License 2.0
- **Tasks**: body-2d-keypoints
- **Domain**: image
- **Storage size**: 5.5 KB
- **Downloads**: 1412
- **Stars**: 7
- **Last updated**: 2022-10-14

Source: https://www.modelscope.cn/datasets/modelscope/body_2d_keypoints_test_dataset

---

## 数据集描述
人体2d关键点测试数据集


## 数据集描述
本数据集主要用于15点人体关键点模型测试，包含100张测试图片。本数据集为公开数据集 [coco](https://cocodataset.org/#download) 的子集。

### 数据集简介
由100张包含人体的图像组成，用于测试15点人体关键点模型。

### 数据集支持的任务
本数据集支持15点人体关键点模型测试。

## 数据集的格式和结构

### 数据格式
数据集中仅包含人体图片，可直接用于人体关键点模型测试使用。

### 数据集加载方式
下面是加载数据集并使用人体2D关键点模型进行测试的示例代码：

```python
from modelscope.msdatasets import MsDataset
from modelscope.outputs import OutputKeys
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks, DownloadMode

model_id = 'damo/cv_hrnetv2w32_body-2d-keypoints_image'
body_2d_keypoints = pipeline(Tasks.body_2d_keypoints, model=model_id)
ds_dict = MsDataset.load('body_2d_keypoints_test_dataset', namespace="modelscope", split='test', download_mode=DownloadMode.FORCE_REDOWNLOAD)

print(f'The number of images: {len(ds_dict)}')
print(f'Take the first image as an example.')
print(f'Image index: {ds_dict[0]["Index"]}')
print(f'Image path: {ds_dict[0]["InputImage:FILE"]}')

result = body_2d_keypoints(ds_dict[0]["InputImage:FILE"])
print(f'result keypoint is : {result[OutputKeys.KEYPOINTS]}')
print(f'result scores is : {result[OutputKeys.SCORES]}')
print(f'result boxes is : {result[OutputKeys.BOXES]}')
```

## 数据集信息
本数据集主要来源于以下工作：

```
@inproceedings{lin2014microsoft,
  title={Microsoft coco: Common objects in context},
  author={Lin, Tsung-Yi and Maire, Michael and Belongie, Serge and Hays, James and Perona, Pietro and Ramanan, Deva and Doll{\'a}r, Piotr and Zitnick, C Lawrence},
  booktitle={European conference on computer vision},
  pages={740--755},
  year={2014},
  organization={Springer}
}
```

### Clone with HTTP
* http://www.modelscope.cn/datasets/modelscope/body_2d_keypoints_test_dataset.git
