cocoapi
cocoapi copied to clipboard
replace np.float with float as it's deprecated since numpy 1.20.0
https://github.com/open-mmlab/cocoapi/blob/01f805cd54d7bd7af64c0fbd5fd96d8ca0b9ddc9/lvis/lvis/eval.py#L357-L358
As descriped at upstream:
np.floatwas a deprecated alias for the builtinfloat. To avoid this error in existing code, usefloatby itself.
see also https://github.com/lvis-dataset/lvis-api/issues/37
https://github.com/open-mmlab/cocoapi/blob/01f805cd54d7bd7af64c0fbd5fd96d8ca0b9ddc9/pycocotools/pycocotools/cocoeval.py#L410-L411
These lines also need updating.