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

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

Closed
abgoswam opened this issue Apr 1, 2019 · 0 comments · Fixed by #3263
Closed

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

abgoswam opened this issue Apr 1, 2019 · 0 comments · Fixed by #3263
Assignees
Labels
bug Something isn't working P0 Priority of the issue for triage purpose: IMPORTANT, needs to be fixed right away.

Comments

@abgoswam
Copy link
Member

abgoswam commented Apr 1, 2019

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

@wschin wschin assigned wschin and unassigned wschin Apr 2, 2019
@wschin wschin added the bug Something isn't working label Apr 2, 2019
@wschin wschin self-assigned this Apr 2, 2019
@wschin wschin added the P0 Priority of the issue for triage purpose: IMPORTANT, needs to be fixed right away. label May 21, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working P0 Priority of the issue for triage purpose: IMPORTANT, needs to be fixed right away.
Projects
None yet
2 participants