OpenPCDet
OpenPCDet copied to clipboard
Replace deprecated np.int with np.int_ and np.float with np.float64
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.