News

ML.NET Improves Object Detection

Microsoft improved the object detection capabilities of its ML.NET machine learning framework for .NET developers, adding the ability to train custom models with Model Builder in Visual Studio.

ML.NET is an open source, cross-platform machine learning framework, working on Windows, Linux and macOS. It works with other Microsoft ML components and offerings including:

  • Model Builder: a visual interface used to build, train and deploy custom ML models in Visual Studio without the need for deep ML expertise.
    Model Builder in Animated Action in Visual Studio
    [Click on image for larger, animated GIF view.] Model Builder in Animated Action in Visual Studio (source: Microsoft).
  • ML.NET CLI: a cross-platform command-line interface.
  • AutoML: a generic term ("the process of automating the time consuming, iterative tasks of ML model development") with a specific implementation coming from Microsoft Research, which designs "probabilistic ML models to guide (automated) experimental decisions and meta-learning to reduce the sample complexity and transfer knowledge across related datasets or problems." It comes with Azure Machine Learning, a cloud service to build and deploy ML models faster.

In the monthly September update to ML.NET -- bringing it to v1.5.2 -- Microsoft introduced:

  • The ability to train custom object detection models via Model Builder, leveraging Azure and AutoML
  • The ability to locally train image classification models with the ML.NET CLI

"While previously ML.NET offered the ability to consume pre-trained TensorFlow and ONNX models for object detection via the ML.NET API, you can now use Model Builder in Visual Studio to train custom object detection models with the power of Azure and AutoML," said Bri Achtman, program manager, .NET, in a Sept. 25 blog post.

Object detection is a useful adjunct improvement to image classification as it can, for example, identify a person and a dog in the same image, rather than just classify an image of a dog as a dog, as illustrated here:

Image Classification/Object Detection
[Click on image for larger view.] Image Classification/Object Detection (source: Microsoft).

Use cases for object detection include:

  • Self-driving cars
  • Robotics
  • Face detection
  • Workplace safety
  • Object counting
  • Activity recognition

The new ability to locally train custom image classification models via the ML.NET CLI, meanwhile, adds to the tool's previous abilities including classification, regression and recommendation.

Achtman goes into detail about using the new functionality in her post and much more information about the v1.5.2 update can be found in the release notes.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube