From e28833a80eaf63b062c1a215db40ac8ebe35dcfb Mon Sep 17 00:00:00 2001 From: FDInSky <48318485+FDInSky@users.noreply.github.com> Date: Thu, 13 Feb 2020 20:11:55 +0800 Subject: [PATCH] Fix doc of detection's img_info param (#22458) * test=develop fix doc of detection's img_info param --- python/paddle/fluid/layers/detection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/layers/detection.py b/python/paddle/fluid/layers/detection.py index 28a4cfc911..1d0dbce39c 100644 --- a/python/paddle/fluid/layers/detection.py +++ b/python/paddle/fluid/layers/detection.py @@ -2748,8 +2748,8 @@ def generate_proposals(scores, represents the differece between predicted box locatoin and anchor location. The data type must be float32. im_info(Variable): A 2-D Tensor with shape [N, 3] represents origin - image information for N batch. Info contains height, width and scale - between origin image size and the size of feature map. + image information for N batch. Height and width are the input sizes + and scale is the ratio of network input size and original size. The data type must be int32. anchors(Variable): A 4-D Tensor represents the anchors with a layout of [H, W, A, 4]. H and W are height and width of the feature map, @@ -2842,7 +2842,7 @@ def box_clip(input, im_info, name=None): the last dimension is 4 and data type is float32 or float64. im_info(Variable): The 2-D Tensor with shape [N, 3] with layout (height, width, scale) represeting the information of image. - height and width is the input size and scale is the ratio of input + Height and width are the input sizes and scale is the ratio of network input size and original size. The data type is float32 or float64. name(str, optional): For detailed information, please refer to :ref:`api_guide_Name`. Usually name is no need to set and -- GitLab