Skip to content

Conversation

cosineFish
Copy link
Contributor

  1. Fix tf ResizeBilinear and ResizeNearestNeighbor op with align_corners=True or half_pixel_centers=True
  2. Update related tests to make input data include x.5 and add tests for align_corners=True

@cosineFish
Copy link
Contributor Author

This PR is ready for review but there are two failed checks.
Looks like the failed tests are not related to my change. Please help to re-run the failed tests, thanks!

tests/test_example.py FFF 
E               subprocess.CalledProcessError: Command '['python', '/home/vsts/work/1/s/tests/../examples/getting_started.py']' returned non-zero exit status 1.

../../../.conda/envs/tf2onnx/lib/python3.8/subprocess.py:516: CalledProcessError

# TensorRT only supports nearest_mode = "floor" for mode = "nearest"
transformation_mode = "half_pixel"
nearest_mode = "round_prefer_ceil"
transformation_mode = "tf_half_pixel_for_nn"
Copy link
Collaborator

@fatcat-z fatcat-z Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this name for debug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which name? tf_half_pixel_for_nn? There is no name for debug. All of them are valid attributes of onnx Resize op.
https://github.com/onnx/onnx/blob/main/docs/Changelog.md#resize-11

@fatcat-z
Copy link
Collaborator

Please fix DCO issue.

1) Fix tf ResizeBilinear and ResizeNearestNeighbor op with align_corners=True or half_pixel_centers=True
2) Update related tests to make input data include x.5 and add tests for align_corners=True

Signed-off-by: cosine <[email protected]>
@cosineFish
Copy link
Contributor Author

Please fix DCO issue.

Fixed.

Copy link
Collaborator

@fatcat-z fatcat-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for your contributions!

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

Successfully merging this pull request may close these issues.

2 participants