I trained my mask-rcnn model with two classes and now I would like to calculate the average Mean Precision (mAP) of all classes, so I know that I need to calculate the mAP of each class and then make an average to obtain the general mAP . For that, I modified compute_matches as suggested in: #2136 and my code in utils.py was as follows:
However I am getting the following error, on the line :
-->sorted_ixs = np.argsort(overlaps[i])[::-1]
TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'
Could someone please help me with this? I would be very, very grateful, this is an important job for my academic life, and unfortunately I can't understand where I'm going wrong.
Thank you in advance for your attention.
I trained my mask-rcnn model with two classes and now I would like to calculate the average Mean Precision (mAP) of all classes, so I know that I need to calculate the mAP of each class and then make an average to obtain the general mAP . For that, I modified compute_matches as suggested in: #2136 and my code in utils.py was as follows:
To use it I did it as follows:
However I am getting the following error, on the line :
Could someone please help me with this? I would be very, very grateful, this is an important job for my academic life, and unfortunately I can't understand where I'm going wrong. Thank you in advance for your attention.