chrise96 / image-to-coco-json-converter

Convert segmentation RGB mask images to COCO JSON format
199 stars 57 forks source link
coco-dataset converter instance-segmentation ms-coco python voc

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.

Original Mask COCO