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: all the input array dimensions except for the concatenation axis must match exactly #86

Closed
chenyangMl opened this issue May 21, 2020 · 2 comments

Comments

@chenyangMl
Copy link

运行 python3 tools/eval.py 出现如下错误
2020-05-21 09:38:02,350-INFO: Finish initing model from ./output/det_db/iter_epoch_1600
2020-05-21 09:38:04,318-INFO: test tackling num:8
Traceback (most recent call last):
File "tools/eval.py", line 101, in
main()
File "tools/eval.py", line 80, in main
metrics = eval_det_run(exe, config, eval_info_dict, "eval")
File "/paddle/PaddleOCR/tools/eval_utils/eval_det_utils.py", line 126, in eval_det_run
cal_det_res(exe, config, eval_info_dict)
File "/paddle/PaddleOCR/tools/eval_utils/eval_det_utils.py", line 59, in cal_det_res
img_list = np.concatenate(img_list, axis=0)
ValueError: all the input array dimensions except for the concatenation axis must match exactly

@LDOUBLEV
Copy link
Collaborator

LDOUBLEV commented May 21, 2020

看报错是imglist中的图像数据维度不一致,能否将imglist中img的维度打印出来看下。

是不是读到有4通道的图像,导致不能和其他3通道的图像con cat了

@MissPenguin
Copy link
Collaborator

是用的自己的数据把,看着像图像尺度不一致,因此不能concatenate,icdar2015的图像尺寸一样,所以不会有这个问题,可以把config中的 test_batch_size_per_card 改成1试试

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

3 participants