Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xin1347764176 opened this issue Jan 16, 2024 · 1 comment
Open

Comments

@xin1347764176
Copy link

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

注释掉即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants