-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Custom Model export for simulation app #65
Comments
👋 Hello @bibekdhakal, thank you for opening this
👏 Thank you for mentioning that you managed to import the
Feel free to update this issue with any additional info, and please ensure you've checked similar issues to avoid duplicates. An Ultralytics engineer will review your issue soon to provide further assistance. Thank you for contributing and helping us improve! 🤖✨ |
@bibekdhakal ensure that your input image dimensions match those used during training and that the model's input and output specifications align with your application requirements. Additionally, verify that the class labels are correctly mapped in your application. If the issue persists, try testing the model with a simple script to confirm its functionality outside the app environment. |
@bibekdhakal
|
Do we need a specific output format to detect the object using the same code base? I tried importing my custom model to the application and was able to import the .mlpackage as well, but unable to detect anything.
Model conversion
from ultralytics import YOLO
import coremltools as ct
import os
model = YOLO('./corrosionModel.pt')
model.export(format="coreml", data="./data.data.yaml",)
Initially, I had an issue referring to the class label missing, but I fixed the issue by using names from additional metadata as class labels. I was able to build the application, but it detected nothing.
Did I miss something?
Thanks
The text was updated successfully, but these errors were encountered: