dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
9.02k stars 1.88k forks source link

Unable to find an entry point named TF_StringEncodedSize in DLL tensorflow #6404

Closed horczech closed 1 year ago

horczech commented 1 year ago

System Information:

Describe the bug When I try to learn MobilenetV2 using the mlContext.MulticlassClassification.Trainers .ImageClassification API on ML.NET version 1.7.1 and Redist version 2.7.0 I get the following error: System.EntryPointNotFoundException: 'Unable to find an entry point named 'TF_StringEncodedSize' in DLL 'tensorflow'.'

To Reproduce Steps to reproduce the behavior: Try to learn MobilenetV2 using the SciSharp.TensorFlow.Redist v2.7.0 or run the code on my GIT

Expected behavior The model will get successfully trained.

Screenshot image

zdz72113 commented 1 year ago

you can try change the SciSharp.TensorFlow.Redist to 2.3.1,ref to https://github.com/dotnet/machinelearning/issues/6040

horczech commented 1 year ago

@zdz72113 I know, but that's only a temporary fix, not a solution.

michaelgsharp commented 1 year ago

@horczech right now we only support 2.3.1. We are tracking the upgrade issue here https://github.com/dotnet/machinelearning/issues/6028. Once the upgrade has been completed the version you are using will work fine. Closing this for now as we are tracking elsewhere.