提交 f16299a3 编写于 作者: G gaotingquan 提交者: Tingquan Gao

fix: do not need explicitly call postprocess

上级 c363fa1d
...@@ -76,8 +76,7 @@ class ClasSystem(nn.Layer): ...@@ -76,8 +76,7 @@ class ClasSystem(nn.Layer):
starttime = time.time() starttime = time.time()
outputs = self.cls_predictor.predict(inputs) outputs = self.cls_predictor.predict(inputs)
elapse = time.time() - starttime elapse = time.time() - starttime
preds = self.cls_predictor.postprocess(outputs) return {"prediction": outputs, "elapse": elapse}
return {"prediction": preds, "elapse": elapse}
@serving @serving
def serving_method(self, images, revert_params): def serving_method(self, images, revert_params):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册