From 91eebd82bcf8b3a74e1de293c229dd3c550c3018 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 18 Jun 2021 11:55:11 +0800 Subject: [PATCH] Update predict_rec.py --- deploy/python/predict_rec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/python/predict_rec.py b/deploy/python/predict_rec.py index b9e08a37..64c18e02 100644 --- a/deploy/python/predict_rec.py +++ b/deploy/python/predict_rec.py @@ -36,7 +36,7 @@ class RecPredictor(Predictor): "transform_ops"]) self.postprocess = build_postprocess(config["RecPostProcess"]) - def predict(self, images, feature_normalize=False): + def predict(self, images, feature_normalize=True): input_names = self.paddle_predictor.get_input_names() input_tensor = self.paddle_predictor.get_input_handle(input_names[0]) -- GitLab