Mask_RCNN
Mask_RCNN copied to clipboard
How to get the mask area ?
I trained my own data use Mask RCNN。Now, I want to calculate mask area through pixel. How to do that?
Try this:
np.reshape(r['masks'], (-1, r['masks'].shape[-1])).astype(np.float32).sum()
thank you . It worked for me~
@ZengyuanYu @mekomlusa Hey guys... Can you please please help me with finding the feature vector of the detected objects?? Like which layer should I try on?? What changes should I make in model.py file???
This give the total area. How to get the area of each mask??
This give the total area. How to get the area of each mask??
Did anyone found the answer to this? I need to find the area of each mask separately.
how can we find number of mask
can we find mask area of single object
Try this:
np.reshape(r['masks'], (-1, r['masks'].shape[-1])).astype(np.float32).sum()
is it for single object
Try this:
np.reshape(r['masks'], (-1, r['masks'].shape[-1])).astype(np.float32).sum()
is it for single object
THis is for a pic with one object in it.
This give the total area. How to get the area of each mask??
Did anyone found the answer to this? I need to find the area of each mask separately.
Hey, you got some update for this one?
This give the total area. How to get the area of each mask??
object_count = len(r["class_ids"]) for i in range(object_count): print(sum((sum(r["masks"][:, :, i]*1))))