Skip to content

Schema comprehension fails for type System.Drawing.Bitmap #3162

@abgoswam

Description

@abgoswam

Several of the image transforms in ML.NET produce intermediate columns of type System.Drawing.Bitmap

var pipeline = mlContext.Transforms.LoadImages("ImageObject", imagesFolder, "ImagePath")
.Append(mlContext.Transforms.ConvertToGrayscale("Grayscale", "ImageObject"));
var transformedData = pipeline.Fit(data).Transform(data);

If we try to use schema comprehension to map some intermediate data (e.g. transformedData) to an IEnumerable, we hit an exception when dealing with a column of type System.Drawing.Bitmap

Error: Unhandled Exception: System.ArgumentOutOfRangeException: Could not determine an IDataView type for member ImageObject

@Ivanidzo4ka

Metadata

Metadata

Assignees

Labels

P0Priority of the issue for triage purpose: IMPORTANT, needs to be fixed right away.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions