nrtk.interop.maite.interop.object_detection.utils.dataset_to_coco

nrtk.interop.maite.interop.object_detection.utils.dataset_to_coco(dataset: Dataset, output_dir: Path, img_filenames: list[Path], dataset_categories: list[dict[str, Any]]) None

Save dataset object to file as a COCO formatted dataset.

Parameters:
  • dataset – MAITE-compliant object detection dataset

  • output_dir – The location where data will be saved.

  • img_filenames – Filenames of images to be saved.

  • dataset_categories – A list of the categories related to this dataset. Each dictionary should contain the following keys: id, name, supercategory.