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

修改data_provider.py来支持多边形格式输入--报错 #75

Open
wuzuowuyou opened this issue Feb 25, 2020 · 2 comments
Open

修改data_provider.py来支持多边形格式输入--报错 #75

wuzuowuyou opened this issue Feb 25, 2020 · 2 comments

Comments

@wuzuowuyou
Copy link

tensorflow_PSENet-master/utils/data_provider/data_provider.py", line 87, in load_annoataion
return np.array(text_polys, dtype=np.float32), np.array(text_tags, dtype=np.bool)
ValueError: setting an array element with a sequence.

由于多线程,导致点个数不一样,如何解决。多谢。

@lipeng1109
Copy link

请问你解决了这个问题吗?

@wuzuowuyou
Copy link
Author

解决了,不过很久了,已经忘记是哪里了
具体的就是numpy要求数组个数一样,不一样就报这个错

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