-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Making a prediction from ONNX model in ML.net #3562
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
Comments
Hi Varusnguyen Nice to see you, have a look at the onnox sample Also the tests in the project are a good start. |
Can someone guide me, how to pass video frames instead of pictures which are stored in folders? in the pipeline? var pipeline = mlContext.Transforms.LoadImages(outputColumnName: "image", imageFolder: imagesFolder, |
Hi, Not sure, never did that, however, how will you correctly label them so the model learns... |
Hi @Varusnguyen, thank you for trying out ML.NET. |
Thanks for many useful suggestions, it helped me a lot to gain knowledge about ONNX and ML.net. Btw, I also found out a helpful material of using C# to display the result from ONNX model, you can read to get more details. |
@usmankaiiz - This might interest you. Since ML.NET 1.1 we can also very easily load in-memory images into the pipeline targeting an ONNX or TensorFlow models, for instance. For ONNX, this example is using in-memory images instead of images coming from files on the hard drive: |
Link is dead! |
It was moved here: An btw, in that same solution we added a WPF app sample which is streaming video while using object detection. :) |
System information
Issue
Hi, everyone. I am a newbie of using ML.net to implement my classification problem. I already trained a model from CIFA 10 datasets based on Keras library and that model has been transferred to ONNX model. My goal is to display the image's prediction task on WindowForm, so I am going to use ML.net integrated with ONNX model, but right now I am getting stuck on how to use the ONNX model on ML.net and how to define the label and get the prediction result by the model. Do you have any suggestion to me? Thank you a lot in advance.
Source code / logs
Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.
The text was updated successfully, but these errors were encountered: