datumaro.plugins.data_formats.roboflow.importer#

Classes

RoboflowCocoImporter()

RoboflowCreateMlImporter()

RoboflowMulticlassImporter()

RoboflowVocImporter()

RoboflowYoloImporter()

RoboflowYoloObbImporter()

class datumaro.plugins.data_formats.roboflow.importer.RoboflowCocoImporter[source]#

Bases: Importer

FORMAT = 'roboflow_coco'#
ANN_FILE_NAME = '_annotations.coco.json'#
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() Type[ExtractorMerger][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.roboflow.importer.RoboflowVocImporter[source]#

Bases: Importer

FORMAT = 'roboflow_voc'#
FORMAT_EXT = '.xml'#
ANN_DIR_NAME = ''#
classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence[source]#
classmethod find_sources(path: str) List[Dict[str, Any]][source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.roboflow.importer.RoboflowYoloImporter[source]#

Bases: RoboflowVocImporter

FORMAT = 'roboflow_yolo'#
FORMAT_EXT = '.txt'#
ANN_DIR_NAME = 'labels/'#
classmethod find_sources(path: str) List[Dict[str, Any]][source]#
class datumaro.plugins.data_formats.roboflow.importer.RoboflowYoloObbImporter[source]#

Bases: RoboflowYoloImporter

FORMAT = 'roboflow_yolo_obb'#
FORMAT_EXT = '.txt'#
ANN_DIR_NAME = 'labelTxt/'#
class datumaro.plugins.data_formats.roboflow.importer.RoboflowCreateMlImporter[source]#

Bases: RoboflowCocoImporter

FORMAT = 'roboflow_create_ml'#
ANN_FILE_NAME = '_annotations.createml.json'#
class datumaro.plugins.data_formats.roboflow.importer.RoboflowMulticlassImporter[source]#

Bases: RoboflowCocoImporter

FORMAT = 'roboflow_multiclass'#
ANN_FILE_NAME = '_classes.csv'#