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 deprecated np.int with np.int_ and np.float with np.float64 #1659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Phoenix8215
Copy link

Purpose:

This PR addresses the deprecation of np.int and np.float in newer versions of NumPy. These aliases have been deprecated and may cause warnings or errors when i trained BEVFusion model. The latest version of the nuScenes™ devkit, which is required for training BEV models, uses NumPy version 1.22.0 or higher. As a result, older syntax like np.int is deprecated and no longer supported.
图片

Changes:

Replaced all instances of np.int with np.int_.
Replaced all instances of np.float with np.float64.

Testing:

All existing tests have passed after the changes were made, confirming that the code remains functional and correct.

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

Successfully merging this pull request may close these issues.

1 participant