Samples and Tools for Windows ML.
Перейти к файлу
Kumar Rajeev 25f716a869 update debug config 2018-11-04 16:41:05 -08:00
.github Add deep link to UserVoice 2018-08-03 09:42:44 -07:00
Samples fixed SDK version and deleted winmlrunner (not ready yet) 2018-08-08 15:46:51 -07:00
SharedContent bug fixes 2018-07-30 18:58:45 -07:00
Tools/WinMLDashboard update debug config 2018-11-04 16:41:05 -08:00
.gitignore Initial commit 2018-03-01 12:07:48 -08:00
.gitmodules rename WinMLDashboard from WinML-Dashboard 2018-10-01 15:04:47 -07:00
LICENSE Initial commit 2018-03-01 12:07:51 -08:00
README.md Update README.md 2018-10-07 13:58:09 -07:00
appveyor.yml Fix build dir location in CI packaged app 2018-08-24 17:28:04 -07:00

README.md

Release Build status
WinML Dashboard Build status
WinmlRunner Build status
Samples Build status

Windows ML

Welcome to the Windows ML repo! Windows ML allows you to use trained machine learning models in your Windows apps (C# and C++). The Windows ML inference engine evaluates trained models locally on Windows devices. Hardware optimizations for CPU and GPU additionally enable high performance for quick evaluation results.

In this repo, you will find sample apps that demonstrate how to use Windows ML to build machine learning applications for Windows 10.

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

Pre-release APIs

These samples use the Windows.AI.MachineLearning APIs, a pre-released product which may be substantially modified before its commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Requirements

Sample apps

These generic examples show how to use various models and input feeds with Windows ML. We have both C++ native apps and C# UWP samples

  • FNSCandyStyleTransfer\UWP\cs: a UWP C# app that uses the FNS-Candy style transfer model to make a cool image.
  • SqueezeNetObjectDetection\UWP\cs: a UWP C# app that uses the SqueezeNet model to detect the predominant object in an image.
  • SqueezeNetObjectDetection\Desktop\cpp: a classic desktop C++/WinRT app that uses the SqueezeNet model to detect the predominant object in an image.
  • MNIST\UWP\cs: a UWP C# app that uses the MNIST model to detect numberic characters.
  • MNIST\UWP\cppcx: a UWP C++/CX app that uses the MNIST model to detect numberic characters.

Using the samples

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio 2017.

Download the samples ZIP

Notes: Before you unzip the archive, right-click it, select Properties, and then select Unblock. Be sure to unzip the entire archive, and not just individual samples. The samples all depend on the SharedContent folder in the archive. In Visual Studio 2017, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device.

Reminder: If you unzip individual samples, they will not build due to references to other portions of the ZIP file that were not unzipped. You must unzip the entire archive if you intend to build the samples.

Feedback

Release Notes

Build 17723

  • Requires ONNX v1.2 or higher.
  • Supports F16 datatypes with GPU-based model inferences for better performance and reduced model footprint. You can use WinMLTools to convert your models from FP32 to FP16.
  • Allows desktop apps to consume Windows.AI.MachineLearning APIs with WinRT/C++.

Contributing

We're always looking for your help to fix bugs and improve the samples. Create a pull request, and we'll be happy to take a look.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.