From 654a9deebf757c43bb67d135ae08766b74753c82 Mon Sep 17 00:00:00 2001 From: stephon Date: Fri, 26 Nov 2021 18:34:39 +0000 Subject: [PATCH] modify inputs to image --- deploy/paddleserving/classification_web_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/paddleserving/classification_web_service.py b/deploy/paddleserving/classification_web_service.py index 75eb335a..3e43ce86 100644 --- a/deploy/paddleserving/classification_web_service.py +++ b/deploy/paddleserving/classification_web_service.py @@ -47,7 +47,7 @@ class ImagenetOp(Op): img = self.seq(im) imgs.append(img[np.newaxis, :].copy()) input_imgs = np.concatenate(imgs, axis=0) - return {"inputs": input_imgs}, False, None, "" + return {"image": input_imgs}, False, None, "" def postprocess(self, input_dicts, fetch_dict, data_id, log_id): score_list = fetch_dict["prediction"] -- GitLab