Detectron 2 features share

Hello all,
I am using detectron 2 in a research project.
I need to know how to share the same backbone features (for instance ResNet-50 ) with multiple models.
Like if I have instance segmentation and densepose models and I need to use the same backbone to reduce inference time. How to implement this?
Thank you.