-
Notifications
You must be signed in to change notification settings - Fork 253
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
Shape of the converted model is wrong #63
Comments
I don't think you can use this repo to convert YOLOv3 models. |
@hollance |
I don't know, but sometimes the conversion to Core ML does not fill in those output shapes correctly. What is the shape of these outputs when you actually run the model, i.e. what does |
That is not what I asked for (it's the same information as shown in Xcode). Instead, I'd need to see the shape of the output when you actually run the model on an image (either in Python or in iOS / macOS). |
That's what I thought: the shapes are correct. It's just that the converter didn't fill them in right in the mlmodel file. You should be able to use the model as it is. |
Ok thank you |
@hollance |
Ah yes, that makes sense. You can fix this by adding the exact output shape to the mlmodel file (you can read how to do this in my ebook Core ML Survival Guide). Or you can change the stride indices in these lines (note that I've already made the change below):
Also make sure you change these:
I think that's the configuration you're using because |
Hi, I've encounter same question about different output shape. Code is not crash, but prediction is error.(error boxRect, error label) problem solved. I forget "image_scale=1/255." when I convert h5 to model so: and you can run projection done. |
@hollance
I tried converting the yolo weights into coreml following the detailed steps but the converted model the shape of the output is wrong . Is there is a way to resolve this issue. Please explain why is it happening
The text was updated successfully, but these errors were encountered: