dotnet / machinelearning-modelbuilder

Simple UI tool to build custom machine learning models.
Creative Commons Attribution 4.0 International
264 stars 56 forks source link

Tensorflow exception triggered while loading model. #1413

Closed djmquestorsoftware closed 3 years ago

djmquestorsoftware commented 3 years ago

Model Builder Version: Model Builder Preview 16.3.0.2056001 Visual Studion Version: 16.10.0 Preview 2.0 Bug description Training fails. I worked one time when I used the builder to learn how to create a image classifier. The classifier I built also also worked. But for some reason, neither works now.

Steps to Reproduce

  1. Create a console app with Net 3.1 or Net 5.0 . Both fail.
  2. Add Machine Learning.
  3. Image Classification
  4. Local CPU
  5. Train . . . fails immediately with error window summary of log-file entry.

Expected Experience I expected the app to create the Image Classifier Model zip-file.

Actual Experience As described - Model Builder fails.

Additional Context Microsoft Visual Studio Community 2019 Preview Version 16.10.0 Preview 2.0 VisualStudio.16.Preview/16.10.0-pre.2.0+31213.239 Microsoft .NET Framework Version 4.8.04084

Installed Version: Community

Visual C++ 2019 00435-60000-00000-AA448 Microsoft Visual C++ 2019

ASP.NET and Web Tools 2019 16.10.341.63941 ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0 16.10.341.63941 Azure App Service Tools v3.0.0

C# Tools 3.10.0-2.21203.6+5f00f4d6ffb242a337e21a196aab0593891e430e C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter 16.10.21081.1 Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.40405.1

Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 2.1.113+g422d40002e.RR Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers 1.2 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package

NuGet Package Manager 5.10.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info

Python 16.10.21081.1 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Conda support 16.10.21081.1 Conda support for Python projects.

Python - Django support 16.10.21081.1 Provides templates and integration for the Django web framework.

Python - IronPython support 16.10.21081.1 Provides templates and integration for IronPython-based projects.

Python - Profiling support 16.10.21081.1 Profiling support for Python projects.

Razor (ASP.NET Core) 16.1.0.2120507+b9076c2c2098fb1f4bac21342cff9a07bcbbc277 Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 16.0.62103.10080 Microsoft SQL Server Data Tools Microsoft Visual Studio Community 2019 Preview Version 16.10.0 Preview 2.0

OS Name Microsoft Windows 10 Pro Version 10.0.19043 Build 19043 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name QUESTOR-INSPIRO System Manufacturer Dell Inc. System Model Inspiron 7790 AIO System Type x64-based PC System SKU 0954 Processor Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz, 2304 Mhz, 4 Core(s), 8 Logical Processor(s) BIOS Version/Date Dell Inc. 1.8.0, 12/9/2020 SMBIOS Version 3.2 Embedded Controller Version 255.255 BIOS Mode UEFI BaseBoard Manufacturer Dell Inc. BaseBoard Product 0GDJXY BaseBoard Version A00 Platform Role Desktop Secure Boot State On PCR7 Configuration Elevation Required to View Windows Directory C:\WINDOWS System Directory C:\WINDOWS\system32 Boot Device \Device\HarddiskVolume4 Locale United States Hardware Abstraction Layer Version = "10.0.19041.906" User Name QUESTOR-INSPIRO\Questor Time Zone Pacific Daylight Time Installed Physical Memory (RAM) 32.0 GB Total Physical Memory 31.8 GB Available Physical Memory 22.5 GB Total Virtual Memory 39.8 GB Available Virtual Memory 29.9 GB Page File Space 8.00 GB Page File C:\pagefile.sys Kernel DMA Protection Not Available Virtualization-based security Not enabled Device Encryption Support Elevation Required to View Hyper-V - VM Monitor Mode Extensions Yes Hyper-V - Second Level Address Translation Extensions Yes Hyper-V - Virtualization Enabled in Firmware Yes Hyper-V - Data Execution Protection Yes

TypeScript Tools 16.0.30324.2001 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 3.10.0-2.21203.6+5f00f4d6ffb242a337e21a196aab0593891e430e Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 16.10.0-beta.21201.8+e3f9d330035af18d6350eed6f787de114119c537 Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions 1.0 View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for CMake 1.0 Visual Studio Tools for CMake

Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers

2021-04-20 15:18:12.3304 DEBUG Set log file path to C:\Users\Questor\AppData\Local\Temp\MLVSTools\logs\c18c7b42-9c97-46e6-a27a-94868ab307c1.txt (Microsoft.ML.ModelBuilder.Utils.Logger.Debug) 2021-04-20 15:18:30.4079 INFO C:\Shoreline Image Classifiers\Z00\Training Images (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.5093 INFO | Trainer MicroAccuracy MacroAccuracy Duration #Iteration | (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.6068 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.6776 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7159 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7159 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0030333. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7159 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001709. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7518 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001295. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001810. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001488. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7644 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001911. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001504. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001403. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001496. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7754 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7919 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7919 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.7919 INFO Tensorflow exception triggered while loading model. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 15:18:34.8218 TRACE Disposing AutoMLService Client (Microsoft.ML.ModelBuilder.AutoMLServiceFactory+AutoMLServiceProxy.Dispose) 2021-04-20 15:18:34.8218 DEBUG Tensorflow exception triggered while loading model. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.AutoMLExperiment3.<ExecuteAsync>d__21.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/AutoMLExperiment.cs:line 107 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ML.ModelBuilder.AutoMLEngine.<StartTrainingAsync>d__26.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 150 (Microsoft.ML.ModelBuilder.Utils.Logger.Debug) 2021-04-20 16:14:37.4758 INFO | Trainer MicroAccuracy MacroAccuracy Duration #Iteration | (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4818 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4818 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4818 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4818 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0004466. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4818 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001683. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001445. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.4980 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001547. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001499. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001301. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001354. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5099 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001046. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel finished. Elapsed 00:00:00.0001418. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO [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: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadMetaGraph(String path) at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, Boolean metaGraph) --- End of inner exception stack trace --- at Microsoft.ML.TensorFlow.TensorFlowUtils.LoadTFSessionByModelFilePath(IExceptionContext ectx, String modelFile, 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.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String groupId, String labelColumn, IMetricsAgent1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, IChannel logger) (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 INFO Tensorflow exception triggered while loading model. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 TRACE Disposing AutoMLService Client (Microsoft.ML.ModelBuilder.AutoMLServiceFactory+AutoMLServiceProxy.Dispose) 2021-04-20 16:14:37.5247 INFO [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2021-04-20 16:14:37.5247 DEBUG Tensorflow exception triggered while loading model. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.AutoMLExperiment3.d_21.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/AutoMLExperiment.cs:line 107 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ML.ModelBuilder.AutoMLEngine.d_26.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 150 (Microsoft.ML.ModelBuilder.Utils.Logger.Debug) 2021-04-20 16:21:52.6415 DEBUG Open Log FileC:\Users\Questor\AppData\Local\Temp\MLVSTools\logs\c18c7b42-9c97-46e6-a27a-94868ab307c1.txt (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)

djmquestorsoftware commented 3 years ago

Forgot to add the sample images. Z00.zip

LittleLittleCloud commented 3 years ago

image Looks like somehow tensorflow.dll is not found

Can you go to the following path $(Your_VS_Install_Path)\Common7\IDE\Extensions\Microsoft\ModelBuilder\AutoMLService folder and confirm that tensorflow.dll is there? If not, usually a re-install should fix the problem.

djmquestorsoftware commented 3 years ago

Thank you for the prompt reply.

The folder: ..\Common7\IDE\Extensions\Microsoft\ModelBuilder is missing.

I found a tensorflow.dll in ..\IDE\CommonExtensions\Microsoft\ModelBuilder...

Do I copy the ModelBuilder folder to the ..\Extensions\Microsoft\ folder?

DJM Questor Software

David. On Wednesday, April 21, 2021, 09:43:37 AM PDT, Xiaoyun Zhang @.***> wrote:

Looks like somehow tensorflow.dll is not found

Can you go to the following path $(Your_VS_Install_Path)\Common7\IDE\Extensions\Microsoft\ModelBuilder\AutoMLService folder and confirm that tensorflow.dll is there? If not, usually a re-install should fix the problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

djmquestorsoftware commented 3 years ago

Even though the Visual Studio Installer displayed the ML.Net ModelBuilder (Preview) check box as checked, the builder was not listed in the "Installation details" panel. I unchecked and rechecked the box and the builder became listed but the missing folder still does not appear.

When I download and try to install the model builder, the installer says it's already installed.

DJM Questor Software

David On Wednesday, April 21, 2021, 09:43:37 AM PDT, Xiaoyun Zhang @.***> wrote:

Looks like somehow tensorflow.dll is not found

Can you go to the following path $(Your_VS_Install_Path)\Common7\IDE\Extensions\Microsoft\ModelBuilder\AutoMLService folder and confirm that tensorflow.dll is there? If not, usually a re-install should fix the problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LittleLittleCloud commented 3 years ago

Thank you for the prompt reply. The folder: ..\Common7\IDE\Extensions\Microsoft\ModelBuilder is missing. I found a tensorflow.dll in ..\IDE\CommonExtensions\Microsoft\ModelBuilder... Do I copy the ModelBuilder folder to the ..\Extensions\Microsoft\ folder? DJM Questor Software David. On Wednesday, April 21, 2021, 09:43:37 AM PDT, Xiaoyun Zhang @.***> wrote: Looks like somehow tensorflow.dll is not found Can you go to the following path $(Your_VS_Install_Path)\Common7\IDE\Extensions\Microsoft\ModelBuilder\AutoMLService folder and confirm that tensorflow.dll is there? If not, usually a re-install should fix the problem. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

No you don't need to, CommonExtension is the right place. Do you have other tensorflow distribution binary installed on your machine? For example, those installed from pip install tensorflow or conda install tensorflow?

djmquestorsoftware commented 3 years ago

I found the follow tensorflow.dll files:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\ModelBuilder\AutoMLService\tensorflow.dll C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE\CommonExtensions\Microsoft\ModelBuilder\AutoMLService\tensorflow.dll C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE\Extensions\Microsoft\ModelBuilder.GPU\AutoMLServiceGpu\tensorflow.dll C:\Users\Questor.dotnet\tools.store\mlnet\16.2.0\mlnet\16.2.0\tools\netcoreapp3.1\any\runtimes\win-x64\native\tensorflow.dll C:\Users\Questor.nuget\packages\microsoft.ml.tensorflow.redist\0.14.0\runtimes\win-x64\native\tensorflow.dll C:\Users\Questor.nuget\packages\scisharp.tensorflow.redist\1.14.1\runtimes\win-x64\native\tensorflow.dll C:\Users\Questor.nuget\packages\scisharp.tensorflow.redist\2.3.1\runtimes\win-x64\native\tensorflow.dll C:\Users\Questor.nuget\packages\scisharp.tensorflow.redist\2.4.1\runtimes\win-x64\native\tensorflow.dll

Thank you.

DJM Questor Software

David.

 On Thursday, April 22, 2021, 10:42:05 AM PDT, Xiaoyun Zhang ***@***.***> wrote:  

Thank you for the prompt reply. The folder: ..\Common7\IDE\Extensions\Microsoft\ModelBuilder is missing. I found a tensorflow.dll in ..\IDE\CommonExtensions\Microsoft\ModelBuilder... Do I copy the ModelBuilder folder to the ..\Extensions\Microsoft\ folder? DJM Questor Software David. On Wednesday, April 21, 2021, 09:43:37 AM PDT, Xiaoyun Zhang @.***> wrote: Looks like somehow tensorflow.dll is not found Can you go to the following path $(Your_VS_Install_Path)\Common7\IDE\Extensions\Microsoft\ModelBuilder\AutoMLService folder and confirm that tensorflow.dll is there? If not, usually a re-install should fix the problem. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

No you don't need to, CommonExtension is the right place. Do you have other tensorflow distribution binary installed on your machine? For example, those installed from pip install tensorflow or conda install tensorflow?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

djmquestorsoftware commented 3 years ago

Attached is a listing of 'tensorflow..' files.

DJM Questor Software

David. On Thursday, April 22, 2021, 10:42:05 AM PDT, Xiaoyun Zhang @.***> wrote:

Thank you for the prompt reply. The folder: ..\Common7\IDE\Extensions\Microsoft\ModelBuilder is missing. I found a tensorflow.dll in ..\IDE\CommonExtensions\Microsoft\ModelBuilder... Do I copy the ModelBuilder folder to the ..\Extensions\Microsoft\ folder? DJM Questor Software David. On Wednesday, April 21, 2021, 09:43:37 AM PDT, Xiaoyun Zhang @.***> wrote: Looks like somehow tensorflow.dll is not found Can you go to the following path $(Your_VS_Install_Path)\Common7\IDE\Extensions\Microsoft\ModelBuilder\AutoMLService folder and confirm that tensorflow.dll is there? If not, usually a re-install should fix the problem. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

No you don't need to, CommonExtension is the right place. Do you have other tensorflow distribution binary installed on your machine? For example, those installed from pip install tensorflow or conda install tensorflow?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LittleLittleCloud commented 3 years ago

Hi @djmquestorsoftware

Thanks for the response, it also seems that you have mlnet.cli installed. Can you try using that cli for image training and see if it works so I can rule out tensorflow binary problem.

LittleLittleCloud commented 3 years ago

@Oceania2018 It looks quite similar to this issue in tensorflow.net https://github.com/SciSharp/TensorFlow.NET/issues/144

Do you have any idea what causes it

djmquestorsoftware commented 3 years ago

Sorry, The MLNet.CLI does not work either. I reported this on a different thread.

Re: [dotnet/command-line-api] Tensorflow exception triggered while loading model. (#1259) Apr 22 at 3:15 AM PrintRaw message

elgonzo @.> To: dotnet/command-line-api @.> Cc: djmquestorsoftware @.>,Author @.> You probably just forgot in the hectic of the work day after reposting your issue in the correct project, but it would be nice if you would quickly close this misplaced issue report here. (You as the issue creator should see a "Close issue" button at the bottom of the topic when viewed in the Github web interface.) :-)

DJM Questor Software On Friday, April 23, 2021, 10:06:36 AM PDT, Xiaoyun Zhang @.***> wrote:

Hi @djmquestorsoftware

Thanks for the response, it also seems that you have mlnet.cli installed. Can you try using that cli for image training and see if it works so I can rule out tensorflow binary problem.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

djmquestorsoftware commented 3 years ago

The comment "It seems that on some processor some Tensorflow.dll does not work, because it lacks of AVX support" I believe does not apply to my case because TensorFlow did work before I encountered the current problem.

The problem might have been caused by disk errors. When this problem started, I ran the virus checker offline and no viruses were found. I ran ChkDsk /R /F on my C and D drives and many errors where found and fixed. However, I do not know what was found or what was fixed and I do not know what "fixed" means. However, after the ChkDsk, I re-installed tensorflow per MS documentation for the Model Builder. Also, the MLNet CLI instruction do not require downloading and installing anything. I just had to check a couple of ML Net related boxes in Visual Studio and in Visual Studio Installer.

DJM Questor Software

David.

 On Friday, April 23, 2021, 10:10:12 AM PDT, Xiaoyun Zhang ***@***.***> wrote:  

@Oceania2018 It looks quite similar to this issue in tensorflow.net SciSharp/TensorFlow.NET#144

Do you have any idea what causes it

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

LittleLittleCloud commented 3 years ago

@djmquestorsoftware We do receive a few tensorflow error reported on some quite old CPU without AVX support but your CPU is quite new (by quite new I mean it's after 2010) so yes you are right, it shouldn't be AVX instruction missing problems.

I am not quite sure why disk error might be the cause but I can start a thread with Haiping to keep investigating in. In the meanwhile, please let us know if running ChkDsk cmd fix the tensorflow error!

djmquestorsoftware commented 3 years ago

Thank you for your attention. You can close this for me.

I have removed all of the Visual Studio and NuGet stuff. I have checked for malicious code: None found. I have run ChkDsk twice and found no more errors. I am now re-installing Visual Studio 2019 (for my regular apps) and 2019 Preview (for the ML stuff), the mlnet CLI, and the ML.Net Model Builder. If something was corrupted, hopefully this re-install will correct the problem.

DJM Questor Software

David.

 On Monday, April 26, 2021, 10:45:00 AM PDT, Xiaoyun Zhang ***@***.***> wrote:  

@djmquestorsoftware We do receive a few tensorflow error reported on some quite old CPU without AVX support but your CPU is quite new (by quite new I mean it's after 2010) so yes you are right, it shouldn't be AVX instruction missing problems.

I am not quite sure why disk error might be the cause but I can start a thread with Haiping to keep investigating in. In the meanwhile, please let us know if running ChkDsk cmd fix the tensorflow error!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

beccamc commented 3 years ago

Per David's comment above, I'm closing this. Thanks!