Open tearlant opened 6 months ago
Update: I was able to create a workaround, by breaking things into two back to back PredictionEngines, the first of which is a pipeline with some data manipulation, then the first engine is just a ResizeImages
and an ExtractImages
transform, whose type is a VectorType instead of an ImageType.
But this feels like unnecessary gymnastics. I'm not sure what I'm doing wrong.
System Information (please complete the following information):
Describe the bug There are a number of examples that use a PredictionEngine with an input type or output type that has a member of MLImage type, for example https://github.com/dotnet/machinelearning/issues/6886
However, my code is breaking when I call
This is the error that comes up![image](https://github.com/dotnet/machinelearning/assets/105062729/37455f84-8def-47b5-88f5-2bff0edc342d)
Here's the console output
I can make things work straight up by wrapping the data in a
IDataView
and calling.Transform()
, but that defeats the point of having aPredictionEngine