modify inputs to image

pull/1490/head
stephon 2021-11-26 18:34:39 +00:00
parent b8b7ae4012
commit 654a9deebf
1 changed files with 1 additions and 1 deletions

View File

@ -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"]