dotnet / dotnet/machinelearning-samples

Models deployed in Windows 2019 server gets stuck in model.load

Open
#1,021 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
4.7k
Forks
2.7k
Avg merge
2d 22h
Merged PRs (30d)
1

Description

Hi ML.net Team,
I have an issue reported from another customer reported here on Azure support channel by Mistake.
I suggested to report issue here, but it seems customer has not reported yet.

Customer is complaining that after upgrading to windows 19 server (Does not work) from windows 12 server(works)
Their model deployment is not working and gets an exception in middle while loading the model.

**Errors**
Error: Tensorflow exception triggered while loading model. at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
at Microsoft.ML.TensorFlow.TensorFlowUtils.GetSession(IHostEnvironment env, String modelPath, Boolean metaGraph)
at Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
at Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
at Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
at Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
at Microsoft.ML.Trainers.TrainerEstimatorBase`2.Fit(IDataView input)
at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
at TestImageClassificationCore.ImageClassificationClass.TrainImages(XmlDocument qualityXML) in C:\Users\1012377\source\repos\TestImageClassificationCore\ImageClassificationClass.cs:line 359

ITransformer trainedModel = trainingPipeline.Fit(trainSet)

Could you please share any insights or remedials for above issue

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.