datumaro.plugins.data_formats.voc.exporter#

Classes

LabelmapType(value)

An enumeration.

VocActionExporter(*args, **kwargs)

VocClassificationExporter(*args, **kwargs)

VocDetectionExporter(*args, **kwargs)

VocExporter(extractor, save_dir[, task, ...])

VocInstanceSegmentationExporter(*args, **kwargs)

VocLayoutExporter(*args, **kwargs)

VocSegmentationExporter(*args, **kwargs)

class datumaro.plugins.data_formats.voc.exporter.LabelmapType(value)[source]#

Bases: Enum

An enumeration.

voc = 1#
voc_classification = 2#
voc_detection = 3#
voc_segmentation = 4#
voc_instance_segmentation = 5#
voc_layout = 6#
voc_action = 7#
source = 8#
class datumaro.plugins.data_formats.voc.exporter.VocExporter(extractor, save_dir, task=None, apply_colormap=True, label_map=None, allow_attributes=True, keep_empty=False, **kwargs)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#
BUILTIN_ATTRS = {'difficult', 'occluded', 'pose', 'truncated'}#
classmethod build_cmdline_parser(**kwargs)[source]#
make_dirs()[source]#
get_label(label_id)[source]#
save_subsets()[source]#
save_action_lists(subset_name, action_list)[source]#
save_class_lists(subset_name, class_lists)[source]#
save_clsdet_lists(subset_name, clsdet_list)[source]#
save_segm_lists(subset_name, segm_list)[source]#
save_layout_lists(subset_name, layout_list)[source]#
save_segm(path, mask, colormap=None)[source]#
save_label_map()[source]#
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.voc.exporter.VocClassificationExporter(*args, **kwargs)[source]#

Bases: VocExporter

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

Bases: VocExporter

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

Bases: VocExporter

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

Bases: VocExporter

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

Bases: VocExporter

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

Bases: VocExporter