Mask_RCNN icon indicating copy to clipboard operation
Mask_RCNN copied to clipboard

"False value" in x,y coodinates of mask

Open claudio9russo7 opened this issue 2 years ago • 2 comments

In the predict value of mask im gettin "False value" and not the coodinates,why?

This is the code: falsevalue

print("Images: {}\nClasses: {}".format(len(dataset.image_ids), dataset.class_names))

path_to_new_image = '/content/drive/MyDrive/MaskRCNN/Stomata/train/ 73-ab1.jpg' image1 = mpimg.imread(path_to_new_image)

results1 = model.detect([image1], verbose=1) r1 = results1[0] mask = r1['masks'] print(mask)

ax = get_ax(1) r1 = results1[0] visualize.display_instances(image1, r1['rois'], r1['masks'], r1['class_ids'], dataset.class_names, r1['scores'], ax=ax, title="Predictions1")

claudio9russo7 avatar Apr 10 '22 14:04 claudio9russo7

Does anyone has an explanation about it?

pasquale90 avatar Sep 13 '22 09:09 pasquale90

It's a binary mask, you can find the number of true (or false) pixel, but i think you can use another model like detectron2 if you want the semantic. It's more supported

claudio9russo7 avatar Sep 13 '22 17:09 claudio9russo7