You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System Information (please complete the following information):
OS & Version: Windows 10
ML.NET Version: ML.NET v1.6
.NET Version: .NET Core 3.1, .NET 5.0
Describe the bug
We have approx 2MB trained ML model for binary classification. When we are loading model it takes to load it 2s in average on .NET 5. When we run on .NET Framework, it takes only 0,5s.
To Reproduce
Steps to reproduce the behavior:
Load bigger ML model with method "mlContext.Model.Load()"
Expected behavior
Model loading time should be similar like in .NET Framework
Screenshots, Code, Sample Projects
private static PredictionEngine<ModelInput, ModelOutput> GetPredEngine()
{
MLContext mlContext = new MLContext();
// Load model & create prediction engine
ITransformer mlModel = mlContext.Model.Load(MLNetModelPath, out var modelInputSchema);
var predEngine = mlContext.Model.CreatePredictionEngine<ModelInput, ModelOutput>(mlModel);
return predEngine;
}
Additional context
When I add BufferedStream for loading from DeflateStream in BinaryLoader, it looks the issue is solved. BinaryLoader commit
I could do a pull request.
The text was updated successfully, but these errors were encountered:
System Information (please complete the following information):
Describe the bug
We have approx 2MB trained ML model for binary classification. When we are loading model it takes to load it 2s in average on .NET 5. When we run on .NET Framework, it takes only 0,5s.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Model loading time should be similar like in .NET Framework
Screenshots, Code, Sample Projects
Additional context
When I add BufferedStream for loading from DeflateStream in BinaryLoader, it looks the issue is solved.
BinaryLoader commit
I could do a pull request.
The text was updated successfully, but these errors were encountered: