Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

Windows-Machine-Learning

> DevOps
Open source

Samples and Tools for Windows ML.

1.1K stars0 likes3 views
WebsiteGitHub

About

Samples and Tools for Windows ML.

Windows Machine Learning

⚠️ IMPORTANT For the latest documentation about Windows Machine Learning, see What is Windows ML. That documentation describes APIs that are in the Microsoft.Windows.AI.MachineLearning namespace, which ships in the Windows App SDK. Those APIs supersede the ones documented here, which are in the Windows.AI.MachineLearning namespace, and were shipped in 2018.

Windows Machine Learning is a high-performance machine learning inference API that is powered by ONNX Runtime and DirectML. The Windows ML API is a Windows Runtime Component and is suitable for high-performance, low-latency applications such as frameworks, games, and other real-time applications as well as applications built with high-level languages.

This repo contains Windows Machine Learning samples and tools that demonstrate how to build machine learning powered scenarios into Windows applications.

  • Getting Started with Windows ML
  • Model Samples
  • Advanced Scenario Samples
  • Developer Tools
  • Feedback
  • External Links
  • Contributing

For additional information on Windows ML, including step-by-step tutorials and how-to guides, please visit the Windows ML documentation.

Sample/Tool Status
All Samples
WinmlRunner
WinML Dashboard ?branchName=master)

Getting Started with Windows ML

Prerequisites

  • Visual Studio 2017 Version 15.7.4 or Newer

Windows ML offers machine learning inferencing via the inbox Windows SDK as well as a redistributable NuGet package. The table below highlights the availability, distribution, language support, servicing, and forward compatibility aspects of the In-Box and NuGet package for Windows ML.

In-Box NuGet
Availability Windows 10 - Build 17763 (RS5) or Newer
For more detailed information about version support, checkout our docs. Windows 8.1 or Newer
NOTE: Some APIs (ie: VideoFrame) are not available on older OSes.
Windows SDK Windows SDK - Build 17763 (RS5) or Newer Windows SDK - Build 17763 (RS5) or Newer
Distribution Built into Windows Package and distribute as part of your application
Servicing Microsoft-driven (customers benefit automatically) Developer-driven
Forward compatibility Automatically rolls forward with new features Developer needs to update package manually

Learn more here.

Model Samples

In this section you will find various model samples for a variety of scenarios across the different Windows ML API offerings.

Image Classification

A subdomain of computer vision in which an algorithm looks at an image and assigns it a tag from a collection of predefined tags or categories that it has been trained on.

| Windows App Type Distribution | UWP In-Box | UWP NuGet | Desktop In-Box | Desktop

NuGet | |------------|------------------------------------|--------------------------------------|------------------------------------|--------------------------------------| | AlexNet | | ||✔️C# .NET5 - Samples Gallery | | CaffeNet | | ||✔️C# .NET5 - Samples Gallery | | DenseNet | | ||✔️C# .NET5 - Samples Gallery | | EfficientNet | | ||✔️C# .NET5 - Samples Gallery | | GoogleNet | | ||✔️C# .NET5 - Samples Gallery | | InceptionV1 | | ||✔️C# .NET5 - Samples Gallery | | InceptionV2 | | ||✔️C# .NET5 - Samples Gallery | | MNIST | ✔️C++/CX ✔️C# | | | MobileNetV2 | | ||✔️C# .NET5 - Samples Gallery | | RCNN | | ||✔️C# .NET5 - Samples Gallery | | ResNet50 | | ||✔️C# .NET5 - Samples Gallery | | ShuffleNetV1 | | ||✔️C# .NET5 - Samples Gallery | | ShuffleNetV2 | | ||✔️C# .NET5 - Samples Gallery | | SqueezeNet | ✔️C# ✔️JavaScript | |✔️C++/WinRT ✔️C# .NET5 ✔️C# .NET Core 2 |✔️C++/WinRT ✔️C# .NET5 - Samples Gallery ✔️Rust | | VGG19 | | ||✔️C# .NET5 - Samples Gallery | | VGG19bn | | ||✔️C# .NET5 - Samples Gallery | | ZFNet512 | | ||✔️C# .NET5 - Samples Gallery |

Style Transfer

A computer vision technique that allows us to recompose the content of an image in the style of another.

| Windows App Type Distribution | UWP In-Box | UWP NuGet | Desktop In-Box | Desktop

NuGet | |------------|------------------------------------|--------------------------------------|------------------------------------|--------------------------------------| | FNSCandy | ✔️C# - FNS Style Transfer ✔️C# - Real-Time Style Transfer | |

Advanced Scenario Samples

These advanced samples show how to use various binding and evaluation features in Windows ML:

  • Custom Tensorization: A Windows Console Application (C++/WinRT) that shows how to do custom tensorization.

  • Custom Operator (CPU): A desktop app that defines multiple custom cpu operators. One of these is a debug operator which we invite you to integrate into your own workflow.

  • Adapter Selection: A desktop app that demonstrates how to choose a specific device adapter for running your model.

  • Plane Identifier: a UWP app and a WPF app packaged with the Desktop Bridge, sharing the same model trained using Azure Custom Vision service. For step-by-step instructions for this sample, please see the blog post Upgrade your WinML application to the latest bits.

  • Custom Vision and Windows ML: The tutorial shows how to train a neural network model to classify images of food using Azure Custom Vision service, export the model to ONNX format, and deploy the model in a Windows Machine Learning application running locally on Windows device.

  • ML.NET and Windows ML: This tutorial shows you how to train a neural network model to classify images of food using ML.NET Model Builder, export the model to ONNX format, and deploy the model in a Windows Machine Learning application running locally on a Windows device.

  • PyTorch Data Analysis: The tutorial shows how to solve a classification task with a neural network using the PyTorch library, export the model to ONNX format and deploy the model with the Windows Machine Learning application that can run on any Windows device.

  • PyTorch Image Classification: The tutorial shows how to train an image classification neural network model using PyTorch, export the model to the ONNX format, and deploy it in a Windows Machine Learning application running locally on your Windows device.

  • YoloV4 Object Detection: This tutorial shows how to build a UWP C# app tha

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++aicaffe2coremldeep-learning

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理