Update classification_web_service.py
parent
d4954e1df5
commit
a64c12385d
|
@ -49,7 +49,7 @@ class ImagenetOp(Op):
|
||||||
input_imgs = np.concatenate(imgs, axis=0)
|
input_imgs = np.concatenate(imgs, axis=0)
|
||||||
return {"inputs": input_imgs}, False, None, ""
|
return {"inputs": input_imgs}, False, None, ""
|
||||||
|
|
||||||
def postprocess(self, input_dicts, fetch_dict, log_id):
|
def postprocess(self, input_dicts, fetch_dict, data_id, log_id):
|
||||||
score_list = fetch_dict["prediction"]
|
score_list = fetch_dict["prediction"]
|
||||||
result = {"label": [], "prob": []}
|
result = {"label": [], "prob": []}
|
||||||
for score in score_list:
|
for score in score_list:
|
||||||
|
|
Loading…
Reference in New Issue