From 04cde45eedfff654460500ad3219d0a8a1ee4e0b Mon Sep 17 00:00:00 2001 From: Bin Lu Date: Thu, 16 Dec 2021 14:22:19 +0800 Subject: [PATCH] Update recognition_web_service.py --- deploy/paddleserving/recognition/recognition_web_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/paddleserving/recognition/recognition_web_service.py b/deploy/paddleserving/recognition/recognition_web_service.py index 920d9313..4a3478b6 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: -- GitLab