datumaro.plugins.data_formats.yolo.importer#
Classes
- class datumaro.plugins.data_formats.yolo.importer.YoloImporter[source]#
Bases:
Importer
- SUB_IMPORTERS: Dict[YoloFormatType, Importer] = {YoloFormatType.yolo_strict: <class 'datumaro.plugins.data_formats.yolo.importer._YoloStrictImporter'>, YoloFormatType.yolo_loose: <class 'datumaro.plugins.data_formats.yolo.importer._YoloLooseImporter'>, YoloFormatType.yolo_ultralytics: <class 'datumaro.plugins.data_formats.yolo.importer._YoloUltralyticsImporter'>}#
- classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence [source]#
- get_extractor_merger() Type[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.