用Mask RCNN训练完样本在测试的时候报错了,错误显示为
Re-starting from epoch 10
Processing 1 images
Traceback (most recent call last):
File "fortest.py", line 103, in
results = model.detect([image], verbose=1)
File "D:\MASKRCNN\mrcnn\model.py", line 2500, in detect
log("image", image)
File "D:\MASKRCNN\mrcnn\model.py", line 44, in log
text += ("shape: {:20} ".format(str(array.shape)))
AttributeError: 'str' object has no attribute 'shape'
这个错误是什么意思啊,急求解答
AttributeError: 'str' object has no attribute 'shape'
字符串没有shape这个参数,可能是你上一行的代码array类型不对,print一下看看它的内容。