-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
onnx模型和mnn模型推理结果不一致问题 #2276
Comments
使用 |
在2.4的工程中使用testMNNFromONNX.py会失败
|
是否能够提供模型? |
@wangzhaode python testMNNFromOnnx.py models/anime_bg.mnn models |
我邮件发给您 |
看文档:https://mnn-docs.readthedocs.io/en/latest/tools/convert.html#id3 |
好的 |
@wangzhaode |
@kitterive 只看代码看不出问题 主要是不知道你的模型输入输出的格式是什么 |
模型文件上传一下? |
谢谢! |
模型在models目录下,输入float (-1,-1,3), 输出 uint8(-1,-1,3) |
这两处的DimensionType都改成 |
不过效果上还有误差 我在深入看一下 |
谢谢,是的,我改后是这样的 |
模型转换时一个优化Pass
|
或者也可以直接使用我转换好的模型 |
问题解决了,非常感谢! |
平台(如果交叉编译请再附上交叉编译目标平台):
Platform(Include target platform as well if cross-compiling):
ubuntu20.04
Github版本:
Github Version:
2.4.0
MNN安装方式:
Compiling Method
pip install MM #安装版本为2.4.0
测试代码和模型
The text was updated successfully, but these errors were encountered: