graviti logo产品公开数据集关于我们
Demo演示登录
1.4K
0
23
5 Categories Animal-Pose
概要
讨论
代码
活动
非数据集成员无法通过开发者工具直接使用该数据集,您可通过Fork后获取和使用数据
Fork数据集
1from tensorbay import GAS
2from tensorbay.dataset import Segment
3
4# Authorize a GAS client.
5gas = GAS('<YOUR_ACCESS_KEY>')
6
7# Get a dataset client.
8dataset_client = gas.get_dataset("AnimalPose5")
9
10# List dataset segments.
11segments = dataset_client.list_segment_names()
12
13# Get a segment by name
14segment = Segment("part1", dataset_client)
15for data in segment:
16    fp = data.open()
17    # Use the data as you like.
18    for label_box2d in data.label.box2d:
19        xmin = label_box2d.xmin
20        ymin = label_box2d.ymin
21        xmax = label_box2d.xmax
22        ymax = label_box2d.ymax
23        category = label_box2d.category
24    for label_keypoints2d in data.label.keypoints2d[0]:
25        x = data.label.keypoints2d[0].x
26        y = data.label.keypoints2d[0].y
27        v = data.label.keypoints2d[0].v
28        category = label_keypoints2d.category
立即开始构建AI
免费开始联系我们