WZMIAOMIAO / deep-learning-for-image-processing

deep learning for image processing including classification and object-detection etc.
GNU General Public License v3.0
22.23k stars 7.89k forks source link

yolov3_spp运行报错,运行到datasets.py中line259报错: #785

Open xin1347764176 opened 7 months ago

xin1347764176 commented 7 months ago

发生异常: 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.

ppppppppyyyy commented 4 months ago

注释掉即可