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")