mmdetection3.1.0 bug(已解决)

mmdetection版本3.1.0
想这训练rpn网络,但是训练后val的时候出现了问题,根据Traceback,找到bug。

报错信息:ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (102,) + inhomogeneous part.

解决方法:np.array(all_ious)改为np.array(all_ious,dtype="object")

链接地址:https://stackoverflow.com/questions/67183501/setting-an-array-element-with-a-sequence-requested-array-has-an-inhomogeneous-sh

相关推荐
成龙的龙11 天前
〖open-mmlab: MMDetection〗解析文件:configs/_base_/schedules
mmdetection
答案是你3 个月前
使用mmdetection遇到的一些问题总结
人工智能·python·计算机视觉·mmdetection