用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'
这个错误是什么意思啊,急求解答
Mask R-CNN在测试时报错
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- 无穷升高的卡农 2019-09-05 22:46关注
AttributeError: 'str' object has no attribute 'shape'
字符串没有shape这个参数,可能是你上一行的代码array类型不对,print一下看看它的内容。解决 无用评论 打赏 举报
悬赏问题
- ¥20 怎么在stm32门禁成品上增加记录功能
- ¥15 Source insight编写代码后使用CCS5.2版本import之后,代码跳到注释行里面
- ¥50 NT4.0系统 STOP:0X0000007B
- ¥15 想问一下stata17中这段代码哪里有问题呀
- ¥15 flink cdc无法实时同步mysql数据
- ¥100 有人会搭建GPT-J-6B框架吗?有偿
- ¥15 求差集那个函数有问题,有无佬可以解决
- ¥15 【提问】基于Invest的水源涵养
- ¥20 微信网友居然可以通过vx号找到我绑的手机号
- ¥15 寻一个支付宝扫码远程授权登录的软件助手app