From 520a3a755efd4806662e29ef245514cb64dcb820 Mon Sep 17 00:00:00 2001 From: stephon Date: Wed, 10 Nov 2021 03:09:21 +0000 Subject: [PATCH] remove unused list --- deploy/paddleserving/recognition/recognition_web_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/paddleserving/recognition/recognition_web_service.py b/deploy/paddleserving/recognition/recognition_web_service.py index 34b2c552..920d9313 100644 --- a/deploy/paddleserving/recognition/recognition_web_service.py +++ b/deploy/paddleserving/recognition/recognition_web_service.py @@ -64,7 +64,7 @@ class DetOp(Op): im_scale_y, im_scale_x = self.generate_scale(raw_im) im = self.img_preprocess(raw_im) - im_shape = np.array(list(im.shape[1:])).reshape(-1) + im_shape = np.array(im.shape[1:]).reshape(-1) scale_factor = np.array([im_scale_y, im_scale_x]).reshape(-1) imgs.append({ "image": im[np.newaxis, :], -- GitLab