Skip to content

Error Executing Graph with ImageLoader #792

Closed
@zyw400

Description

@zyw400

System information

  • OS version/distro: windows
  • .NET Version (eg., dotnet --info): latest master branch

Issue

When executing a graph generated with ImageLoader, bombed with an error:

[8/30/2018 5:06:37 PM Error] [xUnit.net 00:00:12.4271461] Microsoft.ML.Runtime.RunTests.TestEntryPoints.EntryPointExecGraphCommand [FAIL]
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4294784] System.FormatException : One of the identified items was in an invalid format.
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4311870] Stack Trace:
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4325847] D:\mldotnet0823\machinelearning\src\Microsoft.ML.Core\Utilities\Contracts.cs(706,0): at Microsoft.ML.Runtime.Contracts.CheckDecode(IExceptionContext ctx, Boolean f)
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4330332] D:\mldotnet0823\machinelearning\src\Microsoft.ML.Data\Model\ModelLoadContext.cs(153,0): at Microsoft.ML.Runtime.Model.ModelLoadContext.LoadNonEmptyString()
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4331477] D:\mldotnet0823\machinelearning\src\Microsoft.ML.Data\Transforms\TransformBase.cs(354,0): at Microsoft.ML.Runtime.Data.OneToOneTransformBase.Bindings.Create(OneToOneTransformBase parent, ModelLoadContext ctx, ISchema input, ITransposeSchema transInput, Func2 testType) [8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4332460] D:\mldotnet0823\machinelearning\src\Microsoft.ML.Data\Transforms\TransformBase.cs(508,0): at Microsoft.ML.Runtime.Data.OneToOneTransformBase..ctor(IHost host, ModelLoadContext ctx, IDataView input, Func2 testType)
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4333372] D:\mldotnet0823\machinelearning\src\Microsoft.ML.ImageAnalytics\ImageLoaderTransform.cs(92,0): at Microsoft.ML.Runtime.ImageAnalytics.ImageLoaderTransform..ctor(IHost host, ModelLoadContext ctx, IDataView input)
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4334287] D:\mldotnet0823\machinelearning\src\Microsoft.ML.ImageAnalytics\ImageLoaderTransform.cs(110,0): at Microsoft.ML.Runtime.ImageAnalytics.ImageLoaderTransform.<>c__DisplayClass11_0.b__0(IChannel ch)
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4335158] D:\mldotnet0823\machinelearning\src\Microsoft.ML.Core\Data\IHostEnvironment.cs(232,0): at Microsoft.ML.Runtime.HostExtensions.Apply[T](IHost host, String channelName, Func`2 func)
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4336053] D:\mldotnet0823\machinelearning\src\Microsoft.ML.ImageAnalytics\ImageLoaderTransform.cs(110,0): at Microsoft.ML.Runtime.ImageAnalytics.ImageLoaderTransform.Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4349911] Output:
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4350922] Test EntryPointExecGraphCommand: aborted: passed
[8/30/2018 5:06:37 PM Informational] [xUnit.net 00:00:12.4543727] Finished: Microsoft.ML.Core.Tests

Source code / logs

Please use any random images for testing and modify the test.txt to test.csv.

test.txt
image_graph.txt

Activity

added this to the 0918 milestone on Sep 4, 2018
montebhoover

montebhoover commented on Sep 13, 2018

@montebhoover
Contributor

Confirmed that this does not repro as of commit 2c0bb21. I believe this was fixed as a side effect of #753 (Image transforms become Estimators).

ghost locked as resolved and limited conversation to collaborators on Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @shauheen@ganik@zyw400@montebhoover

      Issue actions

        Error Executing Graph with ImageLoader · Issue #792 · dotnet/machinelearning