WoojuLee24 / OA-DG

Object-Aware Domain Generalization for Object Detection
GNU General Public License v3.0
44 stars 7 forks source link

程序卡住不动了 #5

Closed fang-lg closed 5 months ago

fang-lg commented 6 months ago

程序跑完一轮出故障了

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. 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)

image

dazory commented 6 months ago

It appears that the error occurred while calling np.bool in mmdet/core/evaluation/mean_ap.py. There are two solutions:

  1. Upgrade numpy to 1.22.3. (please refer to requiremets_oa-dg.txt)
  2. Change all 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.