COCO dataset from custom semantic segmentation dataset for detectron2

hello,
Sorry for ultradelayed answer. The discusion is updated. Here I tried to generate a legit coco dataset using only pycocotools.