You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
saddif opened this issue
Sep 14, 2019
· 3 comments
Labels
blockedDependent on other factors (type)duplicateProgress will be shown on similar, previously logged issue (status)questionResponse providing clarification needed. Will not be assigned to a release. (type)
i get the following error - half way through the conversion
63/94: Converting Node Type Concat
64/94: Converting Node Type Upsample
Traceback (most recent call last):
File "", line 1, in
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/converter.py", line 573, in convert
_convert_node_nd(builder, node, graph, err)
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/_operators_nd.py", line 1947, in _convert_node_nd
return converter_fn(builder, node, graph, err)
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/_operators.py", line 1627, in _convert_upsample
"This ONNX upsample layer has 'scales' provided as an input. CoreML upsample requires 'scales' as an attribute of the layer.")
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/_error_utils.py", line 64, in unsupported_op_configuration
self.coreml_3_rerun_message)
TypeError: Error while converting op of type: Upsample. Error message: This ONNX upsample layer has 'scales' provided as an input. CoreML upsample requires 'scales' as an attribute of the layer.
I have tried the official mosaic.onnx file found on the onnx model repo, but still same issue. I have tried another mobilenetv2-1.0.onnx file to convert - and this completes fine.
Is this an issue with style transfer models?
System Information
I used pytorch 1.1.0 to make the model
Please help! Thanks
The text was updated successfully, but these errors were encountered:
saddif
added
the
question
Response providing clarification needed. Will not be assigned to a release. (type)
label
Sep 14, 2019
@saddif this is known issue raising due to PyTorch -> ONNX conversion leading to pattern which does not optimizes scales for UpSample to be known and CoreML at this point, does not support dynamic scale for UpSample layer.
But, we have a work-around by specifying the scales manually.
Please follows instructions as mentioned in this comment #453 (comment)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
blockedDependent on other factors (type)duplicateProgress will be shown on similar, previously logged issue (status)questionResponse providing clarification needed. Will not be assigned to a release. (type)
This is my first ever gitHub post, so apologies if there are any inaccuracies in the post.
Hi i am . following to tutorials to train a model for fast neural style transfer using pytorch and converting it to coreML
I have got as fare as making the mosaic.onnx file but keep getting this error after i have followed these official iinstructions
pip install coremltools==3.0b3
pip install onnx-coreml==1.0b2
from onnx_coreml import convert
ml_model = convert(model='mosaic.onnx', disable_coreml_rank5_mapping=True)
i get the following error - half way through the conversion
63/94: Converting Node Type Concat
64/94: Converting Node Type Upsample
Traceback (most recent call last):
File "", line 1, in
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/converter.py", line 573, in convert
_convert_node_nd(builder, node, graph, err)
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/_operators_nd.py", line 1947, in _convert_node_nd
return converter_fn(builder, node, graph, err)
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/_operators.py", line 1627, in _convert_upsample
"This ONNX upsample layer has 'scales' provided as an input. CoreML upsample requires 'scales' as an attribute of the layer.")
File "/Users/saddifahmed/venvpy/lib/python3.7/site-packages/onnx_coreml/_error_utils.py", line 64, in unsupported_op_configuration
self.coreml_3_rerun_message)
TypeError: Error while converting op of type: Upsample. Error message: This ONNX upsample layer has 'scales' provided as an input. CoreML upsample requires 'scales' as an attribute of the layer.
I have tried the official mosaic.onnx file found on the onnx model repo, but still same issue. I have tried another mobilenetv2-1.0.onnx file to convert - and this completes fine.
Is this an issue with style transfer models?
System Information
I used pytorch 1.1.0 to make the model
Please help! Thanks
The text was updated successfully, but these errors were encountered: