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

使用GPU比cpu还慢 #161

Open
bearmeetu opened this issue Nov 29, 2024 · 3 comments
Open

使用GPU比cpu还慢 #161

bearmeetu opened this issue Nov 29, 2024 · 3 comments

Comments

@bearmeetu
Copy link

如题,请问是什么原因导致的?怎么解决呢?

@breezedeus
Copy link
Owner

可能是 ort 的环境问题,可以看看warning,或者尽量用pytorch版本的模型。

@WeiZixu-HIT
Copy link

可能是 ort 的环境问题,可以看看warning,或者尽量用pytorch版本的模型。
我的
pytorch版本的模型是指cnocr模型的pytorch版本吗?这样:
text=dict(
#rec_model_name='densenet_lite_136-gru',
rec_model_backend='pytorch',
#rec_model_fp="C:/Users/acer/AppData/Roaming/cnocr/2.3/densenet_lite_136-gru/cnocr-v2.3-densenet_lite_136-gru-epoch=004-ft-model.onnx", # 注:修改成你的模型文件所存储的路径
),

@breezedeus
Copy link
Owner

嗯。具体接口可以看看 cnocr 的文档 https://cnocr.readthedocs.io

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