In tf-models-official, you can train an mrcnn model like this: (https://github.com/tensorflow/models/tree/master/official/vision/detection)
like this: