-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
CoreML failing to load #234
Comments
Thanks for writing the issue. When you launch RectLabel, RectLabel tries to read the settings file. Based on the error dialog, it might be that RectLabel does not have enough permission to read/write on your computer. Coud you check the permission of RectLabel app? |
Thanks for looking at this The directory is 700 and the file is 644. Setting both to 777 makes no difference. All files/dirs owned by my user. |
We exported the coreml model using the latest YOLOv8. In our environment we could load the coreml model without an error. |
That's the same command I used. Obviously have to get access to the model inside the mlpackage, so that could be the issue. It does feel like there is a permission issue. I'd be happy to set up a time to Zoom and show you the issue if that would work for you. |
I do have the same problem but with a custom trained model based on yolov8 I've trained on Google Colab and export it. First I also tried to convert the ".pt" into the ".mlmodel" with no custom training that loads without any problem. When I load the custom trained one the program directly crashes when I clicked on "auto labeling" after loading the custom trained model "best.mlmodel". Do you have any clue what I could try and what information you need to help me? |
Thanks for writing the issue. In our environment, the ultralytics version is 8.0.176. Using our fish-dataset, we trained the YOLOv8 segmentation model.
And, export the best.pt to the best.mlpackage file.
Using the latest RectLabel version 2023.09.12, we can load the best.mlpackage file and process the image to obtain the detected polygons. |
Ah okay. I trained the model on detection instead of segmentation. Could that be a problem? I will try it later this week with training it on segmentation. |
Interesting, yes I am using detection and classification.
…________________________________
From: Optics ***@***.***>
Sent: 13 September 2023 09:00
To: ryouchinsa/Rectlabel-support ***@***.***>
Cc: Mark Ison ***@***.***>; Author ***@***.***>
Subject: Re: [ryouchinsa/Rectlabel-support] CoreML failing to load (Issue #234)
Ah okay. I trained the model on detection instead of segmentation. Could that be a problem?
I will try it later this week with training it on segmentation.
—
Reply to this email directly, view it on GitHub<#234 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB4HRDZZOY73TDVZXAPG5A3X2FR25ANCNFSM6AAAAAA32ENEXM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I am using an M1 MacBook Air. Is Apple Silicon a problem? |
We checked on the Apple M1 MacBook Pro device. Using our fish-dataset-detection, we trained the YOLOv8 detection model.
And, export the best.pt to the best.mlpackage file.
Using the latest RectLabel version 2023.09.12, we can load the best.mlpackage file and process the image to obtain the detected bounding boxes. |
For the permission issue, could you try deleting cache files?
For the crash issue, could you copy and paste the crash message to this page or send an email to support@rectlabel.com? |
The new version 2023.09.27 was released. Please let us know your opinion. |
Currently If you need our support to fix this problem, please let us know. |
When trying to load a Yolov8 model, converted to CoreML, I get this error.
compiler error: compiler error: Encountered an error while compiling a neural network model: Failed to copy weights during compilation. Error description: “weights” couldn’t be copied because you don’t have permission to access “model0”.
Additionally I get a "Create folder error" on app launch with the extra text "The file “settings” doesn’t exist."
It loaded the model once, so not sure it's an issue with the model.
I've attempt to remove the app and completely clear up, before reinstalling....but not sure I was able to find everything left behind.
Any suggestions?
The text was updated successfully, but these errors were encountered: