-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
How to generate bbox, after the coremltools.predict(image) step of the coreml model #579
Comments
Hello @abhimanyu8713, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook 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. |
I'm having this issue as well. I've converted the model to CoreML using:
This gives me three multiarray outputs that are 1x3x13x13x6, 1x3x52x52x6 and 1x3x26x26x6. Ideally I would want the output to be (x1, y1, x2, y2, conf, cls). If I set,
|
Ya, I didn't set the flag to false, and had to do post processing on the prediction of the coreml model. And it worked |
@abhimanyu8713 , would you be able to provide some code snippets for how you have done the post-processing? |
Hi @hearables-pkinsella , all, There is some guidance here. Hope this will help you! |
Hi @hearables-pkinsella, you can refer this issue. Hope this helps you. |
@abhimanyu8713 were you able to get correct bounding boxes after post-processing? Did you test it on an iOS device ? |
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. |
Any update regarding coreml conversion. I'm getting an error when I set model.model[-1].export = True |
❔Question
Can someone guide me on how to generate bbox, after the coremltools.predict(image) step of the coreml model? What post processing needs to be done on the predicted values?
Additional context
Do I have to post process the predicted value using these lines:
Or are they included in the CoreML model.
The text was updated successfully, but these errors were encountered: