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

How to use the output of a model converted to CoreML? #352

Closed
1 task done
Joao-Neves opened this issue Aug 7, 2023 · 4 comments
Closed
1 task done

How to use the output of a model converted to CoreML? #352

Joao-Neves opened this issue Aug 7, 2023 · 4 comments
Labels
question A HUB question that does not involve a bug

Comments

@Joao-Neves
Copy link

Search before asking

Question

Hello, I've trained a YOLOv8x model in the Hub and then converted it to CoreML.

When adding the CoreML model to Xcode it tells me that the output is a var_1365 that is a MultiArray : Float32 1 × 5 × 8400 array.
I was expecting a list of boxes or something similar.

How do I use the var_1365? Do I need to convert it to something else?

Thank you for your help 🙇.

Additional

No response

@Joao-Neves Joao-Neves added the question A HUB question that does not involve a bug label Aug 7, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

👋 Hello @Joao-Neves, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

@glenn-jocher
Copy link
Member

@Joao-Neves if you are using CoreML exports you probably want to set NMS=True, which will process all detections and only return actual objects seen. Then you can use Xcode to preview inference results etc.

Screenshot 2023-08-08 at 15 34 00

@Joao-Neves
Copy link
Author

@glenn-jocher thank you so much ❤️! That was it! I can get data I can work with now 😁!

@UltralyticsAssistant
Copy link
Member

I'm really glad to hear that your issue is resolved, @Joao-Neves! It's delightful to know that the solution worked for you. Remember, the successful application of your model is a testament to your hard work.

Moreover, the strides we make here are the culmination of the combined efforts of the YOLO and Ultralytics communities. If you have more questions or face any other issues in the future, don't hesitate to ask. Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A HUB question that does not involve a bug
Projects
None yet
Development

No branches or pull requests

4 participants