machinelearning: ImageClassificationTrainer can't load model
System information
- Windows 10 Pro
- .NET 4.8 and .NET Core 3.1:
- Memory 12GB
- Processor Intel Core i7 CPU 950 @ 3.07GHz
Issue
- Tried to train an image classification using the Model Builder.
Steps: Create a project. Add a Machine Learning through solution explorer, then in the ML.NET Model Builder:
- Scenario -> Image Classification
- Data -> A folder with around 8.000 images (.png) separated in 8 folders/categories.
- Train -> Start Training
It will result in a popup (image attached) saying “Model Builder Error”.

> Output/log from Machine Learning output:
> | Trainer MicroAccuracy MacroAccuracy Duration #Iteration |
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0003974.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0004556.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0003859.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0003999.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0003329.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0003310.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0003954.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0004090.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0003738.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0004048.
> [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed
> [Source=AutoML, Kind=Error] Pipeline crashed: xf=ValueToKeyMapping{ col=Label:Label} xf=RawByteImageLoading{ col=ImageSource_featurized:ImageSource imageFolder=} xf=ColumnCopying{ col=Features:ImageSource_featurized} tr=ImageClassification{} xf=KeyToValueMapping{ col=PredictedLabel:PredictedLabel} cache=- . Exception: System.FormatException: Tensorflow exception triggered while loading model. ---> System.DllNotFoundException: Não é possível carregar a DLL 'tensorflow': Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou. (Exceção de HRESULT: 0x8007045A)
> em Tensorflow.c_api.TF_NewGraph()
> em Tensorflow.Graph..ctor()
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path)
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> --- Fim do rastreamento de pilha de exceções internas ---
> em Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph)
> em Microsoft.ML.Vision.ImageClassificationTrainer.LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch)
> em Microsoft.ML.Vision.ImageClassificationTrainer.InitializeTrainingGraph(IDataView input)
> em Microsoft.ML.Vision.ImageClassificationTrainer.TrainModelCore(TrainContext trainContext)
> em Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
> em Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger)
> [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started
> Tensorflow exception triggered while loading model.
>
>
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (14 by maintainers)
Hey @codemzs any updates on this issue?