发生异常: ValueError
setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5717,) + inhomogeneous part.
File "D:\file\objectsegmentation\yolov3_spp\build_utils\datasets.py", line 259, in init
np.save(np_labels_path, self.labels) # save for next time
File "D:\file\objectsegmentation\yolov3_spp\train.py", line 153, in train
train_dataset = LoadImagesAndLabels(train_path, imgsz_train, batch_size,
File "D:\file\objectsegmentation\yolov3_spp\train.py", line 302, in
train(hyp)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5717,) + inhomogeneous part.
发生异常: ValueError setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5717,) + inhomogeneous part. File "D:\file\objectsegmentation\yolov3_spp\build_utils\datasets.py", line 259, in init np.save(np_labels_path, self.labels) # save for next time File "D:\file\objectsegmentation\yolov3_spp\train.py", line 153, in train train_dataset = LoadImagesAndLabels(train_path, imgsz_train, batch_size, File "D:\file\objectsegmentation\yolov3_spp\train.py", line 302, in
train(hyp)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5717,) + inhomogeneous part.