How can I extend Detectron 2 (and PointRed) that detects (segments) COCO classes to detect 20 more new object classes?

Could you please kindly guide me on how I can extend Detectron 2 that already detects COCO classes to detect 20 more new object classes on top of 80 COCO classes?

How about [PointRed](https://github.com/facebookresearch/detectron2/tree/master/projects/PointRend) instance segmentation? How can I expand it such that it can create an instance segmentation mask for new object classes (20) besides the current 80 COCO classes?

Here’s an example of PointRed output for COCO object classes.

  • This is a double-post but thought someone from here might know by chance.