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: Optional[str] = None, ctx: Optional[ImportContext] = None)[source]#

Bases: SubsetBase

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

Bases: Importer

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

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#