Skip to content

Unable to load DLL 'tensorflow' or on of his dependencies #1

@ChristianBrand22

Description

@ChristianBrand22

Hello Mark,
at the ObjectDetection project I get an error message when I try "dotnet run" and find an solution.

System.DllNotFoundException: Unable to load DLL 'tensorflow' or one of its dependencies: Das angegebene Modul wurde nicht gefunden. (0x8007007E).

Issue_ObjectDetection_TensorFlow_01

Open the project with Visual Studio --> then register Project --> NuGet Package ....

Issue_ObjectDetection_TensorFlow_02_VS_2019

I found an solution
@dotnet/machinelearning#4112

but I only do the following steps from there and then it work. I search and add the following packages in Visual Studio and set to x64.
"Microsoft.Azure.Functions.Extensions"
"Microsoft.Extensions.DependencyInjection"
"Microsoft.Extensions.ML
"Microsoft.ML" Version
"Microsoft.ML.ImageAnalytics"
"Microsoft.ML.Vision"
"Microsoft.NET.Sdk.Functions"
"SciSharp.TensorFlow.Redist"
2 change To X64 (Because tensorflow can't run on x86)

How it looks like after added the packages ...

Issue_ObjectDetection_TensorFlow_02b_VS_2019_added_packages

Now it works :-)

Issue_ObjectDetection_TensorFlow_03_fixed

Regards
Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions