deep-learning-for-image-processing icon indicating copy to clipboard operation
deep-learning-for-image-processing copied to clipboard

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

Open allenzzeng opened this issue 1 year ago • 1 comments

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

allenzzeng avatar Jan 16 '24 08:01 allenzzeng

注释掉即可

ppppppppyyyy avatar Apr 16 '24 15:04 ppppppppyyyy