Skip to content

yolov5-7 mnn推理置信度很低 #3398

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

Open
stevenmicn opened this issue Apr 24, 2025 · 1 comment
Open

yolov5-7 mnn推理置信度很低 #3398

stevenmicn opened this issue Apr 24, 2025 · 1 comment
Labels
question Further information is requested User The user ask question about how to use. Or don't use MNN correctly and cause bug.

Comments

@stevenmicn
Copy link

stevenmicn commented Apr 24, 2025

环境 win11 vs2022
库版本 mnn_3.1.0_windows_x64_cpu_opencl.zip

推理代码.zip

模型:通过网盘分享的文件:MNN.zip
链接: https://pan.baidu.com/s/19ijELhgb0HZ2tt6zYY-g_w?pwd=zjpq 提取码: zjpq

@jxt1234 jxt1234 added question Further information is requested User The user ask question about how to use. Or don't use MNN correctly and cause bug. labels Apr 27, 2025
@jxt1234
Copy link
Collaborator

jxt1234 commented Apr 27, 2025

  1. 先用 testMNNFromOnnx.py 测试原始模型和 mnn 推理结果是否一致
  2. 推理代码中存在问题:对于多输入的 Session ,需要 resize 所有输入后再 resizeSession ,resizeSession 之后再填充数据。推理代码中每次都 resizeSession 会导致前面的输入填充无效。建议换用 module api ,不容易出问题: https://mnn-docs.readthedocs.io/en/latest/inference/module.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested User The user ask question about how to use. Or don't use MNN correctly and cause bug.
Projects
None yet
Development

No branches or pull requests

2 participants