datumaro.plugins.data_formats.labelme#
Classes
|
|
|
|
- class datumaro.plugins.data_formats.labelme.LabelMePath[source]#
Bases:
object
- IMAGES_DIR = 'Images'#
- ANNOTATIONS_DIR = 'Annotations'#
- MASKS_DIR = 'Masks'#
- IMAGE_EXT = '.jpg'#
- ATTR_IMPORT_ESCAPES = [('\\=', '%%{eq}%%'), ('\\"', '%%{doublequote}%%'), ('\\,', '%%{comma}%%'), ('\\\\', '%%{backslash}%%')]#
- ATTR_EXPORT_ESCAPES = [('\\', '\\\\'), ('=', '\\='), ('"', '\\"'), (',', '\\,')]#
- class datumaro.plugins.data_formats.labelme.LabelMeBase(path: str, *, ctx: ImportContext | None = None)[source]#
Bases:
DatasetBase
- class datumaro.plugins.data_formats.labelme.LabelMeImporter[source]#
Bases:
Importer
- classmethod detect(context: FormatDetectionContext) None [source]#
- class datumaro.plugins.data_formats.labelme.LabelMeExporter(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'#