Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipeline fails to load when I convert my project to a class #4459

Closed
benquan opened this issue Nov 8, 2019 · 0 comments

Comments

@benquan
Copy link

@benquan benquan commented Nov 8, 2019

System information

  • OS version/distro:
    WIN10

  • .NET Version (eg., dotnet --info):
    ML.NET 1.4.0
    Framework 4.7.2

Issue

I have a full working console application using the framework. All access to ML.NET is in a separate class and I simply call on it. When I try to convert the project to a class DLL it starts showing: "System.IO.FileNotFoundException: Could not load file or assembly 'System.Drawing.Common".

  • What did you do?
    Try to convert to class DLL

  • What happened?
    "System.IO.FileNotFoundException: Could not load file or assembly 'System.Drawing.Common". Error

  • What did you expect?
    should work as the normal program.

Source code / logs

`
System.IO.FileNotFoundException: Could not load file or assembly 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.ML.Transforms.Image.ImageDataViewType..ctor(Int32 height, Int32 width)
at Microsoft.ML.Transforms.Image.ImageResizingEstimator.ColumnOptions..ctor(String name, Int32 imageWidth, Int32 imageHeight, String inputColumnName, ResizingKind resizing, Anchor anchor)
at Microsoft.ML.ImageEstimatorsCatalog.ResizeImages(TransformsCatalog catalog, String outputColumnName, Int32 imageWidth, Int32 imageHeight, String inputColumnName, ResizingKind resizing, Anchor cropAnchor)
at MLQuickID.TFModelScorer.LoadModel(String tsvFile, String inceptionPb) in \Mac\Home\Downloads\QuickID-winforms-test4\QuickID-winforms-test2\TFModelScorer.cs:line 67

=== Pre-bind state information ===
LOG: DisplayName = System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
(Fully-specified)
LOG: Appbase = file://Mac/Home/Downloads/QuickID-winforms-test4/client/bin/x64/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : Microsoft.ML.ImageAnalytics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.

LOG: This bind starts in default load context.
LOG: Using application configuration file: \Mac\Home\Downloads\QuickID-winforms-test4\client\bin\x64\Debug\client.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
LOG: Attempting download of new URL file://Mac/Home/Downloads/QuickID-winforms-test4/client/bin/x64/Debug/System.Drawing.Common.DLL.
LOG: Attempting download of new URL file://Mac/Home/Downloads/QuickID-winforms-test4/client/bin/x64/Debug/System.Drawing.Common/System.Drawing.Common.DLL.
LOG: Attempting download of new URL file://Mac/Home/Downloads/QuickID-winforms-test4/client/bin/x64/Debug/System.Drawing.Common.EXE.
LOG: Attempting download of new URL file://Mac/Home/Downloads/QuickID-winforms-test4/client/bin/x64/Debug/System.Drawing.Common/System.Drawing.Common.EXE.
`

Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.

@benquan benquan closed this Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.