Open QuenPley opened 1 month ago
π Hello @QuenPley, thank you for bringing this issue to our attention on the Ultralytics HUB π!
We understand you're experiencing challenges with importing the YOLO11 nano and large models into Xcode using CoreML. Please visit our HUB Docs for additional insights and guidance:
If this is a π Bug Report, it would be very helpful if you could provide a minimum reproducible example (MRE) to better diagnose the issue. You can learn how to do this here.
An Ultralytics engineer will look into this soon and will assist further. We aim to respond to all issues as quickly as we can. Thank you for your patience! π
Thank you for your answer. I am working on a Mac book pro M1 with Xcode 16, The 2 of October, I export a yolov8 pose detection model in coreml and imported in Xcode 16 without any problem. since last week I have exported yolov11 pose detection model in core ml and I have an error when I import it in Xcode: There was a problem decoding this Core ML document validation error: unable to deserialize object. I have try to do it with yolov8 pose detection and I have the same error. What should I do to be able to import a yolo pose detection model in Xcode 16? is there is change done after the 2 October?
@QuenPley hello! π
Thank you for providing the details about your setup. It seems like you're encountering issues with importing YOLO models into Xcode 16. Here are a few steps you can try to resolve the issue:
Verify Versions: Ensure you are using the latest versions of the Ultralytics packages and Xcode. Sometimes, updates can resolve compatibility issues.
Re-export the Model: Try re-exporting your model using the latest version of the Ultralytics tools. There might have been updates or fixes since your last export.
Check Model Compatibility: Ensure that the model architecture and export settings are compatible with CoreML. Sometimes, specific layers or configurations might cause issues during serialization.
Debugging: Use Xcodeβs debugging tools to get more detailed error messages. This might give you more insight into whatβs causing the deserialization issue.
Documentation: Review the Ultralytics HUB Docs for any updates or changes that might have occurred after October 2nd.
If the issue persists, please let us know, and we can further investigate. Your patience and collaboration are greatly appreciated! π
Feel free to reach out if you have more questions. We're here to help! π
Hello I have check in Xcode and I find this error see Screen shot.
Hello! π
Thank you for sharing the screenshot. It looks like you're encountering a deserialization issue with your CoreML model in Xcode. Here are a few steps to help troubleshoot and resolve the problem:
Update Packages: Ensure you are using the latest versions of the Ultralytics packages. Sometimes, updates include important fixes.
Re-export the Model: Try exporting the model again using the latest tools. This can sometimes resolve serialization issues.
Model Layers: Check if there are any specific layers or configurations in your model that might not be supported by CoreML. Simplifying the model architecture can sometimes help.
Xcode Debugging: Use Xcodeβs debugging tools to get more detailed information about the error. This can provide insights into what might be causing the issue.
Documentation: Review the Ultralytics HUB Docs for any recent updates or changes that might affect model export and import.
If the issue persists, please let us know, and we'll be happy to assist further. Your patience and collaboration are greatly appreciated! π
Feel free to reach out with any more questions. We're here to help! π
Search before asking
Question
the 2 of October, we have a yolov8 large pose detection model in coreml and we had succesfully exported it in xcode. Since a few days we have tried with a yolo11 nano and large model and we are not able to do it, xcode throw an error "not able to unserialize the model". Then we have tried with a yolov8 nano and large model and xcode throw the same error, if we take the model made in the 2 of October, this one is still working. What should we do to be able to use a yolo11 model in coreml and xcode ?
Additional
No response