问题描述
报错内容
AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
解决方法
根据错误栈可以定位到错误代码位置:
File "/data/lxy1/PointOBB/mmdet/datasets/utils.py", line 46, in tpfp_default
(np.zeros(gt_bboxes.shape[0], dtype=np.bool),
根据报错内容提示,将np.bool改成bool