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

支持aarch64架构吗,我想在rk1106平台上部署,跑纯cpu的onnxOCR,我搞了两天了 #463

Open
hydrogenbond001 opened this issue Jan 27, 2025 · 5 comments

Comments

@hydrogenbond001
Copy link

No description provided.

@benjaminwan
Copy link
Contributor

benjaminwan commented Jan 27, 2025

我在树莓派3上跑过。
当然能支持arm64,但如果cpu性能太低,RAM太小,会很慢,甚至……
要跑起来,只要在板子上编译全部源代码即可。

@hydrogenbond001
Copy link
Author

谢谢你的回复,还有一个问题,onnxruntime-static静态连接库这里有些不懂,从源码编译依赖库要怎么编译,用scripts里的脚本吗

@benjaminwan
Copy link
Contributor

script好久以前的了,不建议使用了。
onnxruntime和opencv去官方仓库git clone代码编译,搜一下对应的编译教程。
教程一般都是编译成动态库,也可以用。
只要linux版本(gcc版本)不是很老,一般都能编译成功。

@benjaminwan
Copy link
Contributor

编译LibTest时,会再次依赖onnxruntime的头文件,可以通过修改OcrLite的头文件避免:
RapidAI/RapidOcrOnnx#31

预编译的库可以参考这2个仓库:
https://github.com/RapidAI/OnnxruntimeBuilder
https://github.com/RapidAI/OpenCVBuilder
高版本onnxruntime的api发生破坏性更改,这个仓库的代码太老,所以最好还是用旧版去测试。

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