datumaro.plugins.data_formats.segment_anything#

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

Bases: SubsetBase

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

Bases: Importer

classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence | None[source]#
classmethod find_sources(path) List[Dict][source]#
classmethod get_file_extensions() List[str][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