Working on mask rcnn tutorial i get this error while training

pos = np.where(masks[i])
TypeError: ‘bool’ object is not subscriptable

This seems like masks is a bool object instead of 2d array. I tried tutorial on maskrcnn, which is what I believe you are trying too and I don’t get that error. Have you done any changes in the dataset class?

1 Like

Thankyou for the reply! actually i was using a RGB mask instead of Binary mask, but my results are very poor, the mask values are all zero, when i checked.