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

AttributeError: 'Namespace' object has no attribute 'use_pdserving' #832

Closed
zhaobingkun opened this issue Sep 24, 2020 · 4 comments
Closed
Assignees

Comments

@zhaobingkun
Copy link

按照文档安装,运行demo的时候报这个错
AttributeError: 'Namespace' object has no attribute 'use_pdserving'

@zhaobingkun
Copy link
Author

但是我用命令行能跑出来。

image

@WenmuZhou WenmuZhou assigned ShenYuhan and unassigned ShenYuhan Sep 24, 2020
@MissPenguin
Copy link
Collaborator

已修复,拉取最新代码试试

@zhaobingkun
Copy link
Author

这个错误 可以这么解决,在paddleocr.py中,找到def parse_args():在下面加入下面这行。
parser.add_argument("--use_pdserving", type=bool, default=False)
跑demo没问题。

@SWHL
Copy link
Collaborator

SWHL commented Oct 20, 2020

刚刚拉取了develop分支下的最新代码,仍然有这个错误
不过 @zhaobingkun 的做法可以解决这个问题

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

4 participants