MiniBullLab / easy_ai

3 stars 1 forks source link

运行segment的test报错 #159

Closed foww-0001 closed 2 years ago

foww-0001 commented 2 years ago

运行命令如下:

 python3 easyai/inference_task.py -t segment -i /home/wfw/data/VOCdevkit/CarScratch_segment/ImageSets/val.txt -m segnet -w .easy_log/snapshot/seg_best.pt -c .easy_log/config/segmention_config.json

报错如下:

2021-09-16 16:45:33,872 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/seg/segment_test.py", line 30, in process_test
    print("Mean IoU: {.5f}".format(score))
AttributeError: 'numpy.float64' object has no attribute '5f'
foww-0001 commented 2 years ago

问题已解决。