datumaro.plugins.data_formats.segment_anything.base#

Functions

parse_field(ann, key, cls[, default])

Classes

SegmentAnythingBase(path, *[, subset, ctx])

datumaro.plugins.data_formats.segment_anything.base.parse_field(ann: ~typing.Dict[str, ~typing.Any], key: str, cls: ~typing.Type[~datumaro.plugins.data_formats.segment_anything.base.T] | ~typing.Tuple[~typing.Type, ...], default: ~typing.Any = <object object>) Any[source]#
class datumaro.plugins.data_formats.segment_anything.base.SegmentAnythingBase(path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase