labelme_format module

class datumaro.plugins.labelme_format.LabelMePath[source]

Bases: object

MASKS_DIR = 'Masks'
IMAGE_EXT = '.jpg'
ATTR_IMPORT_ESCAPES = [('\\=', '%%{eq}%%'), ('\\"', '%%{doublequote}%%'), ('\\,', '%%{comma}%%'), ('\\\\', '%%{backslash}%%')]
ATTR_EXPORT_ESCAPES = [('\\', '\\\\'), ('=', '\\='), ('"', '\\"'), (',', '\\,')]
class datumaro.plugins.labelme_format.LabelMeExtractor(path)[source]

Bases: datumaro.components.extractor.Extractor

__init__(path)[source]
categories()[source]

Returns metainfo about dataset labels.

__iter__()[source]

Provides sequential access to dataset items.

class datumaro.plugins.labelme_format.LabelMeImporter[source]

Bases: datumaro.components.extractor.Importer

classmethod detect(context: datumaro.components.format_detection.FormatDetectionContext) None[source]
classmethod find_sources(path)[source]
class datumaro.plugins.labelme_format.LabelMeConverter(extractor: datumaro.components.extractor.IExtractor, save_dir: str, *, save_images=None, save_media: Optional[bool] = None, 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]