print(model) should print out all the initialized submodules in their order. If you want to check the implementation you would have to check the source of modellib.MaskRCNN and probably the forward implementation to see which layer to replace.