diff --git a/deploy/paddleserving/classification_web_service.py b/deploy/paddleserving/classification_web_service.py index 75eb335a80f726e9e15fe116f2e2271c2ae445d3..3e43ce8608e5e0edac1802910856be2ed6e6b635 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"]