operands could not be broadcast together with remapped shapes

operands could not be broadcast together with remapped shapes

报错代码:

   point_num = 12
            try:
                labels=np.pad(labels, ((0, 0), (0, point_num)), mode='constant', constant_values=0)
            except Exception as e:
                print(e)

原因:labels为空导致的。

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/127312044