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

运行出错,求救! #2

Open
eratio opened this issue Jan 6, 2020 · 2 comments
Open

运行出错,求救! #2

eratio opened this issue Jan 6, 2020 · 2 comments

Comments

@eratio
Copy link

eratio commented Jan 6, 2020

Traceback (most recent call last):
File "table.py", line 209, in
rboxes,ColsLines,RowsLines = get_table_ceilboxes(img,prob=0.5,row=10,col=10,alph=10)
File "table.py", line 173, in get_table_ceilboxes
RowsLines,ColsLines=get_table_rowcols(img,prob,row,col)
File "table.py", line 94, in get_table_rowcols
xmin,xmax = indX.min(),indX.max()
File "/home/ubuntu/anaconda3/envs/ai/lib/python3.6/site-packages/numpy/core/_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity

@eratio
Copy link
Author

eratio commented Jan 7, 2020

好像关闭GPU选项,就正常了。求教作者大神是什么原因?

@tangent2018
Copy link

看报错内容,模型识别出来的结果是空的所以xmin,xmax = indX.min(),indX.max()这里没法计算。要多做个对空的结果的判断,应该与CPUGPU没关系

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