Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

[Solved]MXNet to ONNX export bug with "out_shape" when using Crop #14881

Closed
AnaRhisT94 opened this issue May 5, 2019 · 4 comments
Closed

[Solved]MXNet to ONNX export bug with "out_shape" when using Crop #14881

AnaRhisT94 opened this issue May 5, 2019 · 4 comments

Comments

@AnaRhisT94
Copy link

AnaRhisT94 commented May 5, 2019

Hi,
I know Crop is deprecated, and probably this why "out_shape" key isn't available. Is there a future fix for this?
The current available workaround for this is just specifying the height and width manually for the crop, but it's not a long-term fix, if I will be using other width/height, and so on.

@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: ONNX, Bug

@AnaRhisT94
Copy link
Author

AnaRhisT94 commented May 6, 2019

Just used Crop with num_args = 1 and sliced the h_w accordingly in the .json file (Directly).
Also I suggest using ONNX==1.2.2 instead of 1.2.1, which has less op support for mxnet to onnx export functionality.

@AnaRhisT94 AnaRhisT94 changed the title MXNet to ONNX export bug with "out_shape" when using Crop [Solved]MXNet to ONNX export bug with "out_shape" when using Crop May 6, 2019
@chezhihong1
Copy link

Just used Crop with num_args = 1 and sliced the h_w accordingly in the .json file (Directly).
Also I suggest using ONNX==1.2.2 instead of 1.2.1, which has less op support for mxnet to onnx export functionality.

How to sliced the h_w accordingly in the .json file? Have you changed _op_translations.py? Thank U~

@mohamadHN93
Copy link

Just used Crop with num_args = 1 and sliced the h_w accordingly in the .json file (Directly).
Also I suggest using ONNX==1.2.2 instead of 1.2.1, which has less op support for mxnet to onnx export functionality.

I didn't understand how to fix it, could you elaborate more

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants