MaskRCNN create own instance segmentation COCO dataset and convert to TFRecords

I am trying to create my own COCO dataset for a MaskRCNN network. I am following the guide the tlt-getting started guide: Integrating TAO Models into DeepStream — TAO Toolkit 3.22.05 documentation

They provide steps for converting a KITTI format dataset but not a COCO format dataset. What are the appropriate steps to follow to convert my COCO dataset to TFRecords so that i can do transfer learning?

The MaskRCNN network id like to use is this one from the tlt website:
https://ngc.nvidia.com/catalog/models/nvidia:tlt_instance_segmentation

Kind regards
HK