-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bugfix] Bilinear resize bug fix from PR #2777 #2857
Conversation
Thanks @Laurawly generally looks good to me and could solve the issues mentioned. However, could we add one unit testing of resize bilinear to compare MXNet forward? I think it will be more nice. |
b42adbb
to
b158083
Compare
@FrozenGene Does the test look good to you or more tests are needed? |
@@ -464,6 +464,12 @@ def verify(data_shape, weight_shape): | |||
verify((2, 2), (4, 5)) | |||
verify((2, 3, 4), (4, 5)) | |||
|
|||
def test_forward_bilinear_resize(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can provide one new more unit test with scale_height
and scale_width
to cover our implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does CI has the latest mxnet installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just try and see if it gives me error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrozenGene seems https://mxnet.apache.org/api/python/symbol/contrib.html?highlight=bilinearresize#mxnet.symbol.contrib.BilinearResize2D is not giving the correct guidance, it's not related to mxnet version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrozenGene So I confirmed that only Mxnet 1.5 fixes the bugs. If CI can update mxnet, we can then have this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add this in the comment of this issue?
@FrozenGene Mxnet gives me no "scale_height/width" parameter error locally. I think maybe it depends on the version of Mxnet. |
@Laurawly I use MXNet 1.4 and also get the same error. Seems that it is MXNet's doc issue. I think we test |
I confirmed with mxnet developers and confirmed that it's a bug. Mxnet 1.5 solves this issue. If we could upgrade ci to use mxnet 1.5 (pre-release) problem will be solved @tqchen . |
@FrozenGene @tqchen Is it possible to update the CI to use mxnet 1.5? Or I remove the test for now? |
I personally suggest remove the test of |
Let us remove the test |
@FrozenGene Test removed. |
30cd7ae
to
2282b52
Compare
Please kick the CI again. |
ffc2e91
to
88afbdc
Compare
@@ -506,4 +513,8 @@ def test_forward_smooth_l1(): | |||
test_forward_broadcast_axis() | |||
test_forward_full() | |||
test_forward_embedding() | |||
<<<<<<< a07df95a837dceb70d8f36c33fe680a913faf2b9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove these lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reminding!
99c4fe4
to
e9d8df9
Compare
@@ -505,6 +505,12 @@ def verify(xshape, yshape, y_data): | |||
verify((2, 2), (2, 3), [[1, 1, 0], [0, 1, 0]]) | |||
verify((2, 2, 2), (2, 2), [[0, 1], [1, 0]]) | |||
|
|||
def test_forward_bilinear_resize(): | |||
# add tests including scale_height and scale_width when mxnet is updated to version 1.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@icemelon9 Please check if this looks ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already approved. Let's wait for CI to complete.
Thanks everyone. this is now merged |
* error fixed * rename * solve conlicts with master * more test added * fix error * remove test * comment addressed
* error fixed * rename * solve conlicts with master * more test added * fix error * remove test * comment addressed
* error fixed * rename * solve conlicts with master * more test added * fix error * remove test * comment addressed
* error fixed * rename * solve conlicts with master * more test added * fix error * remove test * comment addressed
* error fixed * rename * solve conlicts with master * more test added * fix error * remove test * comment addressed
* error fixed * rename * solve conlicts with master * more test added * fix error * remove test * comment addressed
@FrozenGene Please review.