Open bibekdhakal opened 1 week ago
👋 Hello @bibekdhakal, thank you for opening this ultralytics/yolo-ios-app
🚀 Issue. To help us address your concern more efficiently, please make sure you've provided the following information:
👏 Thank you for mentioning that you managed to import the .mlpackage
and addressed the class label issue. It sounds like the conversion part is mostly working, but let's dig deeper to understand why detection isn't happening.
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.
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