Hi,我已经通过直接调用onnx模型验证onnx模型没有问题。
onnx模型转ncnn过程中没有报任何异常,
在实际进行推理时,发现输出层的结果始终为空,但没有报错。
我尝试了一下for循环从1还是按blob_index访问输出,到中间某节点会异常退出:
Process finished with exit code 11
然后,如果单独输出该节点以后的任意节点,输出的blob mat都是空的。
想问一下,这有可能是什么原因?
遇到同样的问题,求大佬解答一下,谢谢
+1
it was found that the output layer results were always empty, :
I am facing the exact same issue. output layer always returns -100
@nihui
If this bug gets solved then pytorch-->onnx--->ncnn pipeline will work like charm for all modern arch.
looking forward for this issue to get resolve.
@ckf1111 问题解决了:
extractor.extract("123", outputMat);Can you explain lil more @Wilbur529
@soham24
Hi, I think you may fix the problem follow these steps:
Thank you @Wilbur529 :)
@soham24
Hi, I think you may fix the problem follow these steps:
- Check your ONNX model by onnx_runtime package, make sure your format conversion from Pytorch to ONNX is well;
- Try to extract the output blob of each node in ncnn.param, and compare with the related result from onnx_runtime. Maybe you can see what the problem node is. ^_^
你好 请问一下,用onnx_runtime检测ONNX模型有好的教程推荐的不?
Most helpful comment
@soham24
Hi, I think you may fix the problem follow these steps: