datumaro.plugins.data_formats.segment_anything#

class datumaro.plugins.data_formats.segment_anything.SegmentAnythingBase(path: str, *, subset: Optional[str] = None, ctx: Optional[ImportContext] = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.segment_anything.SegmentAnythingImporter[source]#

Bases: Importer

classmethod detect(context: FormatDetectionContext) Optional[FormatDetectionConfidence][source]#
classmethod find_sources(path) List[Dict][source]#
class datumaro.plugins.data_formats.segment_anything.SegmentAnythingExporter(extractor, save_dir, **kwargs)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#
static find_instance_anns(annotations)[source]#
classmethod find_instances(annotations)[source]#
get_annotation_info(group, img_width, img_height)[source]#

Modules

datumaro.plugins.data_formats.segment_anything.base

datumaro.plugins.data_formats.segment_anything.exporter

datumaro.plugins.data_formats.segment_anything.importer