-
Notifications
You must be signed in to change notification settings - Fork 61
Description
System Information (please complete the following information):
- Model Builder Version (available in Manage Extensions dialog): 16.9.1.2152802
- Microsoft Visual Studio Enterprise 2019: 16.11.5
Describe the bug
- On which step of the process did you run into an issue: Object detection>Consume page: Add WebAPI project to solution
To Reproduce
Steps to reproduce the behavior:
- Select Create a new project from the Visual Studio 2019 start window;
- Choose the C# Console App (.NET Core) project template with .Net 5.0;
- Add model builder by right click on the project;
- Select Object detection to complete training;
- Navigate to Consume page, add WebAPI to solution, prompt Model Builder Error "Could not find input column 'ImageSource' Parameter name: inputSchema".
Expected behavior
No Error when adding projects to solution.
Error message
at Microsoft.ML.Data.OneToOneTransformerBase.CheckInput(DataViewSchema inputSchema, Int32 col, Int32& srcCol)
at Microsoft.ML.Data.OneToOneTransformerBase.OneToOneMapperBase..ctor(IHost host, OneToOneTransformerBase parent, DataViewSchema inputSchema)
at Microsoft.ML.Transforms.Image.ImageResizingTransformer.Mapper..ctor(ImageResizingTransformer parent, DataViewSchema inputSchema)
at Microsoft.ML.Transforms.Image.ImageResizingTransformer.MakeRowMapper(DataViewSchema schema)
at Microsoft.ML.Data.RowToRowTransformerBase.GetOutputSchema(DataViewSchema inputSchema)
at Microsoft.ML.Data.TransformerChain1.GetOutputSchema(DataViewSchema inputSchema) at Microsoft.ML.ModelBuilder.AutoMLService.ServiceFactory.CodeGeneratorService.CreateWebApiProjectCodesAsync(TrainingConfiguration configuration, Dictionary2 sampleData, String sampleProjectName, String modelpath, String modelFileName, String className, ColumnDataKind labelColumnDataKind, String targetFramework, String[] labels, String pipeline, Boolean isAzureArtifact, Boolean isDEV17, CancellationToken ct) in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/ServiceFactory/CodeGeneratorService.cs:line 150 at StreamJsonRpc.JsonRpc.d__1391.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at Microsoft.ML.ModelBuilder.ToolWindows.ConsumeViewModel.d__77.MoveNext()
