This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
ONNX dynamic_axes cause compile time errors in final CoreML model #565
Labels
bug
Unexpected behaviour that should be corrected (type)
🐞Describe the bug
If an ONNX model is created with
dynamic_axes
then the subsequent CoreML model surfacesDescription of image feature 'input_image' has missing or non-positive width 0.
and
Compilation errors in xcode.
Please note that this is regardless of whether flexible inputs/outputs are specified with:
During the
onnx-coreml
conversion step.More details
If
dynamic_axes
are removed and theimg_size_ranges
are removed then the model operates correctly, though can only accept a single image size.If
dynamic_axes
are removed, but theimg_size_ranges
are still used as above then the compilation errors (above) go away. But a runtime error is introduced:More details and additional discussion is available: https://stackoverflow.com/questions/61231340/input-input-image-of-layer-63-not-found-in-any-of-the-outputs-of-the-preceed
Specific Functions
The following was used to create the ONNX model, and then compile it to CoreML
System environment (please complete the following information):
The text was updated successfully, but these errors were encountered: