datumaro.plugins.data_formats.common_semantic_segmentation#
Functions
|
Classes
|
|
CommonSemanticSegmentation is introduced in the accuracy checker tool of OpenVINO™ to cover a general format of datasets for semantic segmentation task. This should have the following structure: - Dataset/ - dataset_meta.json # a list of labels - images/ - <img1>.png - <img2>.png - ... - masks/ - <img1>.png - <img2>.png - . |
|
It supports the following subset sub-directory structure for CommonSemanticSegmentation. |
- class datumaro.plugins.data_formats.common_semantic_segmentation.CommonSemanticSegmentationPath[source]#
Bases:
object
- MASKS_DIR = 'masks'#
- IMAGES_DIR = 'images'#
- class datumaro.plugins.data_formats.common_semantic_segmentation.CommonSemanticSegmentationBase(path: str, *, image_prefix: str = '', mask_prefix: str = '', subset: str | None = None, ctx: ImportContext | None = None)[source]#
Bases:
SubsetBase
- class datumaro.plugins.data_formats.common_semantic_segmentation.CommonSemanticSegmentationImporter[source]#
Bases:
Importer
CommonSemanticSegmentation is introduced in the accuracy checker tool of OpenVINO™ to cover a general format of datasets for semantic segmentation task. This should have the following structure:
- Dataset/
dataset_meta.json # a list of labels
- images/
<img1>.png
<img2>.png
…
- masks/
<img1>.png
<img2>.png
…
- classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence [source]#
- class datumaro.plugins.data_formats.common_semantic_segmentation.CommonSemanticSegmentationWithSubsetDirsImporter[source]#
Bases:
CommonSemanticSegmentationWithSubsetDirsImporter
It supports the following subset sub-directory structure for CommonSemanticSegmentation.
Dataset/ └─ <split: train,val, ...> ├── dataset_meta.json # a list of labels ├── images/ │ ├── <img1>.png │ ├── <img2>.png │ └── ... └── masks/ ├── <img1>.png ├── <img2>.png └── ...
Then, the imported dataset will have train, val, … CommonSemanticSegmentation subsets.
- NAME = 'common_semantic_segmentation_with_subset_dirs'#
- classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence | None #