datumaro.plugins.data_formats.kaggle.base#

Classes

KaggleCocoBase(path, ann_file, *[, subset, ...])

KaggleImageCsvBase(path, ann_file, columns, *)

KaggleImageMaskBase(path, mask_path[, ...])

KaggleImageTxtBase(path, ann_file, columns, *)

KaggleVocBase(path, ann_path, *[, subset, ctx])

KaggleYoloBase(path, ann_path, *[, subset, ctx])

class datumaro.plugins.data_formats.kaggle.base.KaggleImageCsvBase(path: str, ann_file: str, columns: Dict[str, str], *, subset: str | None = 'default', ctx: ImportContext | None = None)[source]#

Bases: DatasetBase

categories()[source]#

Returns metainfo about dataset labels.

classmethod build_cmdline_parser(**kwargs)[source]#
class datumaro.plugins.data_formats.kaggle.base.KaggleImageTxtBase(path: str, ann_file: str, columns: Dict[str, int], *, subset: str | None = 'default', ctx: ImportContext | None = None)[source]#

Bases: KaggleImageCsvBase

class datumaro.plugins.data_formats.kaggle.base.KaggleImageMaskBase(path: str, mask_path: str, labelmap_file: str | None = None, *, subset: str | None = 'default', ctx: ImportContext | None = None)[source]#

Bases: DatasetBase

categories()[source]#

Returns metainfo about dataset labels.

classmethod build_cmdline_parser(**kwargs)[source]#
class datumaro.plugins.data_formats.kaggle.base.KaggleVocBase(path: str, ann_path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase

ann_extensions = '.xml'#
classmethod build_cmdline_parser(**kwargs)[source]#
class datumaro.plugins.data_formats.kaggle.base.KaggleYoloBase(path: str, ann_path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: KaggleVocBase, SubsetBase

ann_extensions = '.txt'#
class datumaro.plugins.data_formats.kaggle.base.KaggleCocoBase(path: str, ann_file: str, *, subset: str | None = None, ctx: ImportContext | None = None, stream: bool = False)[source]#

Bases: CocoInstancesBase, SubsetBase

classmethod build_cmdline_parser(**kwargs)[source]#