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

关于预测阶段模型加载的问题 #7

Open
wl1320310292 opened this issue Dec 8, 2020 · 3 comments
Open

关于预测阶段模型加载的问题 #7

wl1320310292 opened this issue Dec 8, 2020 · 3 comments

Comments

@wl1320310292
Copy link

不好意思,目前的predict阶段似乎是每次预测一条数据都需要重新加载一次训练好的模型,这样的预测时间很长,请问是够可以先将模型加载到内存中呢?您知道该如何修改吗

@NineSpinZ
Copy link

我把代码改成了这位博主写的这种模式:
https://blog.csdn.net/FK2016/article/details/106092844

run第一次的时候比较慢,但是后续速度还行,运行 速度是predict_gpu.py的十分之一

@wl1320310292
Copy link
Author

我把代码改成了这位博主写的这种模式:
https://blog.csdn.net/FK2016/article/details/106092844

run第一次的时候比较慢,但是后续速度还行,运行 速度是predict_gpu.py的十分之一

好的,非常感谢

@LastMonody
Copy link

好像还是没有用到GPU吧

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

3 participants