Open Day-commit opened 1 year ago
I assume that the error is as explained in the error message: "image" may not be the model's input
我假设错误如错误消息中所述:“图像”可能不是模型的输入
Then what should I do? This problem has troubled me for a long time. Using netron to view the model, I found that the input of the model exported by yolo is images, and using the FasterRCNN-10.onnx model provided by you, it can run normally. His in netron The input is an image, is there any difference between this?
The it should be "images" in NamedOnnxValue.CreateFromTensor("image", input). Or you can check the exact name by using
Console.WriteLine(session.InputNames[0])
, which will give you the actual name for it and then you can replace it with your "image"
Describe the issue
I want to use C# to call yolov8 to convert the onnx model file, and when loading, it prompts Microsoft.ML.OnnxRuntime.OnnxRuntimeException: "[ErrorCode:InvalidArgument] Input name: 'image' is not in the metadata".how to solve this problem.Below is my code:
To reproduce
Urgency
No response
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
Microsoft.ML.OnnxRuntime1.15.1,Microsoft.ML.OnnxRuntime.Managed1.15.1
Execution Provider
Other / Unknown