Skip to content

Posts tagged ‘ML.NET’

  • I had the honor to be a guest at the dotnetFlix channel, hosted by Sander Molenkamp and Edwin van Wijk. I share more on the techniques, frameworks and libraries I have used and I finish with a demonstration of the finished application. As there was so much to share, it did not fit in a single episode, so we recorded three parts!
  • A couple of my recent articles were about machine learning and image classification in C#. These posts were the results of a pet project on which I was working. I will be speaking about this project at a couple of events in the coming weeks.
  • Recently I wrote an article about getting all prediction scores from your ML.NET model. So, when we want to do this for an ONNX model we have loaded with ML.NET, that should work the same, right? Not really. Depending on the version of ML.NET, the data types of the downloaded Azure Custom Vision ONNX model are very hard to map on the .NET data types we use. In this article I will show how we can get the labels and scores from an ONNX model prediction in C#.
  • When predicting with an ML.NET model you trained yourself, you might be interested in just more than the highest scoring label. But how do you get the other labels and their corresponding scores? In this article I will show how to you can get these values.
  • When you have created a machine learning model, you will retrain that model when new data is available. But when I recently added a couple of images to the training set of my own ML.net model, I was faced with the following exception: System.InvalidOperationException: 'The asynchronous operation has not completed.' The application did work for weeks, so what has changed? And more importantly, how to fix this situation?
  • The Custom Vision service is one of the Azure Cognitive Services that is provided by Microsoft. With custom vision, you can train a model with your own image data. The portal provides a Prediction API for the trained model to classify an image you supply. There can be reasons why you might not want to use the online REST endpoint and you could prefer an offline model. To work with machine learning in .NET, we can use ML.NET. There are several tutorials how to use this framework. But none of them combine the use of the Bitmap class with a downloaded ONNX model from the custom vision portal. In this article I will walk through the steps to set up an application to classify bitmaps using a custom vision model with ML.NET.
  • When trying to have an application work with an ONNX model I downloaded from the Microsoft Custom Vision portal, I got the following exception: TypeInitializationException: EntryPointNotFoundException: Unable to find an entry point named 'OrtGetApiBase' in DLL 'onnxruntime'. Searching for the error online did not yield any solutions. After solving the problem, I wanted to share the solution for anyone else running into the same exception.