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.LabelMeImporter[source]
Bases:
datumaro.components.extractor.Importer
- classmethod detect(context: datumaro.components.format_detection.FormatDetectionContext) None [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'