guojin-yan / OpenVINO-CSharp-API

OpenVINO wrapper for .NET.
Apache License 2.0
128 stars 34 forks source link

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

Open zgfflc opened 6 months ago

zgfflc commented 6 months ago

我参考你的代码流程就换成了我的数据 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 commented 6 months ago

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

zgfflc commented 6 months ago

我想问下,老师你能不能用自己训练的模型推理一下自己的图片,这样应该问题就解决了。谢谢!

---原始邮件--- 发件人: @.> 发送时间: 2024年1月6日(周六) 中午12:35 收件人: @.>; 抄送: @.**@.>; 主题: Re: [guojin-yan/OpenVINO-CSharp-API] 自己的模型推理没有结果 (Issue #20)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

guojin-yan commented 6 months ago

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