From c9420b236f5452d9e8a914fc81f2f01064824c1e Mon Sep 17 00:00:00 2001 From: Guanghua Yu <742925032@qq.com> Date: Tue, 12 May 2020 12:07:59 +0800 Subject: [PATCH] fix Chinese characters garbled (#642) --- deploy/python/infer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/python/infer.py b/deploy/python/infer.py index 9a619d13b..45d2d9051 100644 --- a/deploy/python/infer.py +++ b/deploy/python/infer.py @@ -349,7 +349,7 @@ def load_predictor(model_dir, config.disable_glog_info() # enable shared memory config.enable_memory_optim() - # disable feed, fetch OP,needed by zero_copy_run + # disable feed, fetch OP, needed by zero_copy_run config.switch_use_feed_fetch_ops(False) predictor = fluid.core.create_paddle_predictor(config) return predictor @@ -456,10 +456,10 @@ class Detector(): image (str/np.ndarray): path of image/ np.ndarray read by cv2 threshold (float): threshold of predicted box' score Returns: - results (dict): include 'boxes': np.ndarray: shape:[N,6], N: number of box, + results (dict): include 'boxes': np.ndarray: shape:[N,6], N: number of box, matix element:[class, score, x_min, y_min, x_max, y_max] - MaskRCNN's results include 'masks': np.ndarray: - shape:[N, class_num, mask_resolution, mask_resolution] + MaskRCNN's results include 'masks': np.ndarray: + shape:[N, class_num, mask_resolution, mask_resolution] ''' inputs, im_info = self.preprocess(image) np_boxes, np_masks = None, None -- GitLab