format module

class datumaro.plugins.kitti_format.format.KittiTask(value)[source]

Bases: enum.Enum

An enumeration.

segmentation = 1
detection = 2
class datumaro.plugins.kitti_format.format.KittiPath[source]

Bases: object

IMAGES_DIR = 'image_2'
INSTANCES_DIR = 'instance'
LABELS_DIR = 'label_2'
SEMANTIC_RGB_DIR = 'semantic_rgb'
SEMANTIC_DIR = 'semantic'
IMAGE_EXT = '.png'
MASK_EXT = '.png'
LABELMAP_FILE = 'label_colors.txt'
DEFAULT_TRUNCATED = 0.0
DEFAULT_OCCLUDED = 0
DEFAULT_SCORE = 1.0
datumaro.plugins.kitti_format.format.has_colors(label_map: collections.OrderedDict) bool[source]
datumaro.plugins.kitti_format.format.find_background_label(label_map: collections.OrderedDict, *, name: str = 'background', color: Tuple[int, int, int] = (0, 0, 0)) Optional[str][source]
datumaro.plugins.kitti_format.format.find_or_create_background_label(label_map: collections.OrderedDict, *, name: str = 'background', color: Tuple[int, int, int] = (0, 0, 0)) str[source]
datumaro.plugins.kitti_format.format.make_kitti_categories(label_map: Optional[collections.OrderedDict] = None) Dict[datumaro.components.annotation.AnnotationType, datumaro.components.annotation.Categories][source]
datumaro.plugins.kitti_format.format.parse_label_map(path)[source]
datumaro.plugins.kitti_format.format.write_label_map(path, label_map)[source]