datumaro.plugins.data_formats.camvid#

Functions

make_camvid_categories([label_map])

parse_label_map(path)

write_label_map(path, label_map)

Classes

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

CamvidExporter(extractor, save_dir[, ...])

CamvidImporter()

CamvidPath()

LabelmapType(value)

An enumeration.

class datumaro.plugins.data_formats.camvid.CamvidPath[source]#

Bases: object

LABELMAP_FILE = 'label_colors.txt'#
SEGM_DIR = 'annot'#
IMAGE_EXT = '.jpg'#
MASK_EXT = '.png'#
datumaro.plugins.data_formats.camvid.parse_label_map(path)[source]#
datumaro.plugins.data_formats.camvid.write_label_map(path, label_map)[source]#
datumaro.plugins.data_formats.camvid.make_camvid_categories(label_map=None)[source]#
class datumaro.plugins.data_formats.camvid.CamvidBase(path: str, *, subset: Optional[str] = None, ctx: Optional[ImportContext] = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.camvid.CamvidImporter[source]#

Bases: Importer

classmethod detect(context: FormatDetectionContext) None[source]#
classmethod find_sources(path)[source]#
class datumaro.plugins.data_formats.camvid.LabelmapType(value)[source]#

Bases: Enum

An enumeration.

camvid = 1#
source = 2#
class datumaro.plugins.data_formats.camvid.CamvidExporter(extractor, save_dir, apply_colormap=True, label_map=None, **kwargs)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#
classmethod build_cmdline_parser(**kwargs)[source]#
save_segm(path, mask, colormap=None)[source]#
save_segm_lists(subset_name, segm_list)[source]#
save_label_map()[source]#
classmethod patch(dataset, patch, save_dir, **kwargs)[source]#