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

Understanding Yolov8 Task Input and Output Formats in OnnxRuntime #28

Closed
FunJoo opened this issue Nov 27, 2023 · 1 comment
Closed

Understanding Yolov8 Task Input and Output Formats in OnnxRuntime #28

FunJoo opened this issue Nov 27, 2023 · 1 comment

Comments

@FunJoo
Copy link
Contributor

FunJoo commented Nov 27, 2023

Hello, author. Recently, while using your library for image processing, I've been exploring methods to improve performance. By reviewing code from others on GitHub, I found that using floating-point images and the Threshold method instead of iterating through pixels can indeed enhance speed. For example, OpenCVSharp supports this functionality. The Halcon library, which I use at work, also supports this feature.

So, I convert the image to Tensor<float> using Halcon, and after obtaining the result from OnnxRuntime, I use Halcon again to transform the Tensor<float> result back into a floating-point image for further processing. Following your source code, I successfully replaced ImageSharp with Halcon in the Detection task and achieved a significant performance improvement. However, I encountered several challenges when converting the Segmentation code.

Therefore, I would like to seek your advice on where I can learn about the Yolov8 task's input and output formats in OnnxRuntime. I aim to complete the replacement for the remaining tasks such as segmentation, pose estimation, and classification.

Once again, thank you for your open-source code.

@dme-compunet
Copy link
Owner

The place to understand the output formats of YOLOv8 is in the official repo: https://github.com/ultralytics/ultralytics it is scattered with some discussions and issues, focus there. the code of the current repo can also help you figure it out.

@FunJoo FunJoo closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants