graviti
ProductOpen DatasetsApps MarketSolutionsResourcesCompany
2.8K
2
3
BDD100K
General
Discussion
Code
Activities
Dataset non-members cannot use this dataset via developer tools. You can access and use the data after forking the dataset.
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    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        box2d_category = label_box2d.category
24        box2d_attributes = label_box2d.attributes
25    classification = data.label.classification
26