Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hubutui opened this issue Feb 22, 2023 · 2 comments
Closed

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

hubutui opened this issue Feb 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hubutui
Copy link

hubutui commented Feb 22, 2023

lvis-api/lvis/eval.py

Lines 361 to 362 in da5f65d

tp_sum = np.cumsum(tps, axis=1).astype(dtype=np.float)
fp_sum = np.cumsum(fps, axis=1).astype(dtype=np.float)

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.

@assafbot
Copy link

#38 proposed fix

@rbgirshick
Copy link
Collaborator

Resolved in main now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants