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

ColorNormalizeAug now accepts mxnet NDArrays as well as stated (wrongly) in the documentation. #11606

Merged
merged 8 commits into from
Jul 9, 2018

Conversation

ifeherva
Copy link
Contributor

@ifeherva ifeherva commented Jul 7, 2018

According to the doc of mx.image.ColorNormalizeAug mean and std must be mxnet NDArrays though in reality it accepts only numpy arrays. This commit allows ColorNormalizeAug to accept both numpy and mxnet ndarrays.

Extended the image unit tests to cover this functionality.

According to the doc of mx.image.ColorNormalizeAug mean and std must be mxnet NDArrays though in reality it accepts only numpy arrays. This commit allows ColorNormalizeAug to accept both numpy and mxnet ndarrays.

Extended the image unit tests to cover this functionality.
@ifeherva ifeherva requested a review from szha as a code owner July 7, 2018 21:57
@@ -155,6 +155,17 @@ def test_imageiter(self):


def test_augmenters(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add the with-seed annotation

Copy link
Contributor Author

@ifeherva ifeherva Jul 8, 2018

Choose a reason for hiding this comment

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

Could you please point me to an example so I can add it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nevermind, found it :)

@szha szha requested review from zhreshold and removed request for szha July 9, 2018 02:40
@zhreshold zhreshold merged commit 459a891 into apache:master Jul 9, 2018
XinYao1994 pushed a commit to XinYao1994/incubator-mxnet that referenced this pull request Aug 29, 2018
…ly) in the documentation. (apache#11606)

* ColorNormalizeAug now accepts mxnet NDArrays as well.

According to the doc of mx.image.ColorNormalizeAug mean and std must be mxnet NDArrays though in reality it accepts only numpy arrays. This commit allows ColorNormalizeAug to accept both numpy and mxnet ndarrays.

Extended the image unit tests to cover this functionality.

* Fixed missing brackets

* Simplified assert call according to pylint

* Fixed linting issue

* Fixed namespace issue

* Fixed std and mean assignment

* Fixed isinstance python3 mode

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

Successfully merging this pull request may close these issues.

None yet

3 participants