From d3d92ce53bdb0a93096a51a31b5079eb9a0ca721 Mon Sep 17 00:00:00 2001 From: stu1130 Date: Wed, 3 Apr 2019 12:06:53 -0700 Subject: [PATCH] fix the website building --- python/mxnet/gluon/data/vision/transforms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/mxnet/gluon/data/vision/transforms.py b/python/mxnet/gluon/data/vision/transforms.py index e06a5cf272f4..c7822456dc61 100644 --- a/python/mxnet/gluon/data/vision/transforms.py +++ b/python/mxnet/gluon/data/vision/transforms.py @@ -232,6 +232,7 @@ 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 @@ -247,6 +248,7 @@ class CropResize(HybridBlock): interpolation : int, optional Interpolation method for resizing. By default uses bilinear interpolation. See OpenCV's resize function for available choices. + https://docs.opencv.org/2.4/modules/imgproc/doc/geometric_transformations.html?highlight=resize#resize Note that the Resize on gpu use contrib.bilinearResize2D operator which only support bilinear interpolation(1). The result would be slightly different on gpu compared to cpu. OpenCV tend to align center while bilinearResize2D