未验证 提交 91eebd82 编写于 作者: F Felix 提交者: GitHub

Update predict_rec.py

上级 be22348e
...@@ -36,7 +36,7 @@ class RecPredictor(Predictor): ...@@ -36,7 +36,7 @@ class RecPredictor(Predictor):
"transform_ops"]) "transform_ops"])
self.postprocess = build_postprocess(config["RecPostProcess"]) 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_names = self.paddle_predictor.get_input_names()
input_tensor = self.paddle_predictor.get_input_handle(input_names[0]) input_tensor = self.paddle_predictor.get_input_handle(input_names[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册