-
Notifications
You must be signed in to change notification settings - Fork 17
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
onnxruntime推理出错 #4
Comments
@youwh-PIRI Sorry for not familiar with onnxruntime. |
yes. ==> Context: Bad node spec: input: "data" output: "1005" op_type: "Pad" attribute { name: "mode" s: "constant" type: STRING } attribute { name: "pads" ints: 0 ints: 0 ints: 0 ints: 0 ints: 0 ints: 0 ints: 1 ints: 1 type: INTS } attribute { name: "value" f: 0 type: FLOAT } |
I also came across with the "Invalid Feed" error, here is my solution, before testing with onnxruntime_test, I use onnx optimize the onnx model, after "eliminate_unused_initializer" optimization, the onnxruntime_test passed. Hope this solution is usefull for you. import onnx
from onnx import optimizer
def opt(original_model):
op = ["eliminate_unused_initializer"]
optimized_model = optimizer.optimize(original_model, op)
onnx.save(optimized_model, "efficientdet-d0-opt.onnx") |
Hello, this error occurred when I was reasoning on onnxruntime. Have you ever encountered it?Thank you very much if you can reply!
onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from /home/youwh/ywh/efficientDet--ONNX/convert/efficientdet-d1-voc.onnx failed:This is an invalid model. Error in Node: : Node () has input size 1 not in range [min=2, max=3].
The text was updated successfully, but these errors were encountered: