This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Add epsilon for tolerance level to fix flaky test random_resize_crop#15098
Merged
Conversation
zhreshold
approved these changes
May 29, 2019
Contributor
|
@mxnet-label-bot add [Python, Test, Flaky] |
aba2bea to
f1fc081
Compare
f1fc081 to
64836af
Compare
abhinavs95
approved these changes
May 31, 2019
Contributor
abhinavs95
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the fix!
apeforest
reviewed
May 31, 2019
| height = np.random.randint(100, 500) | ||
| src = np.random.rand(height, width, 3) * 255. | ||
| ratio = (0.75, 1) | ||
| epsilon = 0.05 |
Contributor
There was a problem hiding this comment.
how do we decide epsilon? is 0.05 too large here?
Contributor
There was a problem hiding this comment.
Thanks @stu1130 for the discussion offline. The randomness is caused by sqrt of area / or * ratio. Same epsilon is used in pytorch test as well. Approve this change thereby.
haohuanw
pushed a commit
to haohuanw/incubator-mxnet
that referenced
this pull request
Jun 23, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
check all the seeds listed below
Those ration of width and height are around 0.748 and cross compared with Pytorch unit test found out that we need epsilon.
ran 10k times
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments
@zhreshold @abhinavs95