Documentation
Search…
Configure the label editor
Once you've created a dataset, you can further configure the labeling interface under Settings -> Labeling -> Categories:
Here you can set the color, name and description for each category. You can also add one or more object-level attributes to a category by expanding its row, or add image-level attributes by clicking the button "Edit image attributes".
Attributes come in 4 types: select box, text, number and checkbox. You can optionally set a default value for each attribute or make them mandatory.

Editing the configuration file directly

If you click on the "Raw" tab, you can see the configuration in JSON format. You can copy-paste this configuration from one dataset to another, or update it programmatically using the Python SDK.
The format is defined as follows:
1
{
2
"format_version": "0.1",
3
"categories": [
4
{ // At the minimum, a category should have a name and id
5
"name": "person",
6
"id": 1
7
},
8
{
9
"name": "car",
10
"id": 2,
11
"has_instances": true, // Whether the category contains instances (person, car) or not (sky, road)
12
"color": [33, 138, 33], // RGB color of the category
13
"foo": "bar" // You can add custom key-value pairs. These will be ignored.
14
},
15
{
16
"name": "traffic-light",
17
"id": 3,
18
"attributes": [ // Optional object-level attributes
19
{
20
"name": "color",
21
"input_type": "select",
22
"values": [
23
"green",
24
"yellow",
25
"red"
26
],
27
"default_value": "red" // optional
28
},
29
{
30
"name": "description",
31
"input_type": "text",
32
"default_value": "A nice car." // optional
33
},
34
{
35
"name": "number_of_wheels",
36
"input_type": "number",
37
"min": "1",
38
"max": "20",
39
"step": "1",
40
"default_value": 4 // optional
41
},
42
{
43
"name": "is_",
44
"input_type": "checkbox",
45
"default_value": false // optional
46
}
47
]
48
}
49
],
50
"image_attributes": [ // Optional image-level attributes
51
{
52
"name": "scene_type",
53
"input_type": "select",
54
"values": [
55
"highway",
56
"urban",
57
"countryside"
58
],
59
"default_value": "highway" // optional
60
},
61
{
62
"name": "description",
63
"input_type": "text",
64
"default_value": "A nice sunny highway scene." // optional
65
},
66
{
67
"name": "visibility",
68
"input_type": "number",
69
"min": "0.0",
70
"max": "1.0",
71
"step": "0.01",
72
"default_value": 0.8 // optional
73
},
74
{
75
"name": "sunny",
76
"input_type": "checkbox",
77
"default_value": true // optional
78
}
79
]
80
}
Copied!
Note that the inline comments in this example configuration file should be left out, as comments of the form//… or /*…*/ are not allowed in JSON.
Last modified 10d ago