MiniBullLab / easy_ai

3 stars 1 forks source link

运行det的test报错 #160

Closed foww-0001 closed 2 years ago

foww-0001 commented 2 years ago

运行命令:

python3 easyai/inference_task.py -t detect2d -i /home/wfw/data/VOCdevkit/Fruit_detection/ImageSets/val.txt -m denet -w .easy_log/snapshot/det2d_best.pt -c .easy_log/config/detection2d_config.json

报错如下:

2021-09-16 16:51:57,353 ERROR   [test_task.py, 42] Traceback (most recent call last):
  File "easyai/test_task.py", line 39, in test
    task.process_test(self.val_path)
  File "/home/wfw/easy_data/easy_ai/easyai/tasks/det2d/detect2d_test.py", line 29, in process_test
    print("mAP: {.5f}".format(mAP))
AttributeError: 'numpy.float64' object has no attribute '5f'
foww-0001 commented 2 years ago

问题已解决。