Open 3DTOPO opened 4 years ago
Possibly related #756
I've tried every workaround I can think of, and I get the same error. This is a critical issue for me, is there any plans to fix it for the 4.0 release?
Are there any known work-arounds? The information in issue #756 didn't really help me because I have to first convert using ONNX, and that thread is about using the unified converter.
Note I get a similar message trying to run predict with Swift:
MyApp[14739:5337178] [espresso] [Espresso::handle_ex_plan] exception=Invalid X-dimension 1/814 status=-7 MyApp[14739:5337178] [coreml] Error binding image input buffer input: -7 MyApp[14739:5337178] [coreml] Failure in bindInputsAndOutputs. prediction error: Error Domain=com.apple.CoreML Code=0 "Error binding image input buffer input." UserInfo={NSLocalizedDescription=Error binding image input buffer input.}
So the issue can easily be reproduced and the model inspected, I've uploaded it to here:
I would super appreciate any and all help.
I see many posts about flexible shapes not working - esp. with PyTorch.
Can anyone offer any insight why the above model's flexible shapes don't work?
This really is a critical issue for me and apparently for others. Is there any thing that can be done? Any workarounds?
All the amazing features of coreml tools are useless if I can't deploy the model with flexible shapes.
🐞Bug
I have successfully converted a model to use images instead of multi-arrays (with 4.0b2).
I can add flexible shapes and the model compiles/exports fine. If I run predict on the resulting mode with an input image with a dimension that is not the fixed dimension (and inside the flexible shape range), I get the trace below:
Trace
Code snippet
I added the flexible shapes like this:
If I add enumerated shapes, the enumerated shapes work (only):
System environment: