From f16299a3fb1ef3d9833150fa459be10e95c2c4f9 Mon Sep 17 00:00:00 2001 From: gaotingquan Date: Thu, 2 Sep 2021 04:58:10 +0000 Subject: [PATCH] fix: do not need explicitly call postprocess --- deploy/hubserving/clas/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy/hubserving/clas/module.py b/deploy/hubserving/clas/module.py index dd8bf5df..98ec1d90 100644 --- a/deploy/hubserving/clas/module.py +++ b/deploy/hubserving/clas/module.py @@ -76,8 +76,7 @@ class ClasSystem(nn.Layer): starttime = time.time() outputs = self.cls_predictor.predict(inputs) elapse = time.time() - starttime - preds = self.cls_predictor.postprocess(outputs) - return {"prediction": preds, "elapse": elapse} + return {"prediction": outputs, "elapse": elapse} @serving def serving_method(self, images, revert_params): -- GitLab