You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an error while using the cocoeval.py module from the COCO API. The error message indicates the usage of a deprecated attribute np.float, which should be replaced with float to avoid future compatibility issues.
Error message:
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
To fix this issue, I suggest replacing the line of code in cocoeval.py that contains np.float with float.
Thank you for your attention to this matter.
The text was updated successfully, but these errors were encountered:
Hello,
I encountered an error while using the
cocoeval.py
module from the COCO API. The error message indicates the usage of a deprecated attributenp.float
, which should be replaced withfloat
to avoid future compatibility issues.Error message:
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
To fix this issue, I suggest replacing the line of code in
cocoeval.py
that containsnp.float
withfloat
.Thank you for your attention to this matter.
The text was updated successfully, but these errors were encountered: