datumaro.plugins.data_formats.coco.importer#

Classes

CocoCaptionsImporter()

CocoImageInfoImporter()

CocoImporter()

CocoInstancesImporter()

CocoLabelsImporter()

CocoPanopticImporter()

CocoPersonKeypointsImporter()

CocoStuffImporter()

class datumaro.plugins.data_formats.coco.importer.CocoImporter[source]#

Bases: Importer

classmethod build_cmdline_parser(**kwargs)[source]#
classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence[source]#
classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#
property can_stream: bool#

Flag to indicate whether the importer can stream the dataset item or not.

get_extractor_merger() ExtractorMerger | None[source]#

Extractor merger dedicated for the data format

Datumaro import process spawns multiple DatasetBase for the detected sources. We can find a bunch of the detected sources from the given directory path. It is usually each detected source is corresponded to the subset of dataset in many data formats.

Parameters:

stream – There can exist a branch according to stream flag

Returns:

If None, use Dataset.from_extractors() to merge the extractors, Otherwise, use the return type to merge the extractors.

class datumaro.plugins.data_formats.coco.importer.CocoImageInfoImporter[source]#

Bases: CocoImporter

classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence[source]#
class datumaro.plugins.data_formats.coco.importer.CocoCaptionsImporter[source]#

Bases: CocoImageInfoImporter

class datumaro.plugins.data_formats.coco.importer.CocoInstancesImporter[source]#

Bases: CocoImageInfoImporter

class datumaro.plugins.data_formats.coco.importer.CocoPersonKeypointsImporter[source]#

Bases: CocoImageInfoImporter

class datumaro.plugins.data_formats.coco.importer.CocoLabelsImporter[source]#

Bases: CocoImageInfoImporter

class datumaro.plugins.data_formats.coco.importer.CocoPanopticImporter[source]#

Bases: CocoImageInfoImporter

class datumaro.plugins.data_formats.coco.importer.CocoStuffImporter[source]#

Bases: CocoImageInfoImporter