mots_format module

class datumaro.plugins.mots_format.MotsPath[source]

Bases: object

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

Bases: enum.Enum

An enumeration.

background = 0
car = 1
pedestrian = 2
ignored = 10
class datumaro.plugins.mots_format.MotsPngExtractor(path, subset=None)[source]

Bases: datumaro.components.extractor.SourceExtractor

static detect_dataset(path)[source]
__init__(path, subset=None)[source]
class datumaro.plugins.mots_format.MotsImporter[source]

Bases: datumaro.components.extractor.Importer

classmethod find_sources(path)[source]
class datumaro.plugins.mots_format.MotsPngConverter(extractor: datumaro.components.extractor.IExtractor, save_dir: str, *, save_images: bool = False, image_ext: Optional[str] = None, default_image_ext: Optional[str] = None, save_dataset_meta: bool = False, ctx: Optional[datumaro.components.converter.ExportContext] = None)[source]

Bases: datumaro.components.converter.Converter

DEFAULT_IMAGE_EXT = '.jpg'
apply()[source]