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

模型推理精度下降 #1

Open
xmxoxo opened this issue Dec 11, 2024 · 1 comment
Open

模型推理精度下降 #1

xmxoxo opened this issue Dec 11, 2024 · 1 comment

Comments

@xmxoxo
Copy link

xmxoxo commented Dec 11, 2024

自己训练了一个模型,然后替换到模型目录,用这个同一个模型,在电脑上推理的结果和在安卓上推理的结果差异很大:
电脑上评估 准确度96%, 到了安卓上只有54%
请问使用安卓框架推理时,模型的精度是会受到 影响吗?

@benjaminwan
Copy link
Member

benjaminwan commented Dec 11, 2024

同样的模型,同样的推理框架,把相同的矩阵数据输入给推理框架(例如onnxruntime),输出的矩阵数据应该差不多。
不会完全相同是因为,不同编程语言以及不同的cpu架构,对浮点格式处理不一样,可以网上搜"python C++ 浮点精度"相关文章。
另外你是如何对比的?

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