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

自己的模型推理没有结果 #20

Open
zgfflc opened this issue Jan 6, 2024 · 3 comments
Open

自己的模型推理没有结果 #20

zgfflc opened this issue Jan 6, 2024 · 3 comments

Comments

@zgfflc
Copy link

zgfflc commented Jan 6, 2024

我参考你的代码流程就换成了我的数据
yolov8_infer("det", "c:\best.onnx", "c:\zhuye7.jpg", "CPU", "c:\classes.txt");

ResultProcess process = new ResultProcess(factors, 10);//这里的数量跟我的类别标签是一致的
然后执行后就没有推理出结果
---- OpenVINO INFO----
Description : OpenVINO Runtime
Build number: 2023.1.0-12185-9e6b00e51cd-releases/2023/1
Set inference device CPU.
[INFO] Loading model files: c:\best.onnx
[INFO] model name: main_graph
[INFO] inputs:
[INFO] input name: images
[INFO] input type: f32
[INFO] input shape: Shape : {1, 3, 640, 640}
[INFO] outputs:
[INFO] output name: output0
[INFO] output type: f32
[INFO] output shape: Shape : {1, 14, 8400}
[INFO] Read image files: c:\zhuye7.jpg

Detection result :

我的模型和测试图片在python里面都是可以标注的,麻烦指点下,是还有哪里的参数需要注意或者调整的吗?我的邮箱78925271@qq.com

@guojin-yan
Copy link
Owner

你好,你可以检查一下模型预测输出是否有问题?如果输出没有问题,请调整一下结果处理方式,调整一下阈值大小。

@zgfflc
Copy link
Author

zgfflc commented Jan 8, 2024 via email

@guojin-yan
Copy link
Owner

你好,前天我指导过其他开发者使用自己的模型推理过,是没有问题的;根据以往的经验,这个模型推理套件本身是没有问题的,基本问题出现在输入数据预处理以及结果处理过程中。而且我手上目前没有自己训练的模型。

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