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 #29

Open
hubutui opened this issue Feb 22, 2023 · 1 comment
Open

Comments

@hubutui
Copy link

hubutui commented Feb 22, 2023

cocoapi/lvis/lvis/eval.py

Lines 357 to 358 in 01f805c

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.

see also lvis-dataset/lvis-api#37

hubutui added a commit to archlinuxcn/repo that referenced this issue Feb 22, 2023
@hubutui
Copy link
Author

hubutui commented Feb 23, 2023

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

These lines also need updating.

hubutui added a commit to archlinuxcn/repo that referenced this issue Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant