diff --git a/python/paddle_serving_app/reader/image_reader.py b/python/paddle_serving_app/reader/image_reader.py index 59b9ee41442dd5e8a7c11ba5fb25e8ffed601ad7..dc029bf0409179f1d392ce05d007565cd3007085 100644 --- a/python/paddle_serving_app/reader/image_reader.py +++ b/python/paddle_serving_app/reader/image_reader.py @@ -272,8 +272,7 @@ class SegPostprocess(object): result_png = score_png result_png = cv2.resize( - result_png, - ori_shape[:2], + result_png, (ori_shape[1], ori_shape[0]), fx=0, fy=0, interpolation=cv2.INTER_CUBIC)