Skip to content
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

[ONNX] Resize op converter and add half_pixel mode to Resize op #4536

Closed
wants to merge 14 commits into from

Conversation

masahi
Copy link
Member

@masahi masahi commented Dec 17, 2019

Implemented a working opset 11 Resize op converter with test cases validated against onnxruntime.
It needs #4538 to be merged.

I removed the "align_corners" option from resize op, and instead introduced "coordinate_transformation_mode" option, which can be

  • "asymmetric"
  • "align_corners"
  • "half_pixel"

Refer to ONNX Resize op spec for the meaning of these options.

Related discussion:
https://discuss.tvm.ai/t/relay-onnx-frontend-implement-resize-operation/5131/6

@jwfromm
Copy link
Contributor

jwfromm commented Dec 22, 2019

LGTM, nice job!

@yzhliu
Copy link
Member

yzhliu commented Jan 3, 2020

should we close this one?

@masahi
Copy link
Member Author

masahi commented Jan 3, 2020

@yzhliu ok, I'll open another PR for onnx bits, when the CI is ready.

@masahi masahi closed this Jan 3, 2020
@Aeroxander
Copy link

@masahi I'm getting this error:

tvm.error.OpNotImplemented: The following operators are not supported for frontend ONNX: Resize

It's from a PyTorch 1.3 -> ONNX v4 opset version 11 model

Does it have a different type of option in the Resize operator or isn't the error handling not updated yet?

@masahi
Copy link
Member Author

masahi commented Jan 3, 2020

@Aeroxander if you are using the change in this PR correctly, you shouldn't get that error. ONNX change is not merged upstream, so you need to manually add them to your repo.

@masahi masahi deleted the onnx-resize branch February 7, 2020 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants