datumaro.plugins.data_formats.coco.exporter#

Classes

CocoCaptionsExporter(*args, **kwargs)

CocoExporter(extractor, save_dir[, tasks, ...])

CocoImageInfoExporter(*args, **kwargs)

CocoInstancesExporter(*args, **kwargs)

CocoLabelsExporter(*args, **kwargs)

CocoPanopticExporter(*args, **kwargs)

CocoPersonKeypointsExporter(*args, **kwargs)

CocoStuffExporter(*args, **kwargs)

SegmentationMode(value)

An enumeration.

TemporaryWriters(subset, task, ann_dir)

class datumaro.plugins.data_formats.coco.exporter.SegmentationMode(value)[source]#

Bases: Enum

An enumeration.

guess = 1#
polygons = 2#
mask = 3#
class datumaro.plugins.data_formats.coco.exporter.TemporaryWriters(subset: str, task: CocoTask, ann_dir: str)[source]#

Bases: object

close()[source]#
remove()[source]#
reset()[source]#
property imgs: _Writer#
property anns: _Writer#
add_item(data: Dict) None[source]#
add_anns(data: Dict) None[source]#
merge(path: str, header: Dict, min_ann_id: int | None) None[source]#
class datumaro.plugins.data_formats.coco.exporter.CocoExporter(extractor, save_dir, tasks=None, segmentation_mode=None, crop_covered=False, allow_attributes=True, reindex=False, merge_images=False, stream: bool = False, **kwargs)[source]#

Bases: Exporter

classmethod build_cmdline_parser(**kwargs)[source]#
DEFAULT_IMAGE_EXT = '.jpg'#
classmethod patch(dataset, patch, save_dir, **kwargs)[source]#
property can_stream: bool#

Flag to indicate whether the exporter can export the dataset in a stream manner or not.

class datumaro.plugins.data_formats.coco.exporter.CocoInstancesExporter(*args, **kwargs)[source]#

Bases: CocoExporter

class datumaro.plugins.data_formats.coco.exporter.CocoImageInfoExporter(*args, **kwargs)[source]#

Bases: CocoExporter

class datumaro.plugins.data_formats.coco.exporter.CocoPersonKeypointsExporter(*args, **kwargs)[source]#

Bases: CocoExporter

class datumaro.plugins.data_formats.coco.exporter.CocoCaptionsExporter(*args, **kwargs)[source]#

Bases: CocoExporter

class datumaro.plugins.data_formats.coco.exporter.CocoLabelsExporter(*args, **kwargs)[source]#

Bases: CocoExporter

class datumaro.plugins.data_formats.coco.exporter.CocoPanopticExporter(*args, **kwargs)[source]#

Bases: CocoExporter

class datumaro.plugins.data_formats.coco.exporter.CocoStuffExporter(*args, **kwargs)[source]#

Bases: CocoExporter