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

  • Uno Platform Wants Microsoft to Improve .NET WebAssembly in Two Ways

    Uno Platform, a third-party dev tooling specialist that caters to .NET developers, published a report on the state of WebAssembly, addressing some shortcomings in the .NET implementation it would like to see Microsoft address.

  • Random Neighborhoods Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the random neighborhoods regression technique, where the goal is to predict a single numeric value. Compared to other ML regression techniques, advantages are that it can handle both large and small datasets, and the results are highly interpretable.

  • As Some Orgs Restrict DeepSeek AI Usage, Microsoft Offers Models and Dev Guidance

    While some organizations are restricting employee usage of the new open source DeepSeek AI from a Chinese company due to data collection concerns, Microsoft has taken a different approach.

  • Useful New-ish Features in .NET/C#

    We often hear about the big new features in .NET or C#, but what about all of those lesser known, but useful new features? How exactly do you use constructs like collection indices and ranges, date features, and pattern matching?

  • TypeScript 5.8 Beta Speeds Program Loads, Updates

    "TypeScript 5.8 introduces a number of optimizations that can both improve the time to build up a program, and also to update a program based on a file change in either --watch mode or editor scenarios."

Subscribe on YouTube