-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Web] #23230
Comments
The Problem: This error almost always means your input data doesn't match what your ONNX model expects. The Solution (Focus on these):
In short, do this:
After making these changes, the error should be gone. If you still have problems, use |
Describe the issue
public class HomeController : Controller
{
private readonly MLContext _mlContext;
private readonly PredictionEngine<SignLanguageInput, SignLanguageOutput> _predictionEngine;
}
I have given my code (in mvc). In this code, i am getting error on line "var result = _predictionEngine.Predict(input);" and error is "System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')'"
Using package :
.Net Framework : net8.0
Microsoft.ML : Version="4.0.0"
Microsoft.ML.OnnxRuntime.Gpu Version="1.20.1"
Microsoft.ML.OnnxRuntime.Managed Version="1.20.1"
Microsoft.ML.OnnxTransformer Version="4.0.0"
SixLabors.ImageSharp Version="3.1.6"
System.Drawing.Common Version="9.0.0"
and using window is "Window 11" with 64bit OS
To reproduce
to reproduce it, plz run application and give sign image and then it will give error.
Urgency
No response
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.20.1
Execution Provider
Other / Unknown
The text was updated successfully, but these errors were encountered: