Categories and task attributes
Last updated
Last updated
When editing the category and task attribute configuration directly, you need to adhere to the following format:
Name | Type | Description |
---|---|---|
The categories
array should contain at least one category.
Note that the inline comments in the examples should be left out, as comments of the form//…
or /*…*/
are not allowed in JSON.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
categories
array
of categories
Required. List of all possible categories for a label in this dataset.
image_attributes
array
of attributes
List of image-level attributes.
circle_radius
int
The radius of the circle around the ego position in the 3D cuboid and vector interface. Can be used to indicate a region in which objects should be annotated.
name
string
Required. Name of the attribute.
input_type
string
: select
| text
| number
| checkbox
Required. Type of the attribute.
values
array
of string
s
Required when input_type
is select
. List of possible values.
min
string
Valid when input_type
is number
. Minimum value the attribute can be.
max
string
Valid when input_type
is number
. Maximum value the attribute can be.
step
string
Valid when input_type
is number
. Step when incrementing/decrementing the value of the attribute.
default_value
string
| boolean
depending on input_type
Default value of the attribute.
is_mandatory
boolean
Valid when input_type
is select
, text
or number
. Whether the attribute is mandatory. Mandatory attributes raise a warning when not filled in.
is_track_level
boolean
Valid in sequence datasets. Whether an attribute should remain constant across all frames for an object with a certain track ID. If false, the attribute can change each frame.
name
string
Required. Name of the category.
id
int
Required. Index of the category.
color
array
of 3 float
values in [0, 255]
RGB color of the category.
has_instances
boolean
Whether the category contains instances (person, car) or not (sky, road)
attributes
array
of attributes
List of object-level attributes.
dimensions
object
: {
"x": float
,
"y": float
,
"z": float
}
...
...
Other key-value pairs can be supplied, but will be ignored.
Default XYZ dimensions of a new cuboid. Only valid in the point cloud cuboid editor (see ).