pysolotools.converters package
Submodules
pysolotools.converters.solo2coco module
- class pysolotools.converters.solo2coco.SOLO2COCOConverter(solo: Solo)
Bases:
object
Convert SOLO to COCO format. This converter convert solo format to coco format. It supports 4 annotations 2d bbox,keypoints,instance and semantic segmentation. Based on annotation types of input solo data it does the conversion into coco.
Examples: >>> solo=Solo(“src_data_path”) >>> converter = SOLO2COCOConverter(solo=solo) >>> converter.convert(output_path=”output/data/path”, dataset_name=”coco”)
Expected output directory : coco:
- └── annotations
├── file_name.json
└── images
- callback(result)
- convert(output_path: str, dataset_name: str = 'coco')
- get_id() str
- pysolotools.converters.solo2coco.cli()
Module contents
- class pysolotools.converters.SOLO2COCOConverter(solo: Solo)
Bases:
object
Convert SOLO to COCO format. This converter convert solo format to coco format. It supports 4 annotations 2d bbox,keypoints,instance and semantic segmentation. Based on annotation types of input solo data it does the conversion into coco.
Examples: >>> solo=Solo(“src_data_path”) >>> converter = SOLO2COCOConverter(solo=solo) >>> converter.convert(output_path=”output/data/path”, dataset_name=”coco”)
Expected output directory : coco:
- └── annotations
├── file_name.json
└── images
- callback(result)
- convert(output_path: str, dataset_name: str = 'coco')
- get_id() str