datumaro.plugins.data_formats.mots#

Classes

MotsImporter()

MotsLabels(value)

An enumeration.

MotsPath()

MotsPngExporter(extractor, save_dir, *[, ...])

MotsPngExtractor(path, *[, subset, ctx])

class datumaro.plugins.data_formats.mots.MotsPath[source]#

Bases: object

MASKS_DIR = 'instances'#
IMAGE_DIR = 'images'#
IMAGE_EXT = '.jpg'#
LABELS_FILE = 'labels.txt'#
MAX_INSTANCES = 1000#
class datumaro.plugins.data_formats.mots.MotsLabels(value)[source]#

Bases: Enum

An enumeration.

background = 0#
car = 1#
pedestrian = 2#
ignored = 10#
class datumaro.plugins.data_formats.mots.MotsPngExtractor(path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase

static detect_dataset(path)[source]#
class datumaro.plugins.data_formats.mots.MotsImporter[source]#

Bases: Importer

classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.mots.MotsPngExporter(extractor: IDataset, save_dir: str, *, save_media: bool | None = None, image_ext: str | None = None, default_image_ext: str | None = None, save_dataset_meta: bool = False, save_hashkey_meta: bool = False, stream: bool = False, ctx: ExportContext | None = None)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#