Hi, I’m trying to use Detectron2 to extract masks for image segmentation using Mask-RCNN. I used the command:

outputs = predictor(im) where predictor is a DefaultPredictor

However, the output has a field called pred_masks which returns only True or False values, while I want it to return a value from 0 to 1 in each pixel (from what I understand while reading the Mask-RCNN paper, it is supposed to return from 0 to 1). Please help me, thank you very much.