What I am trying to do is to extract the features of the predicted masked regions in Detectron2 MaskRCNN.
I have already explored this tutorial and followed the answer in