diff --git a/deploy/paddleserving/recognition/recognition_web_service.py b/deploy/paddleserving/recognition/recognition_web_service.py index 920d93139cd11f3c3539a7255fb584a3d0799017..4a3478b65fa43a45d050e1b3341066acbe199138 100644 --- a/deploy/paddleserving/recognition/recognition_web_service.py +++ b/deploy/paddleserving/recognition/recognition_web_service.py @@ -83,7 +83,7 @@ class DetOp(Op): } return feed_dict, False, None, "" - def postprocess(self, input_dicts, fetch_dict, log_id): + def postprocess(self, input_dicts, fetch_dict, data_id, log_id): boxes = self.img_postprocess(fetch_dict, visualize=False) boxes.sort(key=lambda x: x["score"], reverse=True) boxes = filter(lambda x: x["score"] >= self.threshold, @@ -173,7 +173,7 @@ class RecOp(Op): filtered_results.append(results[i]) return filtered_results - def postprocess(self, input_dicts, fetch_dict, log_id): + def postprocess(self, input_dicts, fetch_dict, data_id, log_id): batch_features = fetch_dict["features"] if self.feature_normalize: