Closed fuine6 closed 5 years ago
@fuine6 - In the current preview version of the 'mlContext.Model.ImageClassification' API, the only way to train/score a model is by providing image paths.
That's a know limitation in the current Preview of the new API. Here's the issue at the ML.NET repo: https://github.com/dotnet/machinelearning/issues/4153
Please, provide your feedback in that issue at the ML.NET so the team can validate the importance of the scenario with your additional feedback.
Being able to directly provide in-memory images is a priority for the next version. I agree this is "a must" to have asap for this new high level API, currently in Preview.
Thanks for your feedback. 👍
Closing as this support for in-memory images has been added.
According to past examples, I have a working code, and I can load image from MemoryStream.
Now I try to use this example with the following code.
I got a exception.
Can I load the image from MemoryStream?