-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Export of cls model #41
Comments
@JulieBender hi there, Thank you for reaching out and providing detailed information about the issue you're encountering with exporting and running your custom YOLOv8 classification model in an iOS app. It seems like the error you're experiencing is related to the model file not being correctly parsed or located by the app. Here are a few steps you can take to troubleshoot and potentially resolve this issue:
If the issue persists after trying these steps, please let us know. Providing any additional error messages or logs can also help us diagnose the problem more effectively. Thank you for your patience and for being a part of the YOLO community! 😊 |
I have already tried steps 1,3,4,5 Maybe I don't put the files in the right places, can you guide me on where to place the bin file, and specify it? In the example, I can't find your bin file or the path to it in the scripts. I also looked trough the documentation and can't really find any guides to the placement of these.
I have this LocalModel, and if I switch my custom cls model out with yours it works fine. my mlmodel is placed in the assets folder. Is it necessary to specify the bin file aswell?
|
Hi @JulieBender, Thank you for providing additional details. It sounds like you're on the right track, and I appreciate your efforts in troubleshooting the issue. Let's address the specific concerns regarding the placement and specification of the File Placement and SpecificationWhen exporting a YOLOv8 model to CoreML format, the exported model typically includes multiple files, such as the Here are some steps to ensure proper placement and specification:
Additional Considerations
If you continue to experience issues, please provide any additional error messages or logs that may help diagnose the problem further. Thank you for your patience and for being a part of the YOLO community! 😊 |
When exporting a custom yolov8 cls model, the classification doesn't run in the app, it just opens the camera as have no detections. also says 0.0ms - 0.0FPS. I have tested the model in python code, and here it works just fine.
I have used this for exporting in a python script: model.export(format="mlmodel", imgsz=[320, 192], nms=True)
I get this error inside med x-code:
Thread 5: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=com.apple.mlassetio Code=1 "Failed to parse the model specification. Error: Unable to parse ML Program: at unknown location: Could not open /var/mobile/Containers/Data/Application/0157029F-2294-42DF-9422-4E1E0C40F43A/Library/Application Support/assets/weights/weight.bin" UserInfo={NSLocalizedDescription=Failed to parse the model specification. Error: Unable to parse ML Program: at unknown location: Could not open /var/mobile/Containe
You didn't provide any specific code snippets for exporting the cls models to ios in the readme section (as you did with all the other options). I assume that this error is because of a wrong model, as the app works fine with your model from the example.
I also tried to convert your yolov8m-cls, but that didn't work either.
The text was updated successfully, but these errors were encountered: