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

Why is there no ResizeImages method? #7210

Open
bbhxwl opened this issue Aug 5, 2024 · 3 comments
Open

Why is there no ResizeImages method? #7210

bbhxwl opened this issue Aug 5, 2024 · 3 comments
Labels
question Further information is requested untriaged New issue has not been triaged

Comments

@bbhxwl
Copy link

bbhxwl commented Aug 5, 2024

Why is there no ResizeImages method?

image
image

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged label Aug 5, 2024
@luisquintanilla
Copy link
Contributor

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 luisquintanilla added the question Further information is requested label Aug 27, 2024
@bbhxwl
Copy link
Author

bbhxwl commented Sep 5, 2024

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

@luisquintanilla
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants