626 questions
Advice
0
votes
0
replies
22
views
Using ML.net how do I predict multiple labels for a given text?
Say I am given some text (could be an email subject but could be anything really). Then I want to categorise that with as many labels as it is trained with. Say "I want help with my computer"...
Advice
0
votes
1
replies
26
views
Recommend a number of strings given another string using ML.Net
I have a number of book summaries in a database and I want to recommend say 10 books given a inputted text of what a user likes in a book. Does anyone know of any good examples of doing this ...
2
votes
0
answers
174
views
Unable to load onnxruntime.dll error 0x8007045A (ERROR_DLL_INIT_FAILED)
I am having trouble using onnxruntime.dll in ML.NET.
My code works on one PC but not another. Clearly there is a mismatch between versions of some native DLLs, but I can't figure it out.
The error is:...
1
vote
1
answer
66
views
Error loading ML.NET model (.NET 8.0) in Docker container with Node-RED: FileNotFoundException pointing to wrong path
I’m trying to run a ML.NET application in a Docker container with Node-RED, but I’m receiving the following error:
Unhandled exception. System.IO.FileNotFoundException: Could not find file '/usr/src/...
1
vote
0
answers
49
views
Why does ML.NET Image Classification with Ampere Gpu return fixed results when it otherwise works with CPU and Turing Gpu support?
We currently have a trained ResnetV250 image classification model that performs as expected on CPU and with GPU support on Turing based cards with CUDA 10.1 and cudnn 7.6.4.
When transferring this to ...
1
vote
2
answers
169
views
Is there a way to show the training log output from the ML.NET Fit() function in the training pipeline?
I'm using version 3.0.1 of the Microsoft.ML library in my C# WinForms object detection program.
When I add a Machine Learning Model to my Visual Studio project, training it on the MLModel1.mbconfig ...
0
votes
1
answer
179
views
Image segmentation ONNX from huggingface produces very diferent results when used in ML.Net
I have been trying to get an image segmentation model from huggingface (RMBG-2.0) to work for inference using ML.NET. After a lot of trial and error, I finally got the code to compile and produce an ...
0
votes
1
answer
132
views
Fail to install runtime Visual Studio error
I've a super strange error "fail to install runtime" when I'm starting to train my ML.NET model and I'm using Ml.NET Model Builder.
Of course I tried to reisntall Visual Studio, twice, and ...
0
votes
1
answer
90
views
ML.Net Model in Azure Function getting model zip into PredictionEnginePool
I have built an ML.net model using the Visual Studio Model Builder and all is well. I have tested it locally and it works. I now have the zip file (actually now a .mlnet file) and I want to deploy the ...
3
votes
1
answer
137
views
Microsoft.ML C# properties of internal input class must be public otherwise error
I'm working on an ML.NET project where I load data into an IDataView, apply an ONNX model transformation, and then access the transformed output.
My Input class is in the same assembly as my Output ...
1
vote
0
answers
113
views
How to use CenterFace in ML.NET? Model expects shape (10, 3, 32, 32)
I am trying to use CenterFace ONNX in ML.NET and I keep getting various errors, mostly about input size.
CenterFace metadata points that it should have an input of 10, 3, 32, 32, which already makes ...
0
votes
1
answer
63
views
Array Bounds Overrun inside of ML.NET - at my wits end
At my wits end...
T5.omnx - ML.Net implementation trying to get down into text summarization...
Have this text harness - guts of which are below - the harnes is simple proof of component usability...
...
1
vote
2
answers
249
views
ML.Net no zip file for AddPredictionEnginePool
New to ML.Net. Have created a model directly in my API and want to create a Pool using the AddPredictionEnginePool so I can multithread the predictions. However all the documentation says there is a ....
0
votes
1
answer
621
views
Unable to load DLL 'LibTorchSharp' or one of its dependencies: The specified procedure could not be found
I'm attempting to use ML.NET to build a model for a simple text classification, but using the CPU rather than GPU due to lacking one with CUDA. However, trying to execute my current code results in ...
0
votes
0
answers
83
views
ML.Net prediction Showing 0 value always
My input and Output Models
public class MLInput
{
public float[] Inputs { get; set; } // Handles any number of tags
public float Value { get; set; } // Target value
}
public class ...
0
votes
1
answer
163
views
C# ML.NET Using DepthAnything model fails
I attempted to use DepthAnything V2 model to approximate depth from given images.
using System.Drawing;
using System.Text.Json;
using Microsoft.ML;
using Microsoft.ML.OnnxRuntime;
using Microsoft.ML....
0
votes
1
answer
178
views
ml.net LoadFromEnumerable always give System.ArgumentOutOfRangeException
I'm getting the following exception:
System.ArgumentOutOfRangeException: Could not determine an IDataView type and registered custom types for member ValueType (Parameter 'rawType')
For those 2 cases:...
0
votes
1
answer
293
views
ml.net dont have ApplyOnnxModel
i want use ml.net and load onnx model in it.
but i dont have any ApplyOnnxModel method in mlContext ...
this is installed packaged
<PackageReference Include="Microsoft.ML" Version=&...
1
vote
0
answers
82
views
Microsoft ML .Net Forecasting Model backtest usage issue
I am new in ML .Net Forecasting. I am trying to build a simple application for Prediction.
Time Series (step is 1 month, 1993-1995),
Data = values incrementing with step 10 starting from 100.
Then I ...
1
vote
0
answers
56
views
System.AccessViolationException: Attempted to read or write protected memory at TorchSharp.PInvoke.LibTorchSharp.THSGenerator_manual_seed
I was trying to reproduce the example of ML.Net: machinelearning-samples/samples/csharp/getting-started/MLNET2/SentenceSimilarity and I got the following error :
Fatal error. System....
1
vote
1
answer
504
views
MissingMethodException: Method not found: '!!0 TorchSharp.ModuleExtensionMethods.to(!!0, Device)' after upgrade
I upgraded nuget packages from:
<PackageReference Include="Microsoft.ML" Version="3.0.0-preview.23266.6" />
<PackageReference Include="Microsoft.ML.ImageAnalytics&...
0
votes
1
answer
108
views
Essentia models in ML.NET fail to predict
I'm trying to predict using the Essentia discogs_track_embeddings-effnet-bs64 model with ML.NET. I've tried both using tensorflow and onnx, but when I try to predict anything I'm stuck with
Exception ...
1
vote
2
answers
178
views
My app returns all keywords instead of existing in the string list in ml.net and c#
In an application for a law article, there is a list of strings with keywords. In the example it is assigned to the variable keywords.
In my example there is an article with the title İşçilik ...
0
votes
1
answer
105
views
Unable to load dynamic Data in ML.net
I have input data as List<Dictionary<string,dynamic>>
I want to load this data as Enumerable in MLContext
var mlContext = new MLContext();
mlContext.Data.LoadFromEnumerable(inputData);
I ...
0
votes
0
answers
326
views
Object detection bounding boxes using yolov5s with onnx on ml.net
I know its been a while. I am using yolov5 with MAUI as well but in an ONNX form. I am having no trouble in getting the predictions but issue is with the bounding boxes they are way off.
my model has ...
0
votes
1
answer
1k
views
Error initializing ONNX-model from C# on Windows Server 2022: Unknown model file format version
We have an exported ONNX-model, built using Python and imported to a .NET Core 8 application.
Everything works as expected on our local machines, Windows 11 and Windows 10.
However, when deploying to ...
0
votes
1
answer
140
views
Duplication ML.NET example/Tutorial movie recommender using matrix factorization
I'm new to machine learning, but I have experience in C#, which is why I want to pick up Ml.net to familiarize myself with the topic.
As I grasp the concept, I have decided to make a movie ...
0
votes
1
answer
222
views
How do I get the topics used in a ML.NET Latent Dirichlet Allocation?
When using ML.NET to perform a Latent Dirichlet Allocation (LDA) on a sample set of documents I can get the prediction (correlation) between each document and the topics extracted but I cannot get the ...
1
vote
0
answers
228
views
Can't build the project with TorchSharp-cuda-windows
In my project I want to use Ml.Net to train TorchSharp based NER model using GPU. So I installed required version of Nvidia CUDA:
nvcc --version
Cuda compilation tools, release 12.1, V12.1.66
Build ...
0
votes
1
answer
137
views
ML.NET, how to create a 100 layers deep neural network for float array?
What is the exact syntax for creating NN that process a generic input into a generic output? There are lot of tutorials on images but none tutorials covering my use case and no tutorials covering the ...
0
votes
1
answer
111
views
ML.NET training with floats arrays
I fail to understand the transform component. Basically I have generated 1 million training samples
public class Data{
public float[] Input;
public float[] Output;
}
I want to train a net with 100 ...
0
votes
0
answers
111
views
ML.Net: System.OutOfMemoryException: 'Exception of type 'System.OutOfMemoryException' was thrown.' on small dataset
I have a 60mb CSV with 700000 rows, IMO this is not a huge amount. My machine has 32 GB of memory and doesn't even use 20% of my memory when I watch performance. I tried to build a release build on ...
1
vote
0
answers
175
views
How to use LightGbm Training Model for Value Prediction?
I'm using ML.NET for a value prediction application. Everything works, except I can't get it to use the LightGbm trainer algorithm. If I select all available trainers, it never tries LGBM. If I only ...
0
votes
0
answers
201
views
Applying two filters to a .net DataFrame
Is there a more convenient way to apply two filters to a DataFrame in .net than this method?
DataFrame origFrame = DataFrame.LoadCsv("sample.csv");
var filtered1 = origFrame.Filter(origFrame ...
0
votes
0
answers
294
views
Machine Learning ML.net Prediction Intervals
I have a machine learning ml.net binary classification model, trained it, and evaluated it, giving me a CalibratedBinaryClassificationMetrics with a lot of metrics, but none helpful to me.
I want to ...
1
vote
0
answers
124
views
Add more features to ML.NET Image Classification Trainer
We are using ML.NET to classify images. Every image should fall into one of more classes.
The images contain different variants of products. The variants of the products have lots of similarities but ...
0
votes
1
answer
1k
views
How to use local files in an Azure Function hosted on the Linux Consumption plan?
I have an event grid triggered function on Azure under the Linux Consumption plan. The code requires finding / loading some local model files. How do I get these files deployed to the Azure function ...
0
votes
1
answer
314
views
ML.net - CreateTimeSeriesEngine
I am working on a time series analysis project with ML.net. Here I try to forecast euro to usd transaction rate. I load the data from a CSV file and create IDataView with in memory data.
List<...
0
votes
1
answer
412
views
What's the proper way of building a frozen graph in tensorflow in order to use it in ML.Net
I want to use my frozen graph models(.pb) in ml.net (eg. ModelOperationsCatalog.LoadTensorflowModel) that i built in python and tensorflow. My several attempts causes errors when I tried to load .pb ...
3
votes
0
answers
609
views
`The JSON-RPC connection with the remote party was lost before the request could complete.` error when I use ML.NET Model Builder
I am using .NET Model Builder to use ML.NET Text Classification. And whenever I click train, later it gives me an error saying The JSON-RPC connection with the remote party was lost before the request ...
1
vote
0
answers
57
views
Can't pass in memory data to AutoML, in F#. Not understanding why it doesn't compile
I'm trying to do the code equivalent of:
mlnet classification --dataset output.csv --label-col 0 --has-header true --name test --train-time 300
and here is the code:
let data = ctx.Data....
-1
votes
1
answer
1k
views
Split address text into components using Machine Learning
I have a CSV file with each row representing the different components of an address, such as City, Street, House No, etc., and then a column with a combined address in one line, with a predefined ...
1
vote
1
answer
368
views
ml.net vector with dynamic length
I´m using ml.net to build a model, but I can't figure out how to build a model from a complex object with a list of other objects, of varying length. Example code:
public void Test()
{
List<...
1
vote
0
answers
127
views
ML.Net Invalid format when loading model
I'm trying to implement an ML.Net system to predict prices and I'm getting a strange error when loading the stored model.
This is my code for the training:
private async Task TrainModel()
{
var ...
1
vote
2
answers
877
views
CUDA issue with NER (Named Entity Recognition) for ML predictions
I'm attempting to use NamedEntityRecognition (NER)(https://github.com/dotnet/machinelearning/issues/630) to predict categories for words/phrases within a large body of text.
Currently using 3 Nuget ...
0
votes
0
answers
54
views
My App in release mode fails the WACK (windows app cert kit) test due to ML.timeseries useage
Supported APIs
Error Found: The supported APIs test detected the following errors:
API K32EnumProcessModules in kernel32.dll is not supported for this application type. libiomp5md.dll calls this API.
...
1
vote
0
answers
157
views
Retrieving Clustered Datapoints and Finding Optimal Cluster Count in ML.NET
I'm delving into machine learning and am currently experimenting with multiclass classification in ML.NET.
Background:
I have a dataset containing financial data and I aim to infer a category from it....
0
votes
0
answers
1k
views
Using ML.NET for OCR
Can we use ML.NET for OCR using a pertained ONNX model file?
ML.NET does not support text recognition but it does offer the ability to run ONNX models. So I am assuming it is possible for OCR.
2
votes
0
answers
384
views
ML.NET for Predicting Next Words with Related Word
I'm working on a project using ML.NET to predict the next word in a sentence, and I've used n-gram and bagofwords techniques to create my transformed data. However, I'm facing a couple of issues with ...
1
vote
0
answers
322
views
MLNET to VOTT(active learning)
I have some problem with Visual Studio 2022 Model builder. As microsoft recommended the object detection model builder is VOTT. In VOTT it can label all the image pretty well. But about Active ...