You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/11/12 17:06:12 UTC
[GitHub] [incubator-mxnet] lkubin opened a new pull request #16794: Random
rotation
lkubin opened a new pull request #16794: Random rotation
URL: https://github.com/apache/incubator-mxnet/pull/16794
## Description ##
- We implemented functions for image rotation and random rotation in mxnet.image.image.py, a transform for Rotation and one for RandomRotation in mxnet.gluon.data.vision.transforms.py
## Checklist ##
### Essentials ###
- [x] The PR refers to the relevant issues #13206 #11230
- [x] Changes are complete
- [x] All changes have test coverage
- Unit tests are added for both mxnet.image.image.py functions and for mxnet.gluon.data.vision.transforms.py
- [x] Code is well-documented:
- For user-facing API changes, API doc string has been updated.
- [x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change
### Changes ###
- [x] Image rotation function `imrotate`, based on BilinearSampler function. Tested in tests/python/unittest/test_image.py
- [x] transforms.Rotate, tested in tests/python/unittest/test_gluon_data_vision.py
- [x] Image random rotation function `random_rotate`. Tested in tests/python/unittest/test_image.py
- [x] transforms.RandomRotation, tested in tests/python/unittest/test_gluon_data_vision.py
## Comments ##
All the implemented functionalities are based on `imrotate` function. The shape of the output of this function is the same shape of the input, thus it can be used inside a transformer.
It supports 3 behaviors:
- Simple image rotation without zooming

- Zoom in image rotation: no padding is shown in the output result

- Zoom out image rotation: the whole original image will be contained in the output result

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services