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

不能多线程运行? #42

Open
wuyangdut opened this issue Oct 30, 2019 · 1 comment
Open

不能多线程运行? #42

wuyangdut opened this issue Oct 30, 2019 · 1 comment

Comments

@wuyangdut
Copy link

wuyangdut commented Oct 30, 2019

您说:添加 workers=4 参数让 Keras 自动实现多进程生成数据,摆脱 python 单线程效率低的缺点。
然而我加了后反而没法运行,这是为什么?怀疑和版本有关,能提供keras版本吗?

还有个问题,图片不用变成灰度图吗,用彩图训练不太好吧

@ypwhs
Copy link
Owner

ypwhs commented Nov 1, 2019

我不知道你的没法运行是什么样的报错,所以无法回答这个问题。

你可以使用 tensorflow 1.14.0 版本,我这里测试运行 ctc_2019.ipynb 是没问题的,多进程也是正常启动的。

最后一个问题,用彩图为什么不好?人眼看到的图就是彩色的,如果改为灰度图,我认为不会增加人眼的识别率,你可以都尝试一下。

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