cocoapi icon indicating copy to clipboard operation
cocoapi copied to clipboard

replace np.float with float as it's deprecated since numpy 1.20.0

Open hubutui opened this issue 2 years ago • 1 comments

https://github.com/open-mmlab/cocoapi/blob/01f805cd54d7bd7af64c0fbd5fd96d8ca0b9ddc9/lvis/lvis/eval.py#L357-L358

As descriped at upstream:

np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself.

see also https://github.com/lvis-dataset/lvis-api/issues/37

hubutui avatar Feb 22 '23 06:02 hubutui

https://github.com/open-mmlab/cocoapi/blob/01f805cd54d7bd7af64c0fbd5fd96d8ca0b9ddc9/pycocotools/pycocotools/cocoeval.py#L410-L411

These lines also need updating.

hubutui avatar Feb 23 '23 01:02 hubutui