From a4190e1b6f67c1a7f4e596488c9ba6913eea5d14 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 14 Sep 2020 11:45:23 +0000 Subject: [PATCH] fix blazepostprocess --- python/paddle_serving_app/reader/image_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_app/reader/image_reader.py b/python/paddle_serving_app/reader/image_reader.py index 50c0753c..bccf6480 100644 --- a/python/paddle_serving_app/reader/image_reader.py +++ b/python/paddle_serving_app/reader/image_reader.py @@ -317,7 +317,7 @@ class RCNNPostprocess(object): self.clip_bbox([xmin, ymin, xmax, ymax]) w = xmax - xmin h = ymax - ymin - im_shape = t['im_shape'][0][i].tolist() + im_shape = t['im_shape'].tolist() im_height, im_width = int(im_shape[0]), int(im_shape[1]) xmin *= im_width ymin *= im_height -- GitLab