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/04/03 06:05:39 UTC
[GitHub] [incubator-mxnet] sandeep-krishnamurthy commented on a change in
pull request #14259: Add Gluon Transformer Crop
sandeep-krishnamurthy commented on a change in pull request #14259: Add Gluon Transformer Crop
URL: https://github.com/apache/incubator-mxnet/pull/14259#discussion_r271584710
##########
File path: python/mxnet/gluon/data/vision/transforms.py
##########
@@ -228,6 +228,59 @@ def forward(self, x):
return image.random_size_crop(x, *self._args)[0]
+class CropResize(HybridBlock):
+ r"""Crop the input image with and optionally resize it.
+
+ Makes a crop of the original image then optionally resize it to the specified size.
+ Parameters
+ ----------
+ x : int
+ Left boundary of the cropping area
+ y : int
+ Top boundary of the cropping area
+ w : int
+ Width of the cropping area
+ h : int
+ Height of the cropping area
+ size : int or tuple of (w, h)
+ Optional, resize to new size after cropping
+ interp : int, optional
+ Optional, interpolation method. See opencv for details
Review comment:
Providing a link will be helpful?
----------------------------------------------------------------
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