Awesome
Introduction
This code transforms segmentation mask images to annotation JSON files as per the MS COCO format http://cocodataset.org/#format-data
I followed this as a guide when writing the script.
Dataset used: Ecole Centrale Paris (ECP) Facade
The original images and annotations used in this repo are available at: http://martinovi.ch/datasets/ECP_newAnnotations.zip
Visual result in Detectron2
Register the dataset to detectron2, following the detectron2 custom dataset tutorial.