Questions tagged [windows-machine-learning]

Windows ML is a API for evaluating trained machine learning models locally in Windows 10 applications.

Windows ML is a API for evaluating trained machine learning models locally in Windows apps (C#, C++, and JavaScript), including GPU acceleration if hardware is available. Models are in ONNX format. Available for UWP apps since Windows 10 build 17723, see Windows ML docs

53 questions
0
votes
1 answer

Possible to select the DNN AI core for model evaluation on HoloLens 2?

Can anyone tell me if one can directly select the DNN AI core for neural network evaluation on HoloLens 2. I have read about the HPU, which includes and DNN AI core in the GitHub repo here. But in the doc for the devices that can be used only CPU…
0
votes
1 answer

Get pointer to data in Windows.AI.MachineLearning.TensorFloat from C#

I'd like to get a pointer to the data behind a TensorFloat in my C# .NET Core 5.0 application. I started by declaring…
Simon
  • 1,814
  • 20
  • 37
0
votes
1 answer

WinML to any Onnxruntime EP

Is it possible to call any ONNX Runtime Execution provider through WinML API? I'm able to run custom DML through WinML but unable to find steps for WinML to onnxruntime EP.
ms2579
  • 11
  • 2
0
votes
1 answer

WinMLRunner: Extract ordered features from ONNX model

Using WinMLRunner, I pass in an ONNX model (used Netron to see it i think). Then an image, the program runs in cmd, it shows out what follows: Outputting top 5 values Feature Name: pool5/7x7_s1 index: 661, value: 7.60391 index: 581, value:…
0
votes
1 answer

How to use GPU in Windows ML example

I'm trying to adapt this tutorial to use my own neural net and images. I can do that on my CPU, but what I cannot do either with the unchanged tutorial, or my adaptation of it, is use my GPU. According to system information, I have an "NVIDIA Quadro…
omatai
  • 3,448
  • 5
  • 47
  • 74
0
votes
1 answer

Machine Learning for NPCs in games: Windows ML or DirectML?

Sometimes I read that using Windows ML and/or DirectML can improve the behavior of NPCs in games. It seems that both APIs are suitable, but which one fits better? Or is parallel use for different tasks the best way? If one of them is better for…
0
votes
1 answer

WinML onnx example produce wrong results

I am following this WinML example to create a regression model and perform inference on it. I am tried running an onnx model using WinML/WinRT, but the result comes out wrong. I enforced that the data is read as RGB not BGR, but there is an alpha…
0
votes
1 answer

Cannot open microsoft.ai.machinelearning.h from NuGet package

I am working on a project in VS 2019 and am trying to use the latest winrt/c++ machine learning api. Therefore I conducted the following steps: Install Microsoft.AI.MachineLearning 1.4.0 NuGet package for specific project Build the project Add…
0
votes
1 answer

EvaluateAsync(), serializing evaluate on 2 different sessions

I want to have 2 evaluates running parallelly on 2 different devices(and 2 different sessions) that I have created, for which I am using EvaluateAsync() Code: std::cout<<" Starting Evaluate " << std::endl; auto start =…
0
votes
1 answer

Tensorize Image in 0-1 pixel range in Windows ML (UWP)

I'd like to use a pre-trained MobileNet which expects images in the pixel range 0-1 with Windows ML in an UWP app. The problem is, that ImageFeatureValue only supports a range of 0-255. So I need a replacement of ImageFeatureValue which can also…
lon121997
  • 3
  • 1
0
votes
2 answers

Convert Image to TensorFloat in Windows ML (For converted Keras model)

I followed this official tutorial to create an UWP app which can detect handwritten digits using pre-trained model. But I need to use Keras models. So I converted this Keras model from the Keras examples which is also trained on the MNIST dataset…
lon121997
  • 3
  • 1
0
votes
1 answer

How to fix 'Failure in `windows_configure_web_node.py FileNotFoundError`

I'm trying to configure Microsoft Machine Learning Server (9.4) to work on my local computer. I'm getting stuck at following this…
0
votes
1 answer

Binded model is not evaluating the image. What can be the possible reason behind it?

I am following the cpp tutorial. I have replaced the model with my own and replaces the input and output tensors, here and here. The Model is binding but on evaluation step abruptly aborts. As far as I know, there is nothing wrong with my code and…
0
votes
1 answer

How to resolve "REGDB_E_CLASSNOTREG" error while loading ONNX model in WinML

I am trying to reproduce a WinML tutorial described in https://learn.microsoft.com/en-us/windows/ai/windows-ml/get-started-desktop and need help in resolving the "Access violation reading location" error while loading the model. Installed Visual…
0
votes
1 answer

Windows Machine Learning API: MCVE command line example without VS

With C++/WinRT Microsoft apparently made quite the effort to make their APIs standard-conformant. And finally they've also released a machine learning API along with a code sample repo. Unfortunately, all samples are dependent on Visual Studio. Even…
Hendrik
  • 5,085
  • 24
  • 56