Other Items for Tables
Following classes are sub items composed of each schema tables.
SampleData
FileFormat
An enum to represent file formats.
Attributes:
| Name | Type | Description |
|---|---|---|
JPG |
JPG format for image data. |
|
PNG |
PNG format for image data. |
|
PCD |
PCD format for pointcloud data. |
|
BIN |
BIN format. |
|
PCDBIN |
PCD.BIN format for pointcloud data. |
Source code in t4_devkit/schema/tables/sample_data.py
as_ext()
is_member(item)
staticmethod
SensorModality
An enum to represent sensor modalities.
Attributes:
| Name | Type | Description |
|---|---|---|
LIDAR |
Lidar sensor. |
|
CAMERA |
Camera sensor. |
|
RADAR |
Radar sensor. |
Source code in t4_devkit/schema/tables/sensor.py
VisibilityLevel
An enum to represent visibility levels.
Attributes:
| Name | Type | Description |
|---|---|---|
FULL |
No occlusion for the object. |
|
MOST |
Object is occluded, but by less than 50%. |
|
PARTIAL |
Object is occluded, but by more than 50%. |
|
NONE |
Object is 90-100% occluded and no points/pixels are visible in the label. |
|
UNAVAILABLE |
Visibility level is not specified. |
Source code in t4_devkit/schema/tables/visibility.py
from_value(level)
classmethod
is_comparable()
rank()
Return an integer rank for comparison (higher is more visible).
RLEMask
A dataclass to represent segmentation mask compressed by RLE.
Attributes:
| Name | Type | Description |
|---|---|---|
size |
list[int, int]
|
Size of image ordering (width, height). |
counts |
str
|
RLE compressed mask data. |
Source code in t4_devkit/schema/tables/object_ann.py
decode()
Decode segmentation mask.
Returns:
| Type | Description |
|---|---|
NDArrayU8
|
Decoded mask in shape of (H, W). |
ShiftState
An enum to represent gear shift state.
Source code in t4_devkit/schema/tables/vehicle_state.py
IndicatorState
Indicators
A dataclass to represent state of each indicator.
Attributes:
| Name | Type | Description |
|---|---|---|
left |
IndicatorState
|
State of the left indicator. |
right |
IndicatorState
|
State of the right indicator. |
hazard |
IndicatorState
|
State of the hazard lights. |
Source code in t4_devkit/schema/tables/vehicle_state.py
AdditionalInfo
A dataclass to represent additional state information of the ego vehicle.
Attributes:
| Name | Type | Description |
|---|---|---|
speed |
float | None
|
Speed of the ego vehicle. |
Source code in t4_devkit/schema/tables/vehicle_state.py
AutolabelModel
A dataclass to represent a model used in autolabeling.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Name of the model used for annotation. Can include version information. |
score |
float
|
Label score for the annotation from this model (range: 0.0–1.0). |
uncertainty |
float | None
|
Model-reported uncertainty for the annotation (range: 0.0–1.0). Lower values imply higher confidence. |
Source code in t4_devkit/schema/tables/autolabel_metadata.py
to_autolabel_model(x)
staticmethod
Convert input to a list of AutolabelModel instances.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
list[dict | AutolabelModel] | None
|
Input to convert. Can be None, a list of dicts, or a list of AutolabelModel instances. |
required |
Returns:
| Type | Description |
|---|---|
list[AutolabelModel] | None
|
list[AutolabelModel] | None: Converted list of AutolabelModel instances or None. |
Source code in t4_devkit/schema/tables/autolabel_metadata.py
AutolabelMixin
Mixin class for schema tables that use autolabel metadata with automatic annotation.
Source code in t4_devkit/schema/tables/autolabel_metadata.py
__attrs_post_init__()
Post-initialization validation for autolabel consistency.
Source code in t4_devkit/schema/tables/autolabel_metadata.py
Sensor
SensorModality
An enum to represent sensor modalities.
Attributes:
| Name | Type | Description |
|---|---|---|
LIDAR |
Lidar sensor. |
|
CAMERA |
Camera sensor. |
|
RADAR |
Radar sensor. |
Source code in t4_devkit/schema/tables/sensor.py
ObjectAnn/SurfaceAnn
RLEMask
A dataclass to represent segmentation mask compressed by RLE.
Attributes:
| Name | Type | Description |
|---|---|---|
size |
list[int, int]
|
Size of image ordering (width, height). |
counts |
str
|
RLE compressed mask data. |
Source code in t4_devkit/schema/tables/object_ann.py
decode()
Decode segmentation mask.
Returns:
| Type | Description |
|---|---|
NDArrayU8
|
Decoded mask in shape of (H, W). |
Visibility
VisibilityLevel
An enum to represent visibility levels.
Attributes:
| Name | Type | Description |
|---|---|---|
FULL |
No occlusion for the object. |
|
MOST |
Object is occluded, but by less than 50%. |
|
PARTIAL |
Object is occluded, but by more than 50%. |
|
NONE |
Object is 90-100% occluded and no points/pixels are visible in the label. |
|
UNAVAILABLE |
Visibility level is not specified. |
Source code in t4_devkit/schema/tables/visibility.py
from_value(level)
classmethod
is_comparable()
rank()
Return an integer rank for comparison (higher is more visible).
VehicleState
ShiftState
An enum to represent gear shift state.
Source code in t4_devkit/schema/tables/vehicle_state.py
IndicatorState
Indicators
A dataclass to represent state of each indicator.
Attributes:
| Name | Type | Description |
|---|---|---|
left |
IndicatorState
|
State of the left indicator. |
right |
IndicatorState
|
State of the right indicator. |
hazard |
IndicatorState
|
State of the hazard lights. |
Source code in t4_devkit/schema/tables/vehicle_state.py
AdditionalInfo
A dataclass to represent additional state information of the ego vehicle.
Attributes:
| Name | Type | Description |
|---|---|---|
speed |
float | None
|
Speed of the ego vehicle. |