graviti
产品公开数据集应用市场解决方案知识库关于我们
22.8K
23
690
BDD100K
概要
讨论
代码
活动
非数据集成员无法通过开发者工具直接使用该数据集,您可通过Fork后获取和使用数据
Fork数据集
1from tensorbay import GAS
2from tensorbay.dataset import Dataset
3
4# Authorize a GAS client.
5gas = GAS('<YOUR_ACCESS_KEY>')
6
7# Get a dataset.
8dataset = Dataset("BDD100K", gas)
9
10# List dataset segments.
11segments = dataset.keys()
12
13# Get a segment by name
14segment = dataset["train"]
15for data in segment:
16    fp = data.open()
17    # Use the data as you like.
18    classification = data.label.classification
19    for label_box2d in data.label.box2d:
20        xmin = label_box2d.xmin
21        ymin = label_box2d.ymin
22        xmax = label_box2d.xmax
23        ymax = label_box2d.ymax
24        box2d_category = label_box2d.category
25        box2d_attributes = label_box2d.attributes
26