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

Unable to accurately identify #20

Open
136323000 opened this issue May 11, 2024 · 1 comment
Open

Unable to accurately identify #20

136323000 opened this issue May 11, 2024 · 1 comment

Comments

@136323000
Copy link

I copied my mlpackage file into this demo . it can be accurately recognized in the mlpackage file of the x-code, just like the image below:
image
But when I run the code, these are displayed:
2e054f809cbeab194e646edb0b547995

My steps are as follows:

  1. Prepare my dataset
    Train them using: yolo detect train data=xxx. yaml model=yolov8n. yaml pretrained=ultrasonic/yolov8n. pt epoch=100 batch=4
  2. I obtained a pt format file
    I ran the following code on PyCharm

from ultraviolet imports YOLO
Model=YOLO (f "best10. pt")
Model. export (format="coreml", int8=True, nms=True, imgsz=[640, 384])

I received a xxx. mlpackage file . I copy 5 copies ,and renamed this file as yolov8l. mlpackage, yolov8m. mlpackage, yolov8n. mlpackage, yolov8s. mlpackage, yolov8x. mlpackage, and copied it to the models file of the project you provided and run demo
get:
2e054f809cbeab194e646edb0b547995

@pderrenger
Copy link
Member

Hello! It looks like there might be an issue with how the model is being converted or loaded into your iOS project. Let's check a few things:

  1. Confirm that the .mlpackage conversion has all necessary model parameters included and is properly configured for iOS.
  2. Ensure that the .mlpackage files are correctly placed in the designated model directory of your iOS project.
  3. Verify if the outputs from your training step closely resemble the .mlpackage expectations.

It's also helpful to ensure that the configuration used for training (data=xxx.yaml, model=yolov8n.yaml) matches the settings expected by your iOS application.

If everything above checks out, try testing one .mlpackage file at a time to isolate the variable causing the issue.

For further fine-tuning and configuration guidance, you might find the documentation useful at https://docs.ultralytics.com. Let's get your app accurately recognizing objects soon! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants