Closed fang-lg closed 5 months ago
It appears that the error occurred while calling np.bool
in mmdet/core/evaluation/mean_ap.py
.
There are two solutions:
np.bool
to np.bool_
in the code.It is recommended that you ensure that the environment is exactly the same as the above requirements_oa-dg.txt to prevent potential errors.
程序跑完一轮出故障了
AttributeError: module 'numpy' has no attribute 'bool'.
np.bool
was a deprecated alias for the builtinbool
. To avoid this error in existing code, usebool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.bool_
here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ERROR conda.cli.main_run:execute(124):conda run python /home/ailab/HDD/fl/ws/external/tools/train.py configs/OA-DG/dwd/faster_rcnn_r101_dc5_1x_dwd_oadg.py --work-dir out
failed. (See above for error)