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

训练自己的数据集报错:ValueError: operands could not be broadcast together with shapes (0,0) (2,) #52

Open
xiaoxiaolu1111 opened this issue Apr 14, 2022 · 1 comment

Comments

@xiaoxiaolu1111
Copy link

python3 ./make_anchor_list.py
voc
--max_iters 10
--is_random True
--in_hw 224 320
--out_hw 7 10 14 20
--anchor_num 3
--low 0.0 0.0
--high 1.0 1.0
Traceback (most recent call last):
File "./make_anchor_list.py", line 241, in
main(args.train_set, args.max_iters, args.in_hw, args.out_hw, args.anchor_num, args.is_random, args.is_plot, args.low, args.high)
File "./make_anchor_list.py", line 198, in main
X[i, 1][:, 1:3] = (X[i, 1][:, 1:3] * img_wh * scale + translation) / in_wh
ValueError: operands could not be broadcast together with shapes (0,0) (2,)
Makefile:79: recipe for target 'anchors' failed
make: *** [anchors] Error 1

@zhen8838
Copy link
Owner

你这个应该是数据集的标注有出错的.

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