Converter to covert annotations into different formats.
To run the annotation converter from command line, use the following command:
python -m mlcore.annotation_converter [parameters]
The following parameters are supported:
-i
,--input_adapter
: The annotation adapter to the annotations to convert from (e.g.: VIAAnnotationAdapter)-o
,--output_adapter
: The annotation adapter to the annotations to convert to (e.g.: MultiCategoryAnnotationAdapter)
To convert image object detection annotations to multi category image classifications, run the following command:
python -m mlcore.annotation_converter --input_adapter VIAAnnotationAdapter --input_path data/image_object_detection/my_collection --output_adapter MultiCategoryAnnotationAdapter --output_path data/image_classification/my_collection