Update predict_rec.py

pull/903/head
Felix 2021-06-18 11:55:11 +08:00 committed by GitHub
parent be22348e9c
commit 91eebd82bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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])