-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Openvino Usage #1193
Comments
Hello @I3orn2FLY, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook , Docker Image, and Google Cloud Quickstart Guide for example environments. If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
For more information please visit https://www.ultralytics.com. |
Hi guys, I managed to decode the output of the model. First of all, look at the yolo.py, Detect class where the forward function is written, it seems like when the model is converted to ONNX anything which is covered in if statements are not exported, therefore, you will need to rewrite that part of the code in your project as well. Here is the if statement, which you should implement in your project: Line 47 in bd5cfff
|
@I3orn2FLY, do you have a good understanding of what the code is doing inside of that if statement? I'm working on doing this for coreml, but I'm having a hard time understanding what the lines inside the if statement are doing in order to convert them to coreml. Do you have any insight on this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello, you can get an executable cpp code here: https://github.com/fb029ed/yolov5_cpp_openvino, |
@I3orn2FLY @ALMerrill @ZhixiongSun good news 😃! Your original issue may now be fixed ✅ in PR #6057. This PR adds native YOLOv5 OpenVINO export: python export.py --weights yolov5s.pt --include openvino # export to OpenVINO To receive this update:
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀! |
Does anyone know how to use it in OpenVINO toolkit c++?❔
Additional context
I converted yolov5 to ONNX using export.py, then I cloned the OpenVINO toolkit and installed an inference engine. Then I got the IR files by using mo.py in the cloned OpenVINO toolkit. I managed to run the IR model somehow by using sample codes in OpenVINO. However, now I do not know how to decode the output of the model. Is the procedure the same as in samples of yolov3? Does someone have a script in c++? If yes, I would be more than happy for clues.
The text was updated successfully, but these errors were encountered: