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

软件启动时预加载模型,减少识别时等待时间 #11

Open
FuryMartin opened this issue Dec 29, 2021 · 1 comment
Open

软件启动时预加载模型,减少识别时等待时间 #11

FuryMartin opened this issue Dec 29, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request Suspend Problems that cannot be solved currently

Comments

@FuryMartin
Copy link
Owner

软件启动时预加载模型,减少识别时等待时间

问题描述

现阶段,模型会在点击“开始识别后”加载,且加载耗时很长,不方便。

改进方案

将单独开一个QThread用来预加载模型,加载完之后再开始识别

@FuryMartin FuryMartin added the enhancement New feature or request label Dec 29, 2021
@FuryMartin FuryMartin self-assigned this Dec 29, 2021
@FuryMartin
Copy link
Owner Author

FuryMartin commented Dec 29, 2021

尝试修改了QThread来预加载模型,但无法成功,原因是后续将model传入pool中函数后会发生奇怪的报错,模型无法正确加载到pool中的函数里:

WARNING:tensorflow:Compiled the loaded model, but the compiled metrics have yet to be built. `model.compile_metrics` will be empty until you train or evaluate the model.

暂时找不到解决方案,搁置

@FuryMartin FuryMartin added the Suspend Problems that cannot be solved currently label Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Suspend Problems that cannot be solved currently
Projects
None yet
Development

No branches or pull requests

1 participant