machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

Why is there no ResizeImages method?

Open bbhxwl opened this issue 1 year ago • 3 comments

Why is there no ResizeImages method?

image image

bbhxwl avatar Aug 05 '24 10:08 bbhxwl

Hi @bbhxwl,

Can you clarify your question? I assume you mean why doesn't Microsoft.ML.OnnxTransformer or OnnxRuntime packages have a ResizeImages transform.

If so, it's a data transformation that's not specific to ONNX. You can find that as part of the Microsoft.ML.ImageAnalytics package.

https://learn.microsoft.com/dotnet/api/microsoft.ml.imageestimatorscatalog.resizeimages?view=ml-dotnet

luisquintanilla avatar Aug 27 '24 19:08 luisquintanilla

Hi @bbhxwl,

Can you clarify your question? I assume you mean why doesn't Microsoft.ML.OnnxTransformer or OnnxRuntime packages have a ResizeImages transform.

If so, it's a data transformation that's not specific to ONNX. You can find that as part of the Microsoft.ML.ImageAnalytics package.

https://learn.microsoft.com/dotnet/api/microsoft.ml.imageestimatorscatalog.resizeimages?view=ml-dotnet

Stream stream = new FileStream("e7b1a568c53245928a5146efd401c5e5.jpg", FileMode.Open);
Yolo a = new Yolo("yolov5x.onnx");
var list=a.Prediction(stream);

There seems to be an issue with my post-processing image. Can you guide me?

https://github.com/bbhxwl/AiHelper

bbhxwl avatar Sep 05 '24 06:09 bbhxwl

Hi @bbhxwl,

I would encourage you to take a look at this tutorial. It's using an older version of YOLO, but the general concepts are similar.

https://learn.microsoft.com/dotnet/machine-learning/tutorials/object-detection-onnx

luisquintanilla avatar Sep 05 '24 13:09 luisquintanilla