modify inputs to image
parent
b8b7ae4012
commit
654a9deebf
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue