From 07baa6d3cb6503e0caa6d9585ea4e668f16d2f52 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Thu, 16 Jul 2020 12:53:56 +0800 Subject: [PATCH] fix python inference without resize (#1070) --- deploy/python/infer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/python/infer.py b/deploy/python/infer.py index 18876d1c5..ed29185c1 100644 --- a/deploy/python/infer.py +++ b/deploy/python/infer.py @@ -433,7 +433,7 @@ class Detector(): def preprocess(self, im): # process image by preprocess_ops im_info = { - 'scale': 1., + 'scale': [1., 1.], 'origin_shape': None, 'resize_shape': None, } -- GitLab