ZFTurbo / Mean-Average-Precision-for-Boxes

Function to calculate mAP for set of detected boxes and annotated boxes.
130 stars 22 forks source link

Fix deprecated syntax in numpy #4

Closed devnjw closed 7 months ago

devnjw commented 7 months ago

Problem

Since numpy version 1.20, np.str has been deprecated. [document]

Solution

As the numpy documentation says, np.str is the same as str. I have replaced all np.str with str.

another ref: https://github.com/microsoft/qlib/pull/1507

devnjw commented 7 months ago

@ZFTurbo Thank you for your quick review. Could you please release it to pypi?